-
Notifications
You must be signed in to change notification settings - Fork 15k
[Docs] [Developer Policy] Document best practice of not tagging a username in commit messages and PR descriptions #164328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…rname in commit messages and PR descriptions
|
Although I could merge this, I want to wait until I get an approval from a 'docs owner'. Not sure who that'd be though. |
Having commit access does not let you land changes without review for the most part, although as a social policy, not a programmatically enforced one. From the developer policy:
Given you have commit access I'm assuming you've already read that, but just wanted to make sure since the wording you used here confused me a bit. |
|
Thanks @boomanaiden154. Yes, agreed. I would not merge without a review; I was just trying to state that I was looking for a reviewer, and that I had commit access to merge once approved. My apologies for the confusion! |
|
@AaronBallman: I added you as a reviewer, as I noticed you in the commit history you made some relatively recent changes here, and GitHub suggested so as well. If there's a better owner (or a different etiquette to finding a reviewer in this part of the codebase), please let me know and feel free to unassign, thank you! |
llvm/docs/DeveloperPolicy.rst
Outdated
| included in the submitted code. | ||
|
|
||
| * Avoid 'tagging' someone's username in your commits and PR descriptions | ||
| (e.g. `@<someUser>`), doing so results in that account receiving an email |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have almost all email notification disabled but still receive github notifications. Maybe s/an email/a notification/`?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, replaced here: 9a42646
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these sort of PRs, where there's clear consensus on the approach in the corresponding Discourse thread, I'd add those involved in the discussion. I don't believe these sort of docs have a particular owner.
llvm/docs/DeveloperPolicy.rst
Outdated
|
|
||
| * Avoid 'tagging' someone's username in your commits and PR descriptions | ||
| (e.g. `@<someUser>`), doing so results in that account receiving an email | ||
| every time the commit is cherry-picked and to a fork. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "and" here seems misplaced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yes. That was a typo. It should read: "[...] the commit is cherry-picked and/or pushed to a fork".
Fixed here: f8cdebc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the preceding wording nits.
Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>
…rry-picked and/or pushed to a fork'
I will do so next time, thank you for the guidance. @nikic - can I'd appreciate a final pass now that the feedback is incorporated, so I can merge. Thank you! |
|
Thanks all Unfortunately |
…ot-be-in-commit-messages
|
SInce I made another push (although the diff has not changed). @kuhar can you help me with a final re-approval? I'll merge shortly after. Thank you. |
…rname in commit messages and PR descriptions (llvm#164328) Related to: https://discourse.llvm.org/t/forbidding-username-in-commits/86997 **Context:** When we merge a commit including tag to another username (e.g. `@<someUser>`), that account will receive an email / notification every time that PR is cherry-picked and pushed to a fork, generating _a lot_ of spam in the user's inbox. As of today, there's no way of disabling this on GitHub settings. **This PR** documents this error in our developer policy, and reminds contributors to avoid it. **Next steps:** I'm a big believer that any policy that is not enforced via automation is not enforced at all, so I'd love to see some kind of check to prevent this error. However, there does not seem to be an agreement to do that _yet_. I'll see if I can gather support for doing that. --------- Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>
…rname in commit messages and PR descriptions (llvm#164328) Related to: https://discourse.llvm.org/t/forbidding-username-in-commits/86997 **Context:** When we merge a commit including tag to another username (e.g. `@<someUser>`), that account will receive an email / notification every time that PR is cherry-picked and pushed to a fork, generating _a lot_ of spam in the user's inbox. As of today, there's no way of disabling this on GitHub settings. **This PR** documents this error in our developer policy, and reminds contributors to avoid it. **Next steps:** I'm a big believer that any policy that is not enforced via automation is not enforced at all, so I'd love to see some kind of check to prevent this error. However, there does not seem to be an agreement to do that _yet_. I'll see if I can gather support for doing that. --------- Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>
Related to: https://discourse.llvm.org/t/forbidding-username-in-commits/86997
Context:
When we merge a commit including tag to another username (e.g.
@<someUser>), that account will receive an email / notification every time that PR is cherry-picked and pushed to a fork, generating a lot of spam in the user's inbox. As of today, there's no way of disabling this on GitHub settings.This PR documents this error in our developer policy, and reminds contributors to avoid it.
Next steps: I'm a big believer that any policy that is not enforced via automation is not enforced at all, so I'd love to see some kind of check to prevent this error. However, there does not seem to be an agreement to do that yet. I'll see if I can gather support for doing that.