Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Propose/Create PULL_REQUEST_TEMPLATE.md #935

Closed
wants to merge 6 commits into from

Conversation

xuhang57
Copy link
Contributor

@xuhang57 xuhang57 commented Jan 18, 2018

Github feature:
This patch proposes a Pull Request Template so that each PR can have a thorough description. Please feel free to discuss the content.

This patch proposes a Pull Request Template so that each PR can have a thorough description.  Please feel free to discuss the content.
@naved001
Copy link
Contributor

I think we already have this under developer guidelines (docs/developer-guidelines.md), perhaps you could update those?

@xuhang57
Copy link
Contributor Author

@naved001 as discussed

@naved001
Copy link
Contributor

Just in case you didn't what this does (like me a few minutes ago), this is what @xuhang57 is doing

https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/

- [ ] Add unit tests in the corresponding file and create one if none are present.
- [ ] If practical, bug fixes should have an reproducing test to ensure that the bug does not come back.
- [ ] Run deployment tests if code could affect switches
- [ ] Reviewed and approved by at least one other contributor.
Copy link
Contributor

Choose a reason for hiding this comment

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

We require at least 2 reviews per PR, or one review for simple documentation changes.

as Naved mentioned, requires 2 for most PRs
Copy link
Contributor

@zenhack zenhack left a comment

Choose a reason for hiding this comment

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

Two minor things.

In addition, I think there's a way to set a contribution guidelines file, which Github will prompt the user to read. Since most of this is a checklist, that may make more sense; we don't really want the checklist itself in the PR description I think. @naved001, thoughts?

@@ -0,0 +1,15 @@
## Description

Please describe your pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. When linking to an issue, please use `refs #...` in the description of the pull request.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I fully understand the point of specifically using refs #...? What's wrong with Github's #... notation (or just a link, which I think Github will still figure out)?

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 yes, Github's #... should work :)


## Checklist before merging Pull Requests

- [ ] If functionality could have architectural implications or controversial, have a discussion with the team. Ideally, prior to coding to save effort.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add something point to the specs process for large changes.

@xuhang57
Copy link
Contributor Author

I believe it is possible to have contribution guidelines in such as: Contributing.md. I am not sure whether it will prompt the user to read or not whenever a user is trying to start a PR.

And maybe not having such a long checklist but having a simple checklist in the PR imho could save time for both contributors and reviewers ;)

@xuhang57
Copy link
Contributor Author

https://help.github.com/articles/setting-guidelines-for-repository-contributors/

maybe this works

But I still think these two features serve two different purposes. What do you guys think?

@naved001 naved001 mentioned this pull request Jan 22, 2018
@naved001
Copy link
Contributor

naved001 commented Jan 22, 2018

I still think these two features serve two different purposes. What do you guys think?

All it says is to describe what their PR is doing and to refer to the issue, and whoever has read* the github docs would know how to do that hopefully. I think the contribution guidelines page is good enough (since it will display a prompt on top when submitting a PR) and this might not be necessary.

@zenhack
Copy link
Contributor

zenhack commented Jan 22, 2018

I agree pull request templates serve a somewhat different purpose than the contributing doc, but I also don't think we need a pr template as-is; the message directing folks to read the contribution guidelines seems like it should cover what's here currently.

@xuhang57 xuhang57 closed this Jan 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants