You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #147: github-merge: Add option to overwrite user email
8d229f8 github-merge: Add option to overwrite user email (MarcoFalke)
05df58e github-merge: Set git user name to merge-script (MarcoFalke)
Pull request description:
The merge script claims authorship of the merge commit, which is confusing:
* The maintainer didn't author the merged code, nor the merge commit. Everything is done by the script.
* In case of breach of a git hosting platform, such as GitHub, or the account of a maintainer, the hosting platform would allow a signed commit (signed by the hosting platform) to be pushed in the name of the maintainer. Thus, ...
* ... the important thing to check for is the commit signature or the actual code changes, not the name (or email) of the maintainer.
* Most modern software projects attribute their merges to a "merge" account, regardless of who triggered the merge. (For example, rust-lang)
Solve this issue by:
* Setting the git user name (committer and author) to "merge-script".
* (optional) Allowing the maintainer to provide an email to use for the merge commit.
Just as before, the merge commit is still required to be signed by the maintainer.
Just as before, the git hosting platform will still denote which account was used to push the changes.
ACKs for top commit:
hebasto:
ACK 8d229f8, I have reviewed the code and it looks OK.
Tree-SHA512: 96b8468191d626cd54fab4aec26ae53109ca2967c7a1a19cd88fcb7bf6c7b43768b5e4d0677ec2228da856c75242fa3cabbc9cb7fdd5514f79af9dbe176a6a52
Copy file name to clipboardExpand all lines: github-merge.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -264,6 +264,7 @@ def parse_arguments():
264
264
githubmerge.pushmirrors (default: none, comma-separated list of mirrors to push merges of the master development branch to, e.g. `git@gitlab.com:<owner>/<repo>.git,git@github.com:<owner>/<repo>.git`),
265
265
user.signingkey (mandatory),
266
266
user.ghtoken (default: none).
267
+
githubmerge.merge-author-email (default: Email from git config),
0 commit comments