Skip to content

pr template changes - #2404

Merged
lukastaegert merged 6 commits into
masterfrom
PR-template-adjustment
Aug 23, 2018
Merged

pr template changes#2404
lukastaegert merged 6 commits into
masterfrom
PR-template-adjustment

Conversation

@guybedford

Copy link
Copy Markdown
Contributor

I'd like to suggest some minor adjustments to the PR template.

  • Making the height of the template slightly shorter to get to business asap.
  • Encouraging breaking changes to be described in the main section
  • Reduce category options by having an "other"
  • Have a checklist for tests (yes is the only answer...)
  • Include a section at the top to list relevant issues

I'm also wondering about the "lint" one - do we need this with the commit hook? @lukastaegert

@guybedford
guybedford requested a review from shellscape August 13, 2018 11:13
### Breaking Changes?
- [ ] other

Are tests included?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are valid reasons not to include tests. CI updates, config updates, README updates, etc. I understand the intent here, but it's not accurate.

Comment thread .github/PULL_REQUEST_TEMPLATE.md Outdated
- [ ] feature
- [ ] refactor
- [ ] tests
- [ ] refactoring

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe "refactor" is correct here, as the verb describes the state. The past form is "refactored," while the present participle "refactoring" describes something currently in process, the action of undertaking a refactor. While a PR could be considered in process, it's supposed to be a finished work ready for review and merging. Don't be to be pedantic about it, I just see these things and they stand out to me 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Caught my eye too, because refactor is a verb, when this is a list of nouns. refactor could be argued as a noun I guess, but refactoring feels more like the right noun to me. Definitely personal preference though.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Only mentioning because English is fun (seriously, I get a kick out of this stuff). bugfix, feature, and refactor are all part of a class of words called "gerunds," or verbs that are used as nouns.

Comment thread .github/PULL_REQUEST_TEMPLATE.md Outdated
- [ ] yes

Breaking Changes?
- [ ] yes (please describe clearly below)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

since we're removing the heading, let's make (please describe clearly below) stand out some more by bolding it. emphasis here is a good thing.

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I generally like the changes but I am not 100% sold on not giving breaking changes their own line. It might make sense to move it to the bottom, though i.e. leave everything as it is in the PR but add another heading at the bottom to the tune of "If applicable, what are the breaking changes exactly?"

The reason is that it for the few PRs I opened since we have the template, I felt this line helped me focus and formulate clearly what is going to break. Which again will help us to make sure, no necessary documentation updates or deprecations are forgotten. Otherwise I fear it might get spread all over "Describe your changes".

@guybedford

Copy link
Copy Markdown
Contributor Author

@lukastaegert one of the reasons I created this was actually exactly to describe what you are asking - to make it clear breaking changes should not get their own section but be included in the main description. (which was my impression on first read of the original) I've altered the wording slightly here.

Let me know if you have any suggestions for clarification further.

@guybedford

Copy link
Copy Markdown
Contributor Author

I've also altered the PR description title - otherwise it seems a bit odd I think having all PRs reading "Please describe your changes" as their heading. Other suggestions welcome too.

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good

@lukastaegert
lukastaegert merged commit 49af59e into master Aug 23, 2018
@lukastaegert
lukastaegert deleted the PR-template-adjustment branch August 23, 2018 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants