Repository navigation
Replies: 4 comments 12 replies
|
I vote against this change. Can you elaborate on the why, please? I have doubts that this change will result in upping the bar for new contributors even more, if enforced. Also, call me lazy, but 3 times -m is also weird for me, just to comply to this. |
|
If we provide a clear template for PRs, IMHO enforcing it would be useful in the end. In the past, we often needed to explicitly ask contributor for creating a JIRA and putting it properly as a commit message prefix. This now transformed to GH Issues but the requirement still remains – have a formal and precise way to link an issue to PR. GH Actions might help with automating it. We could even consider enforcing the single commit policy. 😜 |
|
To me its fine to enforce a clear semantic. |
|
I don't understand how a PR template helps at all, as GitHub is smart enough to fill the PR for you based on the commit. Personally I don't use the GH UI to create PRs either, I just create them with "gh pr create -f". In general I think we should have more GH actions and bots that are validating things upfront as it makes the PR process much more streamlined. It's very costly and time consuming to ask people to update their PRs to do things like squashing, formatting the commit message, creating a GH issue, etc.. A bot can comment on that straight away, which lets the contributor update it straight away. While a human will not comment until hours or days later, in turn the contributor won't update it until hours or days on top of that. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
With the move to GH issues it seems people are being very creative in how to link PRs to GH issues. I propose we add a GH action that can enforce a commit message format, where I want to propose the following format:
In details:
For GH issue link I propose we limit the keywords supported by GH to just:
I've got a rough PoC for the above in https://regex101.com/r/yAKY1Z/1
It's relatively easy to create a commit with multiple lines:
All reactions