-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Create a new pull request template #678
Conversation
aa58b45
to
3e2e9de
Compare
Few thoughts - we could add something to encourage people to use their discretion as to how much of the PR template to use vs which sections to delete. Not all PRs will require all (or almost any) sections to be filled out. That said - we can also add something to stress that the "why" is preferred for most PRs. There will (hopefully) be a lot of PRs and not everyone reviewing can be expected to have all the context for every PR. |
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.
This is great! 🙌🏾
A few comments/thoughts and i also second @svileshina's suggestion.
This is the kind of thing we'll have to try out for a while and tweak.
Thanks for doing this, @grenewode. I've had templates like this in other projects, and I feel like having one is a good fit here. I like the idea of making ensuring or encouraging every PR has "why", "what", and "how" answered. I usually find it easier to focus on more helpful writing for the team if we use different wording as the prompts. For example, I like "Summary (why)" (or "Description" or "Overview") as a reminder to keep that initial "why" section short like the lead paragraph in a newspaper article. And then maybe a "Changes (what)" section that then goes into more details? Also, for sections we want to be more optional than others, GitHub will respect HTML comment syntax as commented out. We can also use these comments to include guidelines or suggestions for formatting. For example, we could keep "How" has a section header, and then add a commented out block that says something like
And this lets us incorporate @svileshina suggestion of letting some sections be optional. I'm not happy with this exact wording, so suggestions / recommendations welcome |
I started writing my comment at some point before @exbinary posted anything and the page didn't update. If my comments seem out of sync compared to comments he's already made, that's why |
@@ -0,0 +1,54 @@ | |||
# Why |
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.
may we add a "Resolves #" section to top?
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 made some changes, with a note about using github's keywords for this
3e2e9de
to
58d94e4
Compare
Add a simple pull request template. This will need some review once the issue templates are made to insert [automation urls](https://docs.github.com/en/github/managing-your-work-on-github/about-automation-for-issues-and-pull-requests-with-query-parameters) Resolves #518
58d94e4
to
52ded15
Compare
I just pushed some changes to make things a little nicer.
|
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! Appreciate you reworking it, i like this version.
Co-authored-by: lasitha <exbinary@gmail.com>
Not sure why, but the template doesn't seem to be presented on new PRs 😕. |
Why
Resolves #518
We want to ensure that all pull request made to this repository follow a uniform pattern. This will make it easier to review new pull requests. It will also help to promote cultural norms around testing and security/accessibility mindfulness.
Pre-Merge Checklist
All these boxes should be checked off before any pull request is merged!
What
How
A github pull request template is a simple markdown document, placed in the special
.github/PULL_REQUEST_TEMPLATE
directory. Github will use files in these folders to give users the option to use the template when creating new pull requests.You can find more information in github's documentation. This template was also inspired by the casa project's pull request template
Testing
Again, there's nothing really to test for this issue - but hopefully having this section will encourage more testing in the future!
Outstanding Questions, Concerns and Other Notes
Next Steps
We should create issue templates as well!
Once issues templates have been created, we should make sure that we are using automation urls as appropriate throughout the project.
Accessibility
This changes does not have any accessibility implications by itself. However, by encouraging developers to think about these issues as they propose changes, we can hopefully improve the quality of the accessibility & security of the app in the future.
Security
Likewise, this change does not have any security implications by itself.
Meta
I'm exited to see these templates being used!