Skip to content
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

change: [M3-8857] - Update PULL_REQUEST_TEMPLATE (Part 2) #11236

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 40 additions & 19 deletions docs/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
## Description πŸ“

Highlight the Pull Request's context and intentions.

## Changes πŸ”„
List any change relevant to the reviewer.

List any change(s) relevant to the reviewer.

- ...
- ...

## Target release date πŸ—“οΈ

Please specify a release date (and environment, if applicable) to guarantee timely review of this PR. If exact date is not known, please approximate and update it as needed.

## Preview πŸ“·

**Include a screenshot or screen recording of the change.**

:lock: Use the [Mask Sensitive Data](https://cloud.linode.com/profile/settings) setting for security.
Expand All @@ -23,38 +28,53 @@ Please specify a release date (and environment, if applicable) to guarantee time
## How to test πŸ§ͺ

### Prerequisites

(How to setup test environment)

- ...
- ...

### Reproduction steps

(How to reproduce the issue, if applicable)
- ...
- ...

- [ ] ...
- [ ] ...
Comment on lines +40 to +42
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reasoning behind using checkboxes for reproduction/verification steps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Requiring slightly more engagement on the Author's part to confirm they did, in fact, verify those things since all of them should apply to every PR opened. (This differs from the consideration bullets above, where some did not always apply, which was cause for potential confusion.) Any concerns about the checks, or were you thinking it would be best to aim for consistency?

Related tangent:
I'm not sure I like the checklist -> bulleted change above either. I think it will encourage more automatic skimming. The potential confusion mentioned above could be solved by adding a line like "Please check only those that apply." before the consideration checklist.

Copy link
Contributor

@jdamore-linode jdamore-linode Nov 12, 2024

Choose a reason for hiding this comment

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

Gotcha! I always looked at this more as a spot to put step-by-step instructions for reviewers to follow when verifying PR changes, but I see plenty of value in emphasizing that authors should also be doing their part to self-review and test their PRs too.

Edit: Also totally hear you about the checkbox/bullet change. I like the idea of saving ourselves some clicks, but if we think it might come at the cost of having devs overlook important points that might bite us later then I could understand going back to the way it was.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh shoot, I misread this comment and thought it was referring to the checks in the section below where Connie commented. That's my bad.

But the answer is somewhat similar! In retro, we talked about liking when Authors provide checklists for their reviewers - it's easier to review, so we want to encourage that! In that same vein, Authors should definitely also be confirming their own changes.

Copy link
Contributor Author

@mjac0bs mjac0bs Nov 12, 2024

Choose a reason for hiding this comment

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

but if we think it might come at the cost of having devs overlook important points that might bite us later then I could understand going back to the way it was.

I'm going to merge this change and we'll give the bullets a try. Will be keeping an eye out for whether the single checkbox works in our favor and raise the issue if we should revert!


### Verification steps

(How to verify changes)
- ...
- ...

## As an Author I have considered πŸ€”
- [ ] ...
- [ ] ...

## As an Author, I have considered πŸ€”

*Check all that apply*
- πŸ‘€ Doing a self review
- ❔ Our [contribution guidelines](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md)
- 🀏 Splitting feature into small PRs
- βž• Adding a [changeset](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md#writing-a-changeset)
- πŸ§ͺ Providing/improving test coverage
- πŸ” Removing all sensitive information from the code and PR description
- 🚩 Using a feature flag to protect the release
- πŸ‘£ Providing comprehensive reproduction steps
- πŸ“‘ Providing or updating our documentation
- πŸ•› Scheduling a pair reviewing session
- πŸ“± Providing mobile support
- β™Ώ Providing accessibility support

- [ ] πŸ‘€ Doing a self review
- [ ] ❔ Our [contribution guidelines](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md)
- [ ] 🀏 Splitting feature into small PRs
- [ ] βž• Adding a [changeset](https://github.com/linode/manager/blob/develop/docs/CONTRIBUTING.md#writing-a-changeset)
- [ ] πŸ§ͺ Providing/Improving test coverage
- [ ] πŸ” Removing all sensitive information from the code and PR description
- [ ] 🚩 Using a feature flag to protect the release
- [ ] πŸ‘£ Providing comprehensive reproduction steps
- [ ] πŸ“‘ Providing or updating our documentation
- [ ] πŸ•› Scheduling a pair reviewing session
- [ ] πŸ“± Providing mobile support
- [ ] β™Ώ Providing accessibility support
<br/>

- [ ] I have read and considered all applicable items listed above.
Comment on lines +53 to +68
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Converted to bullet points instead of checkboxes and added a final checkbox for contributors to acknowledge the section. Do we feel okay about this?

Copy link
Contributor

Choose a reason for hiding this comment

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

These are all good changes! I think we need a followup after opening a PR.

Some suggestions after opening a PR (could be weighed by a larger group)

  • Let's remove the bullets cause it impacts reading negatively IMO. Can do it as such with markdown I believe
First item  (<-- two spaces)  
Second item  
  • Let's make the title an incentive: "What will help merge this faster (if applies)"
  • Let's include this section in the "deletable" description of this PR (what's under
    > **Note**: Remove this section before opening the pull request

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@abailly-akamai Thanks for the feedback! I just added this as a cafe item for Thursday.


## As an Author, before moving this PR from Draft to Open, I confirmed βœ…

- [ ] All unit tests are passing
- [ ] TypeScript compilation succeeded without errors
- [ ] Code passes all linting rules
coliu-akamai marked this conversation as resolved.
Show resolved Hide resolved

---

Comment on lines +70 to +77
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a suggestion from Retro. Open to feedback on how we want to represent these as requirements.

## Commit message and pull request title format standards

> **Note**: Remove this section before opening the pull request
Expand All @@ -63,6 +83,7 @@ Please specify a release date (and environment, if applicable) to guarantee time
`<commit type>: [JIRA-ticket-number] - <description>`

**Commit Types:**

- `feat`: New feature for the user (not a part of the code, or ci, ...).
- `fix`: Bugfix for the user (not a fix to build something, ...).
- `change`: Modifying an existing visual UI instance. Such as a component or a feature.
Expand Down