-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
docs: Update PR templates #7290
Conversation
d8553bb
to
8d1147d
Compare
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.
MTGL. Left some comments for style.
.github/pull_request_template.md
Outdated
<!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.--> | ||
|
||
|
||
#### Checklist |
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.
can you include checking/updating copyright years in this checklist?
.github/pull_request_template.md
Outdated
@@ -0,0 +1,43 @@ | |||
#### What does the PR do? |
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.
Thoughts on:
- One template, adding an "External Contributor" section with a reminder of CLA requirement
or - Two templates: Internal and External Contributor? External one having CLA requirement as well has possibly fewer section like no Pipeline ID?
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.
Aiming to reduce the overhead of external PRs having the extra round trip of "Hey, did you sign the CLA?"
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 think two templates make sense - as it also would could have a section on pre-commit / code ql
.github/pull_request_template.md
Outdated
|
||
#### Type: | ||
- [ ] Feature | ||
- [ ] Bugfix |
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.
Should we just use the Conventional Commits list if that's what we're going for here?
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
];
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.
And do we want to enforce having it in the PR title for automatic release notes / change logs?
ex:
chore: Update PR 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.
like the idea of referencing an existing standard / practice
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.
It looks like there are some github actions that can do either/both:
- enforce PR titles follow the structure
<conventional_commit_type>: <Title>
- enforce all commit messages follow
<conventional_commit_type>: <commit_message>
I think (2) may be overkill or more of a "shock" to current workflows, but (1) could be a nice start for automating the check - maybe consider (2) later IMO.
I didn't find any particular action/tool/repo that seemed like more of a gold standard than the others, so may need to poke around at what some other big projects do that we like.
In general, looks good to me--thanks for helping us improve our code quality 🙏 |
What does the PR do?
This PR adds a guideline template that all PRs should follow, so that Triton maintains its code quality.
This will populate any new PRs with this description.
ref
Checklist
<commit_type>: <Title>
Commit Type:
Check the conventional commit type
box here and add the label to the github PR.
Related PRs:
No related PRs
Where should the reviewer start?
.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Test plan:
No e2e tests added, this page should test if it works
Internal contribution view: pull_request_template
external contribution view: pull_request_template_external_contrib.md
Caveats:
Reviewers are in charge of verifying the fields are all populated
Background
Currently Triton PRs have been getting merged with many lines of redundant git commits (not squashed), or have been neglected in testing. This is an effort to improve this behavior
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
None