-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Greatly simplify and clarify Github pull request template #8272
PR: Greatly simplify and clarify Github pull request template #8272
Conversation
I do not see the benefit of adding that info in a checkbox :
The only purpose I can think of for this is to be able to play the PR police... I agree this is useful when someone contributes for the first time, but after that, the checkbox becomes meaningless. I doubt that having to check this on every PR really helps long-time contributors and devs to remember that they needs to follow PEP8 and PEP257 in their PR.... So, I would replace that by a simple sentence written as a MD comment. In addition, we can use Probot to provide more infos to first time contributors. |
I think the checkboxes in the "Description of changes" section should be written as a series of commands, like:
But I'm not sure the "Write at least one-line docstings (for any new functions)" has its place there. I think this is included as part of the "we need to follow the PEP 257 Guidelines" specification. It is in the same league as the 4-space indent specification IMO. |
0a00951
to
6a7f84a
Compare
This confusing to me. It says By submitting this Pull Request OR typing my name below. So, why are we requested to write our name below, if this can be done simply by submitting the PR? Would it be possible to replace that by :
|
Or, regarding the #8272 (comment) I made above, instead of writing down our names, would it be possible to add this in a checkbox instead? I think in that case, that would be very meaningful. |
Okay, done.
Okay, but is there a particular reason/justification for that, other than just the habit of writing commit messages that way? Neither are all that decisive, but I see two conceptual reasons why past tense makes sense here:
That was my initial thinking too, but the reason I put it there was that it fell under the "optional things that might not be included in the initial submission", and the fact that PEP 257 only says that public functions and methods "should" have docstrings, as well as it being more specific about the nature of docstrings to include. I can remove it since that's not a very strong justification, but that leaves us with only two list items which looks a little silly. |
Ok I understand. I was seeing this more like a "TODO" list. Like this PR for example #8192.
This makes sense too. I was not seeing this as a list of things we are asking contributors to do, but more as a tool for the contributors to use to structure and document the progress in their PR. So basically, I think both options as correct. It depends if you see the PR template as a tool for the developers or as a tool for guiding first time contributors. Edit: I'm not sure what I like the best. I will need to think about it. So do as you wish. |
Ok, regarding my #8272 (comment), I think I like better the past tense finally, so let's keep it that way. Forget what I said. |
You do know whom you're asking that of, right? :P If there is one thing I am infamous on this repo for, it is writing long and rambling replies disagreeing and arguing with even the most trivial of propositions.
That's a good point, and one I've considered at length multiple times. Singing it positively affirms people have actually seen, read and agree to the DCO, both making sure they understand what they agreeing to and they it is clear that they are actually agreeing to it in an enforceable way. Its the reason almost all websitse or installer with a license/ToS that you have to agree to at some point makes you actually click "Agree" or check a box rather than just saying "by creating an account" and leaving it at that, or even pre-checking the box/selecting "Agree" by default, at least whenever they can. However, including the "or submitting the PR" covers us in case they don't, and we forget to ask them to, or they try to sneakily remove it and claim that means they don't agree anymore. By including both, we're covered in all reasonable scenarios.
I considered that, but a checkbox is much more easily "mutable" and less ambiguous than a written name, which unlike a checkbox requires a specific and deliberate sequence of actions that cannot be construed to be an accident. Furthermore, typing one's name is considered to be legally equivalent to "signing" something, in this case the DCO, while there is no such strong legal precedant behind checking a Github checkbox. If we're going to include this, its worth spending an extra second or two and doing it right (of course, the best way would be having all contributors sign their commits with |
Indeed, two ways of looking at the same thing. It certainly can be seen as a todo list. Ultimately both reasons were pretty weak, the first based on the context of the heading they were under, and the second optimizing to be a little more gentle on new contributors while not taking anything really away from current ones. |
Hey @jnsebgosselin , are there more changes you'd like to make, or do you still need time to look over it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is IMO a very good step towards the right direction. I'm happy with the work we have done here.
I left some minor comments.
6a7f84a
to
07ee5a8
Compare
@jnsebgosselin Thanks for all the catches; my brain was clearly turned off last time missing all that, since even I saw it right away opening up the file today. |
Pull Request Checklist
modified the
spyder/defaults
directory, or added new icons/assetsDeveloper Certificate of Origin Affirmation
By submitting this Pull Request or typing my name below, I affirm the
I certify the above statement is true and correct: CAM-GerlachDeveloper Certificate of Origin
with respect to both the content of the contribution itself and this post,
and understand I am releasing it under Spyder's MIT (Expat) license.
Description of Changes
Per the suggestions of @jnsebgosselin , I've greatly simplified the PR template, reducing its total size by ~40% (by character count).
Issue(s) Resolved
Fixes #8270