-
Notifications
You must be signed in to change notification settings - Fork 18
chore: Revise pull request request template #289
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
base: main
Are you sure you want to change the base?
Conversation
Hello Marek! thanks for the PR! While thinking about this, I thought an option to remove the need for the manual process would be to 'detach' the checklist from the PR template and add that as github action by which when opening a PR, a 'bot' would comment on the PR the checklist for reviewers and developers to go through it. That way, we could keep a more meaningful github commit history without introducing a manual process as part of our development. What do you think? |
Ana, that is a very good solution. Can you check TODOs in my comment? This would also increase the user experience, as I find it always a bit tedious to enter
|
Yes I could click on that TODO without any problem! |
.github/pull_request_template.md
Outdated
@@ -2,19 +2,20 @@ | |||
|
|||
<!-- Provide a brief summary of the changes introduced in this pull request. --> | |||
|
|||
## Intent and Issue Number |
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.
How does Intent differ from Description?
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 believe well-crafted commit messages provide context by addressing the following questions:
- What changes have been introduced?
- What problem does this change solve?
- What issue or task does this change relate to?
I would answer these questions under the headings 'Description', 'Intent', and 'Issue Number'. But perhaps you could suggest clearer headings. What about replacing the current instructions given as <!-- comments -->
by these questions? Would that ease the template?
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.
Thanks Marek. Particularly for 1 & 2 I wonder if these should not be the actual headings? If not, perhaps hidden as comments is also useful.
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 idea.
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.
@MeraX we discussed this with the team, the creation of an additional ci workflow might be cumbersome so we could opt to simplify the PR template, and rather than having 'tick' boxes use the questions or headers we currently have, plus a reminder or responsibility note at the bottom to remind both reviewers and developers about dependencies, tests and testing their code with multiple gpus/node.
Description
What issue or task does this change relate to?
What problem does this change solve?
Describe if it's a bugfix, new feature, doc update, or breaking change
What issue or task does this change relate to?
link to Issue Number
Additional notes
As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed.
The last bit would be repeated in the commit message for each PR, but this would simplify our workflow across all the anemoi packages.
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.
Ana, please go ahead and push your suggestion to this branch.
Description
The new PR template puts the information content before the checklist. This simplifies the merging process when including the PR description in the merge commit message.
Intent
Implementing this template together with setting the "Default commit message" to "Pull request title and description" provides a comprehensive git history.
Type of Change
Code Compatibility
Code Performance and Testing
Dependencies
Documentation
Additional Review Notes
Review Process