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

Add pull request template #670

Merged
merged 3 commits into from
May 31, 2016
Merged

Conversation

egeerardyn
Copy link
Contributor

This introduces a pull request template and hence fixes #650.

@@ -0,0 +1,18 @@
_Please tick all applicable boxes, fill in the **bold** fields, and remove these instructions from your PR._
Copy link
Contributor

Choose a reason for hiding this comment

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

How about replacing the _ with <!-- and -->? This way the text won't show when posted (and you don't need the 'remove these instructions from your PR' part).

Also, it's easier for people to tick the boxes after they've posted the PR (they can just click), so maybe change the instructions to: "Please fill in the bold fields, submit your pull request and then tick the applicable boxes"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great thinking on the _ vs HTML comments 👍 I will carry that out.

I don't know about your other suggestion. Once they have submitted the PR, mails go out to all watchers with incomplete information, which is undesirable IMHO. So that why I dislike it and will not change it unless I'm a minority that has that opinion.

I fully agree that ticking the boxes is easier from the interface than from GFM, but I think the time gain is negligible since:

  • Most people only submit 1 PR ever (for their own list), and even if you would look at the top committers, the distribution of number of commits drops off very steeply: 70, 18, 11, 6, 4, 3 (x5), 2 (x20), 1 (all the rest) and is evidence for the same phenomenon.
  • The difference in time (between clicking and typing) is going to be 5 seconds tops (probably just 2 seconds). If that is too much, I honestly doubt that the person involved is able to maintain a high-quality awesome list in his very limited time.

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't think about that, typing an x isn't too much of a problem so I think you're right for keeping it how it is.

 - Now uses comments instead of italics
 - No need to remove it from the template.
@@ -0,0 +1,18 @@
<!--Please fill in the **bold** fields, and tick all applicable boxes.-->
Copy link
Owner

Choose a reason for hiding this comment

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

This needs to tell the user to click the Preview tab.

@sindresorhus
Copy link
Owner

Add a checkbox for having a license and the correct one. Linkify to https://github.com/sindresorhus/awesome/blob/master/awesome.md#choose-an-appropriate-license

Add a checkbox for having contribution guidelines. Linkify to https://github.com/sindresorhus/awesome/blob/master/awesome.md#include-contribution-guidelines

 - reduce cruft around URL,
 - linkify some terms,
 - remove trick question tick box at the end,
 - mention preview tab,
 - ask for contribution guidelines,
 - ask for license.
@egeerardyn
Copy link
Contributor Author

@sindresorhus Thanks for the review, I hope you like it better now.

@sindresorhus sindresorhus changed the title Add pull request template for github Add pull request template May 31, 2016
@sindresorhus sindresorhus merged commit b461b49 into sindresorhus:master May 31, 2016
@sindresorhus
Copy link
Owner

Thank you! :)

@egeerardyn egeerardyn deleted the PR-template branch May 31, 2016 10:05
amsharma91 added a commit to amsharma91/awesome that referenced this pull request Sep 27, 2016
parinck pushed a commit to parinck/awesome that referenced this pull request Jul 23, 2017
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.

PR template to "enforce" contribution guidelines?
3 participants