-
Notifications
You must be signed in to change notification settings - Fork 344
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
Draft guidance on how to write good commit messages #1178
Comments
@mcking65 I’ve drafted advice based on what I could extrapolate from our commits history over the last twelve months. Can you add anything that I might have missed? |
@mcking65 @ZoeBijl If so, then either the commit message, or the PR description (personally I prefer to have this in the PR description) contains something like: Edit: Regarding my preference to have this in the PR description, I mean unless there's no PR, in which case adding it to the commit comment is fine. |
I like that suggestion 👍. Would that mean an example PR title looks like: Button Example: add cute kitten image (Closes #420)? |
I authored a first draft on this wiki page about protected branch management. This page falls under management and operations in the wiki sidebar. |
My preference is to put it in the description comment for the PR (i.e. the initial comment). The issue-closing magic would work if @mcking65 Note that I'm not sure whether having the word "issue" between the keyword and the issue number will automatically close the issue when the PR is merged - we would have to try it. |
The documentation for closing words makes me think the number needs to follow the word directly. Because it doesn’t have examples of other uses. Also, yes, having it in the content makes a lot more sense 🤦♀ . |
We need to document our preferred way of writing commit messages. This will allow everyone to write commit messages that are useful to us and that fit our style.
Example format:
Type: message (pull #001)
Type can be:
Your message should be describing what the PR does, not what you did. It should also be relatively short. Try to keep it around 6 words.
✅ Add
aria-labelledby
to group of controls⛔️ Added
aria-labelledby
to group of controls⛔️ Adds a label to a group of controls via the
aria-labelledby
-attributeThe text was updated successfully, but these errors were encountered: