Skip to contentSkip to conversation

github: Improve pull request template

PATCH In review Petr Vorel 3 participants 7 messages Jan 4, 2023 – Jan 10, 2023

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 github: Improve pull request template

* Signed-off-by
* code style
* links to wiki (API, maintainer checklist, ...)
* wrap text in html comments (instructions will not be visible)

---
 .github/pull_request_template.md | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
.github/pull_request_template.md +17 -3
index 477f49c6bc..1082bcdd88 100644
@@ -1,8 +1,22 @@
 [ type description here; PLEASE REMOVE THIS LINE AND THE LINES BELOW BEFORE SUBMITTING THIS PULL REQUEST ]
 
-Although we *occasionally* also accept GitHub pull requests, the *preferred* way is sending patches to our mailing list: https://lore.kernel.org/ltp/
-
+<!--
+* Although we *occasionally* also accept GitHub pull requests, the *preferred* way is sending patches to our mailing list: https://lore.kernel.org/ltp/
 There is an example how to use it: https://github.com/linux-test-project/ltp/wiki/C-Test-Case-Tutorial#7-submitting-the-test-for-review (using git format-patch and git send-email).
-
 LTP mailing list is archived at: https://lore.kernel.org/ltp/.
 We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list/.
+
+* Commits should be signed: Signed-off-by: Your Name <[email protected]>, see
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
+
+* New code should follow Linux kernel coding style, see
+https://www.kernel.org/doc/html/latest/process/coding-style.html.
+You can run 'make check' or 'make check-foo' in the folder with modified code to check style and common errors.
+
+* For more tips check
+https://github.com/linux-test-project/ltp/wiki/Maintainer-Patch-Review-Checklist
+https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines
+https://github.com/linux-test-project/ltp/wiki/C-Test-API
+https://github.com/linux-test-project/ltp/wiki/Shell-Test-API
+https://github.com/linux-test-project/ltp/wiki/C-Test-Case-Tutorial
+-->
Signature · 5 lines
2.39.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 31 lines · IST Petr Vorel

* Signed-off-by
* code style
* links to wiki (API, maintainer checklist, ...)
* wrap text in html comments (instructions will not be visible)

---
 .github/pull_request_template.md | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
.github/pull_request_template.md +7 -3
index 477f49c6bc..1082bcdd88 100644
@@ -1,8 +1,22 @@
 [ type description here; PLEASE REMOVE THIS LINE AND THE LINES BELOW BEFORE SUBMITTING THIS PULL REQUEST ]
 
-Although we *occasionally* also accept GitHub pull requests, the *preferred* way is sending patches to our mailing list: https://lore.kernel.org/ltp/
-
+<!--
+* Although we *occasionally* also accept GitHub pull requests, the *preferred* way is sending patches to our mailing list: https://lore.kernel.org/ltp/
 There is an example how to use it: https://github.com/linux-test-project/ltp/wiki/C-Test-Case-Tutorial#7-submitting-the-test-for-review (using git format-patch and git send-email).
-
 LTP mailing list is archived at: https://lore.kernel.org/ltp/.
 We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list/.
+
+* Commits should be signed: Signed-off-by: Your Name <[email protected]>, see
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
+
+* New code should follow Linux kernel coding style, see

.github/pull_request_template.md line 22

Quoted 10 lines
.github/pull_request_template.md +10 -0
+https://www.kernel.org/doc/html/latest/process/coding-style.html.
+You can run 'make check' or 'make check-foo' in the folder with modified code to check style and common errors.
+
+* For more tips check
+https://github.com/linux-test-project/ltp/wiki/Maintainer-Patch-Review-Checklist
+https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines
+https://github.com/linux-test-project/ltp/wiki/C-Test-API
+https://github.com/linux-test-project/ltp/wiki/Shell-Test-API
+https://github.com/linux-test-project/ltp/wiki/C-Test-Case-Tutorial
+-->

Regards,
Avinesh

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

Hello,

Please merge.

Quoted 51 lines · Avinesh Kumar

Hi,

Quoted 33 lines · IST Petr Vorel

* Signed-off-by
* code style
* links to wiki (API, maintainer checklist, ...)
* wrap text in html comments (instructions will not be visible)

---
 .github/pull_request_template.md | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
.github/pull_request_template.md +2 -2
index 477f49c6bc..1082bcdd88 100644
@@ -1,8 +1,22 @@
 [ type description here; PLEASE REMOVE THIS LINE AND THE LINES BELOW BEFORE SUBMITTING THIS PULL REQUEST ]
 
-Although we *occasionally* also accept GitHub pull requests, the *preferred* way is sending patches to our mailing list: https://lore.kernel.org/ltp/
-
+<!--
+* Although we *occasionally* also accept GitHub pull requests, the *preferred* way is sending patches to our mailing list: https://lore.kernel.org/ltp/
 There is an example how to use it:

https://github.com/linux-test-project/ltp/wiki/C-Test-Case-Tutorial#7-submitting-the-test-for-review
(using git format-patch and git send-email).

.github/pull_request_template.md +5 -1
-
 LTP mailing list is archived at: https://lore.kernel.org/ltp/.
 We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list/.
+
+* Commits should be signed: Signed-off-by: Your Name <[email protected]>, see
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
+
+* New code should follow Linux kernel coding style, see

.github/pull_request_template.md line 22

Quoted 10 lines
.github/pull_request_template.md +10 -0
+https://www.kernel.org/doc/html/latest/process/coding-style.html.
+You can run 'make check' or 'make check-foo' in the folder with modified code to check style and common errors.
+
+* For more tips check
+https://github.com/linux-test-project/ltp/wiki/Maintainer-Patch-Review-Checklist
+https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines
+https://github.com/linux-test-project/ltp/wiki/C-Test-API
+https://github.com/linux-test-project/ltp/wiki/Shell-Test-API
+https://github.com/linux-test-project/ltp/wiki/C-Test-Case-Tutorial
+-->

Regards,
Avinesh

Signature · 5 lines
Thank you,
Richard.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#3 lore raw

Hi Richie, Avinesh,

thanks for your review.

Quoted 3 lines

Hello,

Please merge.

Before merge, are you ok with one more change?

Kind regards,
Petr

+++ .github/pull_request_template.md
@@ -9,6 +9,11 @@ We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list
* Commits should be signed: Signed-off-by: Your Name <[email protected]>, see
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin

+* Commit message should be meaningful, following common style +https://www.kernel.org/doc/html/latest/process/submitting-patches.html#split-changes +https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes +https://chris.beams.io/posts/git-commit/
+
* New code should follow Linux kernel coding style, see
https://www.kernel.org/doc/html/latest/process/coding-style.html.
You can run 'make check' or 'make check-foo' in the folder with modified code to check style and common errors.

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#4 lore raw
Quoted 13 lines · IST Petr Vorel

Hi Richie, Avinesh,

thanks for your review.

Quoted 3 lines

Hello,

Please merge.

Before merge, are you ok with one more change?

Kind regards,
Petr

+++ .github/pull_request_template.md

Review We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list · line 15

Quoted 7 lines
(quoted diff) +4 -0
@@ -9,6 +9,11 @@ We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list
 * Commits should be signed: Signed-off-by: Your Name <[email protected]>, see
 https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
 
+* Commit message should be meaningful, following common style
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#split-changes
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
+https://chris.beams.io/posts/git-commit/

+1 for the change, as long as the last url can be considered reliable. It already redirects to another website for me.

Review We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list · line 19

Quoted 5 lines
(quoted diff) +1 -0
+
 * New code should follow Linux kernel coding style, see
 https://www.kernel.org/doc/html/latest/process/coding-style.html.
 You can run 'make check' or 'make check-foo' in the folder with modified code to check style and common errors.

Regards,
Avinesh

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#5 lore raw
In reply to Petr Vorel

Hello,

Quoted 7 lines · Petr Vorel

Hi Richie, Avinesh,

thanks for your review.

Quoted 3 lines

Hello,

Please merge.

Before merge, are you ok with one more change?

Yes, although

Review We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list · line 15

Quoted 13 lines

Kind regards,
Petr

+++ .github/pull_request_template.md

(quoted diff) +4 -0
@@ -9,6 +9,11 @@ We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list
 * Commits should be signed: Signed-off-by: Your Name <[email protected]>, see
 https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
 
+* Commit message should be meaningful, following common style
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#split-changes
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
+https://chris.beams.io/posts/git-commit/

This redirects to https://cbea.ms/git-commit/.

Quoted 4 lines
(quoted diff) +1 -0
+
 * New code should follow Linux kernel coding style, see
 https://www.kernel.org/doc/html/latest/process/coding-style.html.
 You can run 'make check' or 'make check-foo' in the folder with modified code to check style and common errors.
Signature · 5 lines
Thank you,
Richard.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#6 lore raw

Hi Richie, Avinesh,

Quoted 17 lines
Quoted 5 lines

thanks for your review.

Quoted 3 lines

Hello,

Please merge.

Before merge, are you ok with one more change?

Yes, although

Quoted 7 lines

Kind regards,
Petr

+++ .github/pull_request_template.md

(quoted diff) +0 -0
@@ -9,6 +9,11 @@ We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list
 * Commits should be signed: Signed-off-by: Your Name <[email protected]>, see
 https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
Quoted 6 lines

Review We also have a patchwork instance: https://patchwork.ozlabs.org/project/ltp/list · line 14

Quoted 4 lines
(quoted diff) +4 -0
+* Commit message should be meaningful, following common style
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#split-changes
+https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
+https://chris.beams.io/posts/git-commit/

This redirects to https://cbea.ms/git-commit/.

Thank you both for additional review, I merged with the redirected URL. If not stable in the future, we can always deleted it.

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp