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 a PR template with a checklist #360

Open
dennwc opened this issue May 28, 2019 · 9 comments
Open

Add a PR template with a checklist #360

dennwc opened this issue May 28, 2019 · 9 comments

Comments

@dennwc
Copy link
Contributor

dennwc commented May 28, 2019

I've noticed a nice and short PR checklist used in one of the Matrix projects. I think it makes sense to do something similar for our projects, especially to add a checkbox for commit sign-off.

@bzz
Copy link
Contributor

bzz commented May 29, 2019

our projects .. add a checkbox for commit sign-off

I presume that you suggesting ALL the src-d projets to use the same GH PR template here.

Would not in this case every changeset not only require a sign-off for every commit, but also checking the box manually? :/ Or do you think automated GitHub check that every repository has is not enough for some reason?

In case this is summoned to relive maintainers from the burden of reminding contributors for cases when the check is failing - I would recommend using Github Saved Replis feature that would allow to remind that politly with a single hot key.

Also, some of the projects already do use templates that fit best for their needs.

At any rate, personally, I would prefer seeing all our projects adhering our existing conventions first (e.g not all repositories have MAINTAINER file) before introducing any new ones.

I do not mean to be dismissing, templates is good tool, but also do not see much "value for the clients" in generalizing this on all the project, on to of the conventions that are already in place.

@dennwc
Copy link
Contributor Author

dennwc commented May 29, 2019

The main value this will have is that anyone submitting the PR will immediately see the things he needs to consider in order for the PR to be accepted.

Checking those checkboxes is not necessary, and this is only a template - the user is free to remove it. But at lease new contributors will be aware that we have this check enabled and how to fix it before submitting the PR.

Having a quick reply is a nice way to solve it indeed, but we need a template for that one in our guide then :)

@bzz
Copy link
Contributor

bzz commented May 31, 2019

Thank you for clarifications!

but we need a template for that one in our guide then

or may be it's even possible to pre-configure somehow per-organization? 🤔

I really like the idea of having a "useful templates" collection/examples in the guide for

  • quick replies
  • repository issue templates
  • repository PR templates

that are left to be used on the maintainer discretion (as opposed to something mandatory for everything).

This way, I belive we can just start collecting those e.g under https://github.com/src-d/guide/tree/master/engineering /templates(?) on the "annoyance" basis (anyone can add a suggested solution to the problem that bothers him/his project), advertising those additions in some Slack channel and seeing it's adoption growing (as a sign of them actually solving issues other projects might have as well).

WDYT?

@creachadair
Copy link
Contributor

[…] left to be used on the maintainer discretion (as opposed to something mandatory for everything).

I agree. Particularly for things like issues, I have found templates can be quite helpful.

I'm not yet sold on the "manual checkbox" idea for pull requests, though. My sense is that strict requirements we should put into GitHub checks so that they're enforced automatically, and optional guidance should go into a "Instructions for Contributing" for the (each) project.

I suppose we could think of a checkbox template as a portable version of the contribution guidelines—but having to address it in every PR seems like too much. I could be convinced otherwise, though.

@dennwc
Copy link
Contributor Author

dennwc commented Jun 3, 2019

The ideal way to solve this will be to have a bot that posts a "hey, this is your first contribution" message with a contribution guide.

I agree that the template may be annoying when contributing multiple PRs.

@carlosms
Copy link
Contributor

carlosms commented Jun 3, 2019

The ideal way to solve this will be to have a bot that posts a "hey, this is your first contribution" message with a contribution guide.

GitHub already shows a message with a link to the contribution guidelines if it finds a CONTRIBUTING.md file.

@dennwc
Copy link
Contributor Author

dennwc commented Jun 3, 2019

OK, then I think we should just close this one. Or rename it to "make sure each repository contains CONTRIBUTING.md".

@smola
Copy link
Contributor

smola commented Jul 17, 2019

@src-d/data-processing team already uses a template with a checklist, together with a GitHub checks that requires all checkboxes checked (or if not applicable, just remove the checkbox itself). See an example here: src-d/gitbase#931

Every team is welcome to try what works best for their projects in this regard.

@smola
Copy link
Contributor

smola commented Jul 17, 2019

@dennwc OK, then I think we should just close this one. Or rename it to "make sure each repository contains CONTRIBUTING.md".

Please use a different issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants