Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

PR template improvements #14148

Merged
merged 10 commits into from
Jun 13, 2023
Merged

PR template improvements #14148

merged 10 commits into from
Jun 13, 2023

Conversation

sacha-l
Copy link
Contributor

@sacha-l sacha-l commented May 15, 2023

This PR updates the PULL_REQUEST_TEMPLATE.md to make it simpler to digest, with links to the labeling requirements and the style guide instead of duplicating that content. It also places more of a focus on the "Description" section, providing more granular guidelines to motivate authors to submit PRs with clear descriptions.

I've also made some minor edits to CONTRIBUTING.adoc, which I caught while making changes to the PR template.

@sacha-l sacha-l added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 15, 2023
@sam0x17
Copy link
Contributor

sam0x17 commented May 15, 2023

The info about the labels is important though, no? I always find myself having to look at that

@sacha-l
Copy link
Contributor Author

sacha-l commented May 15, 2023

The info about the labels is important though, no? I always find myself having to look at that

True.. My thinking is that because that information exists in CONTRIBUTING.adoc, point authors to that resource. Happy to add it back if you think its useful to have it in the checklist.

Comment on lines 23 to 25
- [ ] My PR includes a detailed description as outlined in the "Description" section above
- [ ] My PR follows the [labeling requirements](./CONTRIBUTING.adoc#merge-process) of this project (at minimum one label for each `A`, `B`, `C` and `D` required)
- [ ] My code follows the [style guidelines](./STYLE_GUIDE.md) of this project
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why repeat stuff about the description again?

Labeling is enforced by CI and external people can not change lables?

Style guide aka fmt is also checked via CI

Copy link
Contributor

@sam0x17 sam0x17 May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fair point because in theory they shouldn't need to manually check these off since CI will be checking them, but finding out about something only when it fails isn't the best experience imo. Even if they can't change them, it's nice to know about them beforehand

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should include a note that outside contributors cannot set the labels directly but that someone will set them when the pr is reviewed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about just adding this note under the #Checklist heading:

The CI bot will check that you have fulfilled the labeling and style guide requirements detailed in the checklist below. Don't worry if you don't have permissions to set the labels, you can still submit your PR and the person reviewing will set them for you.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why put there redundant information? I mean people will see this ^^

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I would remove the old style-guide. It pertains to the days that we didn't use rustfmt 🙈

@juangirini
Copy link
Contributor

bot rebase

@paritytech-processbot
Copy link

Rebased

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 23 to 25
- [ ] My PR includes a detailed description as outlined in the "Description" section above
- [ ] My PR follows the [labeling requirements](./CONTRIBUTING.adoc#merge-process) of this project (at minimum one label for each `A`, `B`, `C` and `D` required)
- [ ] My code follows the [style guidelines](./STYLE_GUIDE.md) of this project
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I would remove the old style-guide. It pertains to the days that we didn't use rustfmt 🙈

@sacha-l sacha-l requested a review from kianenigma May 22, 2023 12:31
@sacha-l
Copy link
Contributor Author

sacha-l commented May 22, 2023

bot rebase

@paritytech-processbot
Copy link

Rebased

@sacha-l
Copy link
Contributor Author

sacha-l commented Jun 13, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 51840a8 into master Jun 13, 2023
@paritytech-processbot paritytech-processbot bot deleted the sl/improve-PR-template branch June 13, 2023 08:21
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* Minor edits to CONTRIBUTING

* Update PULL_REQUEST_TEMPLATE

* Add Closes for GH semantic linking

* Update docs/PULL_REQUEST_TEMPLATE.md

* Update docs/PULL_REQUEST_TEMPLATE.md

* Apply suggestions from code review

* Update docs/PULL_REQUEST_TEMPLATE.md

---------

Co-authored-by: parity-processbot <>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants