doc: Add GitHub pr template #14217

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1809-docPRtempl changing 1 files +31 −0
  1. MarcoFalke commented at 10:42 pm on September 13, 2018: member

    Bitcoin Core has a very thorough review process and even the most trivial change needs to pass a lot of eyes and requires non-zero or even substantial time effort to review. There is a huge lack of active reviewers on the project, so patches often sit for a long time.

    Authors should provide clear motivation for patches and explain how it improves Bitcoin Core user experience or Bitcoin Core developer experience significantly.

  2. MarcoFalke added the label Docs on Sep 13, 2018
  3. MarcoFalke force-pushed on Sep 13, 2018
  4. MarcoFalke force-pushed on Sep 13, 2018
  5. MarcoFalke force-pushed on Sep 13, 2018
  6. MarcoFalke force-pushed on Sep 13, 2018
  7. MarcoFalke force-pushed on Sep 13, 2018
  8. ryanofsky commented at 11:08 pm on September 13, 2018: member

    No description provided.

    Please provide clear motivation for this patch :smiley:

  9. PierreRochard commented at 11:15 pm on September 13, 2018: contributor
    ACK
  10. MarcoFalke force-pushed on Sep 14, 2018
  11. in .github/PULL_REQUEST_TEMPLATE.md:21 in ecc80fcbeb outdated
    16+ * Bug fixes are most welcome when they come with steps to reproduce or an
    17+   explanation of the potential issue as well as reasoning for the way the
    18+   bug was fixed.
    19+ * Refactoring changes are only accepted if they are required for a feature or
    20+   bug fix or otherwise improve developer experience significantly. For
    21+   example, most "code style" refactoring changes require an thorough
    


    ken2812221 commented at 1:25 am on September 14, 2018:
    an/a typo
  12. in .github/PULL_REQUEST_TEMPLATE.md:13 in ecc80fcbeb outdated
     8+
     9+Please provide clear motivation for your patch and explain how it improves
    10+Bitcoin Core user experience or Bitcoin Core developer experience
    11+significantly.
    12+
    13+ * Any test improvements or new tests that improve coverage are always welcome.
    


    practicalswift commented at 2:47 pm on September 15, 2018:

    Markdown nit:

    02018-09-15 11:00:30 mdl(pr=14217): .github/PULL_REQUEST_TEMPLATE.md:13: MD006 Consider starting bulleted lists at the beginning of the line
    
  13. MarcoFalke force-pushed on Sep 15, 2018
  14. in .github/PULL_REQUEST_TEMPLATE.md:4 in 1e6aa1d107 outdated
    0@@ -0,0 +1,26 @@
    1+Please note that pull requests without a rationale and clear improvement are
    2+closed immediately.
    3+
    4+Bitcoin Core has a very thorough review process and even the most trivial
    


    practicalswift commented at 1:41 pm on September 16, 2018:
    02018-09-15 17:29:22 proselint(pr=14217): .github/PULL_REQUEST_TEMPLATE.md:4:20: weasel_words.very Substitute 'damn' every time you're inclined to write 'very;' your editor will delete it and the writing will be just as it should be. Found once elsewhere.
    
  15. in .github/PULL_REQUEST_TEMPLATE.md:24 in 1e6aa1d107 outdated
    19+* Refactoring changes are only accepted if they are required for a feature or
    20+  bug fix or otherwise improve developer experience significantly. For example,
    21+  most "code style" refactoring changes require an thorough explanation why
    22+  they are useful, what downsides they have and why they *significantly*
    23+  improve developer experience or avoid serious programming bugs. Note that
    24+  code style is often a very subjective matter. Unless they are explicitly
    


    practicalswift commented at 1:41 pm on September 16, 2018:
    02018-09-15 17:29:22 proselint(pr=14217): .github/PULL_REQUEST_TEMPLATE.md:4:20: weasel_words.very Substitute 'damn' every time you're inclined to write 'very;' your editor will delete it and the writing will be just as it should be. Found once elsewhere.
    
  16. MarcoFalke force-pushed on Sep 16, 2018
  17. ken2812221 commented at 1:26 am on September 19, 2018: contributor
    utACK c603130f7926b863198d10ac6fd707fc05a78ec6
  18. in .github/PULL_REQUEST_TEMPLATE.md:21 in c603130f79 outdated
    16+* Bug fixes are most welcome when they come with steps to reproduce or an
    17+  explanation of the potential issue as well as reasoning for the way the bug
    18+  was fixed.
    19+* Refactoring changes are only accepted if they are required for a feature or
    20+  bug fix or otherwise improve developer experience significantly. For example,
    21+  most "code style" refactoring changes require an thorough explanation why
    


    ken2812221 commented at 1:28 am on September 19, 2018:
    a/an thorough explanation
  19. MarcoFalke force-pushed on Sep 19, 2018
  20. ken2812221 commented at 4:47 am on September 19, 2018: contributor
    re-utACK fa0c680b9a566c3d272e28898777de94fcd0d342
  21. MarcoFalke commented at 5:08 pm on September 20, 2018: member
    Addressed all comment/feedback
  22. in .github/PULL_REQUEST_TEMPLATE.md:6 in fa0c680b9a outdated
     6+effort to review. There is a huge lack of active reviewers on the project, so
     7+patches often sit for a long time.
     8+
     9+Please provide clear motivation for your patch and explain how it improves
    10+Bitcoin Core user experience or Bitcoin Core developer experience
    11+significantly.
    


    flack commented at 7:42 pm on September 20, 2018:

    Not sure if I’m reading this right, but is the intention to say that a change needs to

    • significantly improve user experience or
    • significantly improve developer experience

    or is it more that a change has to

    • improve user experience or
    • significantly improve developer experience

    Because the way I read it is that significantly applies to both terms, but I imagine that significantly is only supposed to apply to the second term. Because why would you turn down a papercut fix that smoothes the UX a little?

    IOW, maybe this could be rephrased to be less ambiguous

  23. jamesob commented at 7:44 pm on September 20, 2018: member

    ACK https://github.com/bitcoin/bitcoin/pull/14217/commits/fa0c680b9a566c3d272e28898777de94fcd0d342

    It might be worth saying something about test coverage. I’m not sure what our established policy is here, but maybe something like:

    0* All changes should have accompanying unit tests (see `src/test/`) or functional tests (see `test/`). 
    1  PR authors should note which tests cover modified code. If no tests exist for a region of 
    2  modified code, new tests should accompany the change.
    
  24. in .github/PULL_REQUEST_TEMPLATE.md:1 in fa0c680b9a outdated
    0@@ -0,0 +1,26 @@
    1+Please note that pull requests without a rationale and clear improvement are
    


    jnewbery commented at 7:44 pm on September 20, 2018:
    Please note that ‘please note that’ is conent-free in almost all circumstances, and is usually better left out. :)

    jnewbery commented at 7:45 pm on September 20, 2018:
    I’d also change ‘are’ to ‘may be’
  25. in .github/PULL_REQUEST_TEMPLATE.md:4 in fa0c680b9a outdated
    0@@ -0,0 +1,26 @@
    1+Please note that pull requests without a rationale and clear improvement are
    2+closed immediately.
    3+
    4+Bitcoin Core has a thorough review process and even the most trivial change
    


    jnewbery commented at 7:44 pm on September 20, 2018:
    I’d move this to the end. The next paragraph ‘Please provide clear motivation…’ is more important.
  26. jnewbery commented at 7:47 pm on September 20, 2018: member

    ACK.

    I’ve offered my preferred colour of paint for your shed. Feel free to use it or not.

  27. MarcoFalke force-pushed on Sep 20, 2018
  28. MarcoFalke commented at 8:04 pm on September 20, 2018: member
    Added the test coverage requirement.
  29. jamesob commented at 9:01 pm on September 20, 2018: member
    reACK
  30. ryanofsky commented at 9:16 pm on September 20, 2018: member

    It seems like this PR is doing two different things:

    1. Adding a pull request template suggesting information to be included with prs.
    2. Introducing a new policy (“Refactoring changes are only accepted…”) of rejecting refactoring changes instead of just treating them with low priority.

    I personally only like the first thing and not the second thing, but don’t want to interfere if this is how maintainers want to handle PRs.

  31. MarcoFalke commented at 9:24 pm on September 20, 2018: member
    @ryanofsky The policy was introduced about a year ago: 91c39e38d9f59331b77ec9017ea147725a32f2d1
  32. promag commented at 1:14 pm on September 21, 2018: member

    LGTM

    (restarted travis job)

  33. in .github/PULL_REQUEST_TEMPLATE.md:10 in fadc2a97aa outdated
     5+Bitcoin Core user experience or Bitcoin Core developer experience
     6+significantly.
     7+
     8+* Any test improvements or new tests that improve coverage are always welcome.
     9+* Features are always welcome, but might be rejected early in the review
    10+  process.
    


    laanwj commented at 11:46 am on September 23, 2018:
    “are always welcome, but might be rejected” is a bit awkward—I think it should note why features are rejected. For example, to keep the project from expanding in scope, as it dilutes focus and increases maintenance burden. Or that we don’t want to add dependencies. Contributors should consider first whether it isn’t possible to build system outside of the bitcoin core codebase.
  34. in .github/PULL_REQUEST_TEMPLATE.md:19 in fadc2a97aa outdated
     9+* Features are always welcome, but might be rejected early in the review
    10+  process.
    11+* Bug fixes are most welcome when they come with steps to reproduce or an
    12+  explanation of the potential issue as well as reasoning for the way the bug
    13+  was fixed.
    14+* Refactoring changes are only accepted if they are required for a feature or
    


    laanwj commented at 11:47 am on September 23, 2018:
    :+1:
  35. laanwj commented at 11:47 am on September 23, 2018: member
    ACK (with nit)
  36. practicalswift commented at 12:14 pm on September 23, 2018: contributor

    Since this guide will influence the type of contributions we get: shouldn’t we mention security work?

    Personally I’m much more excited to see a PR submitted which strengthens the long term security of the project in some form compared to when I see a PR submitted which implements some shiny new feature :-)

    The formulation “Features are always welcome […]” contrasted to “Bug fixes are most welcome when […]” sounds almost like we’re encouraging new users to help expand the feature set of Core :-)

  37. MarcoFalke force-pushed on Sep 23, 2018
  38. doc: Add GitHub pr template fae9e84cbb
  39. MarcoFalke force-pushed on Sep 23, 2018
  40. MarcoFalke commented at 12:32 pm on September 23, 2018: member
    Addressed all feedback, hopefully.
  41. practicalswift commented at 12:51 pm on September 23, 2018: contributor

    Something that might be worth mentioning is the special security requirements/trade-offs that apply to changes to the consensus critical parts of the code base. Perhaps also mentioning the rough boundaries of the consensus critical code.

    More specifically it might be worth mentioning why a change of type A would be an obvious ACK if applied to say the Qt part of the code base while it would be an obvious NACK if applied to the consensus critical part of the code base.

    Basically to drive home the point that we’re extremely focused on correctness and security for good reasons :-)

  42. MarcoFalke commented at 2:05 pm on September 23, 2018: member
    @practicalswift I believe this is covered in the contributions guideline: https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#peer-review?
  43. DrahtBot commented at 11:06 am on September 28, 2018: member
    Coverage Change (pull 14217) Reference (master)
    Lines -0.0066 % 87.0361 %
    Functions +0.0618 % 84.1130 %
    Branches -0.0180 % 51.5451 %
  44. MarcoFalke merged this on Sep 28, 2018
  45. MarcoFalke closed this on Sep 28, 2018

  46. MarcoFalke referenced this in commit af4b8a327a on Sep 28, 2018
  47. MarcoFalke deleted the branch on Sep 28, 2018
  48. PastaPastaPasta referenced this in commit c50084b03e on Jun 27, 2021
  49. PastaPastaPasta referenced this in commit bf4754b405 on Jun 28, 2021
  50. PastaPastaPasta referenced this in commit 2c67a907a4 on Jun 29, 2021
  51. PastaPastaPasta referenced this in commit e6067712a5 on Jul 1, 2021
  52. PastaPastaPasta referenced this in commit e4bdfe7001 on Jul 1, 2021
  53. PastaPastaPasta referenced this in commit 830fe11153 on Jul 1, 2021
  54. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-18 00:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me