On Mar 5th 2020, github changed the the squash merge behavior, which caused three commit’s author being wrongly attributed. This problem has been fixed as of now by github so new PRs won’t be affected.
This is an RFC about possible action items wrt to this issue. In order to amend the authors in these commits, we will need to generate new commits that are in parallel of the current chain. Essentially it means we will need to regenerate all these commits which leads to a different(parallel) chain, and force push to master and rewrite the commit history.
The divergent chain will be from the Mar 5th to the lastest
Force push to the master can bring additional problems (we will first need to ask ASF to remove the branch protection in the master, and run the rewrite, then finally ask everyone in the community to resync to the master, normal sync back from master to forks will break because of the diverged chain). Never-the-less, one can also argue that we should do the fix by force push.
Regardless of the choice, we believe that it is important to make the community aware of this issue. Importantly, we evaluate contributions in a comprehensive manner rather than directly counting the loc, so hopefully the few wrong commit stats won’t affect the overall recognition of everyone’s controbutions
See contexts
- https://github.community/t5/How-to-use-Git-and-GitHub/Authorship-of-merge-commits-made-by-Github-Apps-changed/td-p/48797/page/2
- [SOLVED][Github issue] The commit author is wrong since today
- https://twitter.com/bigreddot/status/1235603084748832769
Please share your opinions by participating the poll
- Keep the current commit history
- Use force push to rewrite the history
0 voters
Given the impact of the history rewrite(the longer it takes the more we need to rewrite), we will leave the thread open for a few days.
Proposed Solution
- Create a commit that undo the contributed PR (this can be done by the original merger, and will create delete statistics(which could be fine, given the main problem is author attribution) for that merger)
- Then the original author can send the contribution back as a separate PR before we merge it.