w3c / w3c.github.io

The W3C organisation
https://w3c.github.io/
144 stars 39 forks source link

Guidelines for syntax of titles in GitHub issues and pull requests? #98

Open kaelig opened 3 years ago

kaelig commented 3 years ago

There are usage recommendations for GitHub labels. Should there be recommendations for issue and pull request titles? (editors on my CG was recently asking themselves this question)

Examples I've seen in the wild:

Ideally, we'd document the reasoning behind these recommendations (see draft below).

Curious to hear what other folks think.


DRAFT Proposal:

Benefit of prefixes

Why use prefixes, when labels can do the same job? Both are useful, here are a few reasons to use prefixes in issue titles:

Screen capture showing an issue without a prefix in its title. The user has to hover it to reveal the label, and understand that it has to do with the format module. Had it been prefixed with [format], the user would have immediately known about what module this issue touches on.

Screen Shot 2021-09-21 at 10 46 13 AM

Do

todo

Don’t

todo

dbanksdesign commented 3 years ago

Very good points about the usability of the prefix. Maybe we can do prefix in the title for the module the issue is referring to, and use labels for the type of issue: question, bug, discussion, formatting, etc?

plehegar commented 2 years ago

+1 but only if the repo has multiple modules, such as https://github.com/w3c/csswg-drafts/issues. Otherwise it would simply be a repeat of what the repo is about. I feel that this needs to come in addition to Git Commit Msg conventions btw.

It may weel that we cannot link to a generic documentation here and have to create our own.