-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
github: adding a pull request template #592
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
Conversation
|
feel free to add more requirements to the list in this template. |
|
This is really great! I would also add/mention:
Cheers |
|
@pepe2k, your points are good. But I think it would be also nice to have CONTRIBUTING.md file in the root of the project near readme, in which there will be described your points and maybe also other dedicated to contributing info (maybe from LEDE Wiki). GitHub has integration of this file and points user to read it before creating PR. |
|
I managed to help someone on IRC using this quick and ugly hack... |
|
@miltador the openwrt packages feed has a CONTRIBUTING.md file we can also mostly copy. https://github.com/openwrt/packages/blob/master/CONTRIBUTING.md Most of other stuff proposed is good for a wiki page, not a short reminder, thanks dizzyyy for that pastebin. Will make a wiki page soon-ish. |
|
I think |
|
Maybe it could be something more direct and in the form of a check list. |
|
updated to integrate some of the feedback. |
.github/pull_request_template
Outdated
| address | ||
|
|
||
| - all commits must be linked to your github account (you see your logo/avatar in front of them), if they aren't | ||
| linked you probably need to change the local git name or email in your PC to match the one on GitHub. |
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.
incorrect, SoB needs to match author field.
.github/pull_request_template
Outdated
| - commit descriptions must describe the problem solved or enhancement in the commit body | ||
|
|
||
| - all commits must end with "Signed-off-by: My Name <my@email.address>" where you write your real name and real email | ||
| address |
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.
s/must end with/must contain/
.github/pull_request_template
Outdated
| website) | ||
|
|
||
| - commit titles start with "<package name>:" for packages "<device architecture>: " for devices | ||
| - commit titles must state in short form what was fixed or added |
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.
s/titles/subject/
.github/pull_request_template
Outdated
| @@ -0,0 +1,23 @@ | |||
| Thanks for your contribution to the LEDE project! | |||
| To help people review your contribution we ask you to follow some rules: | |||
|
|
|||
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.
s/some/these/
.github/pull_request_template
Outdated
|
|
||
|
|
||
| - full patch submission rules are here | ||
| https://www.lede-project.org/docs/guide-developer/the-source-code#general_source_structure |
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.
s/rules/guidelines/
|
updated. the email in the Author field for PRs opened through GitHub is the GitHub's "primary email" in the settings, I found out in this PR when you told me to fix mine #471 |
.github/pull_request_template
Outdated
| address | ||
|
|
||
| - the name used in the "Signed-off-by:" line must be the same you write in "Name" field in GitHub settings, and/or | ||
| see in your PC with "git config user.name" |
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.
still incorrect. the author field and SoB need to match.
|
the #471 comment is true if and only if changes are made via the UI. if you push a locally generated tree then the author field is not changed by github. |
|
updated. I kept the instructions for fixing Author field as for most newbies it is auto-generated by git (either local or on GitHub) so they have no idea of what you mean by "Author field must match SoB" unless someone explains how to fix it. |
|
coming to think of this, the patch you propose does not add a template. it adds an instruction text. a template is, as the name suggests a template that needs to be filled out, like a blank form where you just fill in the fields. |
.github/pull_request_template
Outdated
|
|
||
| -- if you are editing files and committing through GitHub, you must write your real name in the "Name" field in | ||
| GitHub settings and the email used in the "Signed-off-by:" must be your primary github email | ||
|
|
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.
one of the main problems is that author and SoB do not match. adding an explanation that does not address one of the most common error does not make sense. i am not sure how many more time i need state that it is important to list this here. i have said it 4 times now. but i am happy to repeat myself even more often.
|
adding a commit that explains how to add commits and then having that commit not follow that explanation seems odd. why is there no prefix on the subject line ? |
The same was done by Thess for the issue template, see here https://github.com/lede-project/source/blob/master/.github/issue_template Afaik it's common on github to "misuse" the template feature this way as there is no other way to post a message to people making PRs.
because this is a file for github, not for a package or a device in LEDE, and the commit for the issue template did not have a prefix so I thought it was OK to not have one here too 4f40f22
What? Author field is auto-generated by git by combining name and email: Newbie guides never mention "author field" and there is no such thing in git settings afaik so I have to tell how to set that properly in a document supposed to help newbies. |
|
NAK from me until the note is added stating that Author field and SoB line need to match as this is one of the most common errors next to
|
|
Um, I already wrote in the template:
Did you miss it or is it not clear? |
Agree. This actually can be done in a style of template that user should fill instead of removing the text. As a good example of such, look at this template: https://github.com/serverless/serverless/blob/master/.github/PULL_REQUEST_TEMPLATE.md |
|
Prefix tools infrastructure with the TOOL. Or prefix with the package/directory. |
.github/pull_request_template
Outdated
| - all commits must contain "Signed-off-by: My Name <my@email.address>" where you write your real name and real email | ||
| address | ||
|
|
||
| - the Author field the must match the "Signed-off-by:" line: |
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.
missed this and looking at it now i see a trailing : that should be removed.
|
removed the : now. |
.github/pull_request_template
Outdated
|
|
||
|
|
||
| Please remove this message before posting the pull request. | ||
|
|
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.
there is a trailing blank line
|
removed blank line. I don't see why that was an issue as this is a plain text file anyway. |
|
@blogic you said in another of my PRs that dma-buf (a kmod) should have the "kernel:" prefix instead of "package name:". Is that true for all kmod packages too? |
|
ideally the prefix should be linux but that is confusing so for this package we use kernel: git log --oneline will tell you expected prefixes |
|
please wait, updated the PR too soon. |
|
ok, done. |
|
If there are no more comments on this, I think it might make sense merging it. |
|
ping, will this be merged? |
|
The |
|
@stefanct I don't understand what you are saying. Can you explain it better? What you want me to do? |
He suggests that the prefix examples list should include also "build:" for commits like f938de7 and fe1e362 that target the build logic itself. Also "toolchain:" has been used in some similar cases, e.g. in b2c6672 |
|
@bobafetthotmail You are listing some possible prefixes here: c7cfdff#diff-f7162af36e86259e13bfbf7f0fc3eb48R11 |
|
ok updated with the "build:" option for non-tool buildsystem changes. |
|
Hello @bobafetthotmail, I would like to move on with this one.
Cheers, |
|
Hm, ok for me. Will migrate bulk of the submission requirements to the wiki and make the required changes in a few days. |
|
Updated, the wiki article is here https://lede-project.org/docs/guide-developer/contribution (it is accessible from "Contributor's Guide" link on the sidebar on the left) |
|
Excellent work so far. Any opinions on renaming:
IMHO it more descriptive and might help people to find what they are looking for. |
|
I would like to see a short form underneath like OpenWrt packages, but this has been run to long. Lets just merge this simple piece of literature as is now and be done with it. |
|
changed the titles on wiki as suggested. (the page link does not change) |
|
@bobafetthotmail thank you for work on this! One thing:
Also, it's probably not related to the PR that much, but I will just drop it here. I have some problem with the Wiki left navigation menu: when I'm in Cheers, |
This text is used by GitHub to remind important things to people sending PRs through the GitHub's web interface. See here for more information https://github.com/blog/2111-issue-and-pull-request-templates It links to the wiki page about submission rules. Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
Sigh, respinned the patch again, thanks.
That's because the page is (was) technically in Developer Guide "namespace thing" in the wiki, see the (old) URL? Since I had to fix that typo anyway, I also moved the page to root wiki "namespace" (and changed the link accordingly) so it won't open the menu like that. |
|
@pepe2k fine with me. Feel free to merge the PR and hopefully it will save us some work. |
|
@bobafetthotmail and all others involved in work on this, thank you! I have merged this into my staging tree, with tiny change in commit subject. |

This text is used by GitHub to remind important things to people posting PRs through the GitHub's web interface. See here for more information https://github.com/blog/2111-issue-and-pull-request-templates
Loosely inspired by OpenWRT package feed's own pull request template
https://github.com/openwrt/packages/blob/master/.github/pull_request_template
Signed-off-by: Alberto Bursi alberto.bursi@outlook.it