{"action":"created","comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments/40393961","id":40393961,"diff_hunk":"@@ -0,0 +1,104 @@\n+Contributing to Bitcoin Core\n+============================\n+\n+The Bitcoin Core project operates an open contributor model where anyone is welcome to contribute towards development in the form of peer review, testing and patches. This document explains the practical process and guidelines for contributing.\n+\n+Firstly in terms of structure, there is no particular concept of “Core developers” in the sense of privileged people. Open source often naturally revolves around meritocracy where longer term contributors gain more trust from the developer community. However, some hierarchy is necessary for practical purposes. As such there are repository “maintainers” who are responsible for merging pull requests as well as a “lead maintainer” who is responsible for overall merging, moderation and appointment of maintainers and the release cycle.\n+\n+\n+Contributor Workflow\n+--------------------\n+\n+The codebase is maintained using the “contributor workflow” where everyone without exception contributes patch proposals using “pull requests”. This facilitates social contribution, easy testing and peer review.\n+\n+  - Fork repository\n+  - Create topic branch\n+  - Commit patches \n+\n+The project coding conventions in [doc/developer-notes.md](doc/developer-notes.md) must be adhered to.\n+\n+In general [commits should be atomic](https://en.wikipedia.org/wiki/Atomic_commit#Atomic_commit_convention) and diffs should be easy to read. For this reason do not mix any formatting fixes or code moves with actual code changes.\n+\n+Commit messages should be verbose by default consisting of a short subject line (50 chars max), a blank line and detailed explanatory text as separate paragraph(s); unless the title alone is self-explanatory (like \"Corrected typo in main.cpp\") then a single title line is sufficient. Commit messages should be helpful to people reading your code in the future, so explain the reasoning for your decisions. Further explanation [here](http://chris.beams.io/posts/git-commit/).\n+\n+If a particular commit references another issue, please add the reference, for example \"refs #1234\", or \"fixes #4321\". Using \"fixes or closes\" keywords will cause the corresponding issue to be closed when the pull request is merged.\n+\n+Please refer to the [Git manual](https://git-scm.com/doc) for more information about Git.\n+\n+  - Push changes to your fork\n+  - Create pull request\n+\n+The title of the pull request should be prefixed by the component or area that the pull request affects. Examples:\n+\n+    Consensus: Add new opcode for BIP-XXXX OP_CHECKAWESOMESIG\n+    Net: Automatically create hidden service, listen on Tor\n+    Qt: Add feed bump button\n+\n+If a pull request is specifically not to be considered for merging (yet) please prefix the title with [WIP] or use [Tasks Lists](https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments) in the body of the pull request to indicate tasks are pending.\n+\n+The body of the pull request should contain enough description about what the patch does together with any justification/reasoning. You should include references to any discussions (for example other tickets or mailing list discussions).\n+\n+At this stage one should expect comments and review from other contributors. You can add more commits to your pull request by committing them locally and pushing to your fork until you have satisfied all feedback. If your pull request is accepted for merging, you may be asked by a maintainer to squash and or rebase your commits before it will be merged. The length of time required for peer review is unpredictable and will vary from patch to patch.\n+\n+\n+Pull Request Philosophy\n+-----------------------\n+\n+Patchsets should always be focused. For example, a pull request could add a feature, fix a bug, or refactor code; but not a mixture. Please also avoid super pull requests which attempt to do too much, are overly large, or overly complex as this makes review difficult.\n+\n+\n+###Features\n+\n+When adding a new feature, thought must be given to the long term technical debt and maintenance that feature may require after inclusion. Before proposing a new feature that will require maintenance, please consider if you are willing to maintain it (including bug fixing). If features get orphaned with no maintainer in the future, they may be removed by the Repository Maintainer.\n+\n+\n+###Refactoring \n+\n+Refactoring is a necessary part of any software project's evolution. The following guidelines cover refactoring pull requests for the project.\n+\n+There are three categories of refactoring, code only moves, code style fixes, code refactoring. In general refactoring pull requests should not mix these three kinds of activity in order to make refactoring pull requests easy to review and uncontroversial. In all cases, refactoring PRs must not change the behaviour of code within the pull request (bugs must be preserved as is).\n+\n+Project maintainers aim for a quick turnaround on refactoring pull requests, so where possible keep them short, uncomplex and easy to verify. \n+\n+\n+\"Decision Making\" Process\n+-------------------------\n+\n+The following applies to code changes to the Bitcoin Core project (and related projects such as libsecp256k1), and is not to be confused with overall Bitcoin Network Protocol consensus changes.\n+\n+Whether a pull request is merged into Bitcoin Core rests with the project merge maintainers and ultimately the project lead. \n+\n+Maintainers will take into consideration if a patch is in line with the general principles of the project; meets the minimum standards for inclusion; and will judge the general consensus of contributors.\n+\n+In general, all pull requests must:\n+\n+  - have a clear use case, fix a demonstrable bug or serve the greater good of the project (for example refactoring for modularisation);\n+  - be well peer reviewed;\n+  - have unit tests and functional tests where appropriate;\n+  - follow code style guidelines;\n+  - not break the existing test suite;\n+  - where bugs are fixed, where possible, there should be unit tests demonstrating the bug and also proving the fix. This helps prevent regression;\n+  - where consensus rules are affected, must be accompanied by a published BIP assigned with a number;\n+\n+\n+###Peer Review\n+\n+Anyone may participate in peer review which is expressed by comments in the pull request. Typically reviewers will review the code for obvious errors, as well as test out the patch set and opine on the technical merits of the patch. Project maintainers take into account the peer review when determining if there is consensus to merge a pull request (remember that discussions may have been spread out over github, mailing list and IRC discussions). The following language is used within pull-request comments:\n+\n+  - ACK means \"I have tested the code and I agree it should be merged\";\n+  - NACK means \"I disagree this should be merged\", and must be accompanied by sound technical justification. NACKs without accompanying reasoning may be disregarded;\n+  - utACK means \"I have not tested the code, but I have reviewed it and it looks OK, I agree it can be merged\";\n+  - Concept ACK means \"I agree in the general principle of this pull request\";\n+  - Nit refers to trivial, often non-blocking issues.\n+\n+Project maintainers reserve the right to weigh the opinions of peer reviewers using common sense judgement and also may weight based on meritocracy: Those that have demonstrated a deeper commitment and understanding towards the project (over time) or have clear domain expertise may naturally have more weight, as one would expect in all walks of life.\n+\n+Where a patch set affects consensus critical code, the bar will be set much higher in terms of discussion and peer review, remembering mistakes could be very costly to the wider community. This includes refactoring of consensus critical code.","path":"CONTRIBUTING.md","position":96,"original_position":96,"commit_id":"73f63e8978d32f1d1db436d4fda362426d7ee37d","original_commit_id":"73f63e8978d32f1d1db436d4fda362426d7ee37d","user":{"login":"instagibbs","id":5767891,"avatar_url":"https://avatars.githubusercontent.com/u/5767891?v=3","gravatar_id":"","url":"https://api.github.com/users/instagibbs","html_url":"https://github.com/instagibbs","followers_url":"https://api.github.com/users/instagibbs/followers","following_url":"https://api.github.com/users/instagibbs/following{/other_user}","gists_url":"https://api.github.com/users/instagibbs/gists{/gist_id}","starred_url":"https://api.github.com/users/instagibbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instagibbs/subscriptions","organizations_url":"https://api.github.com/users/instagibbs/orgs","repos_url":"https://api.github.com/users/instagibbs/repos","events_url":"https://api.github.com/users/instagibbs/events{/privacy}","received_events_url":"https://api.github.com/users/instagibbs/received_events","type":"User","site_admin":false},"body":"\"remembering [that] mistakes\" or \"keeping in mind that\" perhaps? ","created_at":"2015-09-25T01:56:50Z","updated_at":"2015-09-25T01:56:50Z","html_url":"https://github.com/bitcoin/bitcoin/pull/6718#discussion_r40393961","pull_request_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718","_links":{"self":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments/40393961"},"html":{"href":"https://github.com/bitcoin/bitcoin/pull/6718#discussion_r40393961"},"pull_request":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718"}}},"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718","id":45898483,"html_url":"https://github.com/bitcoin/bitcoin/pull/6718","diff_url":"https://github.com/bitcoin/bitcoin/pull/6718.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/6718.patch","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6718","number":6718,"state":"open","locked":false,"title":"Add CONTRIBUTING.md","user":{"login":"btcdrak","id":7275704,"avatar_url":"https://avatars.githubusercontent.com/u/7275704?v=3","gravatar_id":"","url":"https://api.github.com/users/btcdrak","html_url":"https://github.com/btcdrak","followers_url":"https://api.github.com/users/btcdrak/followers","following_url":"https://api.github.com/users/btcdrak/following{/other_user}","gists_url":"https://api.github.com/users/btcdrak/gists{/gist_id}","starred_url":"https://api.github.com/users/btcdrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcdrak/subscriptions","organizations_url":"https://api.github.com/users/btcdrak/orgs","repos_url":"https://api.github.com/users/btcdrak/repos","events_url":"https://api.github.com/users/btcdrak/events{/privacy}","received_events_url":"https://api.github.com/users/btcdrak/received_events","type":"User","site_admin":false},"body":"Add a CONTRIBUTING.md as per https://github.com/blog/1184-contributing-guidelines\r\n\r\nThis document was written in collaboration with @laanwj.","created_at":"2015-09-24T13:44:59Z","updated_at":"2015-09-25T01:56:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f23d197ffc40afc820f46ef987be70a3bdc70a6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718/commits","review_comments_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718/comments","review_comment_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6718/comments","statuses_url":"https://api.github.com/repos/bitcoin/bitcoin/statuses/73f63e8978d32f1d1db436d4fda362426d7ee37d","head":{"label":"btcdrak:contrib","ref":"contrib","sha":"73f63e8978d32f1d1db436d4fda362426d7ee37d","user":{"login":"btcdrak","id":7275704,"avatar_url":"https://avatars.githubusercontent.com/u/7275704?v=3","gravatar_id":"","url":"https://api.github.com/users/btcdrak","html_url":"https://github.com/btcdrak","followers_url":"https://api.github.com/users/btcdrak/followers","following_url":"https://api.github.com/users/btcdrak/following{/other_user}","gists_url":"https://api.github.com/users/btcdrak/gists{/gist_id}","starred_url":"https://api.github.com/users/btcdrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcdrak/subscriptions","organizations_url":"https://api.github.com/users/btcdrak/orgs","repos_url":"https://api.github.com/users/btcdrak/repos","events_url":"https://api.github.com/users/btcdrak/events{/privacy}","received_events_url":"https://api.github.com/users/btcdrak/received_events","type":"User","site_admin":false},"repo":{"id":22500337,"name":"bitcoin","full_name":"btcdrak/bitcoin","owner":{"login":"btcdrak","id":7275704,"avatar_url":"https://avatars.githubusercontent.com/u/7275704?v=3","gravatar_id":"","url":"https://api.github.com/users/btcdrak","html_url":"https://github.com/btcdrak","followers_url":"https://api.github.com/users/btcdrak/followers","following_url":"https://api.github.com/users/btcdrak/following{/other_user}","gists_url":"https://api.github.com/users/btcdrak/gists{/gist_id}","starred_url":"https://api.github.com/users/btcdrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcdrak/subscriptions","organizations_url":"https://api.github.com/users/btcdrak/orgs","repos_url":"https://api.github.com/users/btcdrak/repos","events_url":"https://api.github.com/users/btcdrak/events{/privacy}","received_events_url":"https://api.github.com/users/btcdrak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/btcdrak/bitcoin","description":"Bitcoin Core integration/staging tree","fork":true,"url":"https://api.github.com/repos/btcdrak/bitcoin","forks_url":"https://api.github.com/repos/btcdrak/bitcoin/forks","keys_url":"https://api.github.com/repos/btcdrak/bitcoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/btcdrak/bitcoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/btcdrak/bitcoin/teams","hooks_url":"https://api.github.com/repos/btcdrak/bitcoin/hooks","issue_events_url":"https://api.github.com/repos/btcdrak/bitcoin/issues/events{/number}","events_url":"https://api.github.com/repos/btcdrak/bitcoin/events","assignees_url":"https://api.github.com/repos/btcdrak/bitcoin/assignees{/user}","branches_url":"https://api.github.com/repos/btcdrak/bitcoin/branches{/branch}","tags_url":"https://api.github.com/repos/btcdrak/bitcoin/tags","blobs_url":"https://api.github.com/repos/btcdrak/bitcoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/btcdrak/bitcoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/btcdrak/bitcoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/btcdrak/bitcoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/btcdrak/bitcoin/statuses/{sha}","languages_url":"https://api.github.com/repos/btcdrak/bitcoin/languages","stargazers_url":"https://api.github.com/repos/btcdrak/bitcoin/stargazers","contributors_url":"https://api.github.com/repos/btcdrak/bitcoin/contributors","subscribers_url":"https://api.github.com/repos/btcdrak/bitcoin/subscribers","subscription_url":"https://api.github.com/repos/btcdrak/bitcoin/subscription","commits_url":"https://api.github.com/repos/btcdrak/bitcoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/btcdrak/bitcoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/btcdrak/bitcoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/btcdrak/bitcoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/btcdrak/bitcoin/contents/{+path}","compare_url":"https://api.github.com/repos/btcdrak/bitcoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/btcdrak/bitcoin/merges","archive_url":"https://api.github.com/repos/btcdrak/bitcoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/btcdrak/bitcoin/downloads","issues_url":"https://api.github.com/repos/btcdrak/bitcoin/issues{/number}","pulls_url":"https://api.github.com/repos/btcdrak/bitcoin/pulls{/number}","milestones_url":"https://api.github.com/repos/btcdrak/bitcoin/milestones{/number}","notifications_url":"https://api.github.com/repos/btcdrak/bitcoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/btcdrak/bitcoin/labels{/name}","releases_url":"https://api.github.com/repos/btcdrak/bitcoin/releases{/id}","created_at":"2014-08-01T07:52:01Z","updated_at":"2015-09-14T15:30:24Z","pushed_at":"2015-09-24T19:29:13Z","git_url":"git://github.com/btcdrak/bitcoin.git","ssh_url":"git@github.com:btcdrak/bitcoin.git","clone_url":"https://github.com/btcdrak/bitcoin.git","svn_url":"https://github.com/btcdrak/bitcoin","homepage":"https://bitcoin.org/en/download","size":57153,"stargazers_count":9,"watchers_count":9,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":9,"default_branch":"master"}},"base":{"label":"bitcoin:master","ref":"master","sha":"34dc03d8e05fa1429d6d543fdb8ee76f28f436ac","user":{"login":"bitcoin","id":528860,"avatar_url":"https://avatars.githubusercontent.com/u/528860?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcoin","html_url":"https://github.com/bitcoin","followers_url":"https://api.github.com/users/bitcoin/followers","following_url":"https://api.github.com/users/bitcoin/following{/other_user}","gists_url":"https://api.github.com/users/bitcoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcoin/subscriptions","organizations_url":"https://api.github.com/users/bitcoin/orgs","repos_url":"https://api.github.com/users/bitcoin/repos","events_url":"https://api.github.com/users/bitcoin/events{/privacy}","received_events_url":"https://api.github.com/users/bitcoin/received_events","type":"Organization","site_admin":false},"repo":{"id":1181927,"name":"bitcoin","full_name":"bitcoin/bitcoin","owner":{"login":"bitcoin","id":528860,"avatar_url":"https://avatars.githubusercontent.com/u/528860?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcoin","html_url":"https://github.com/bitcoin","followers_url":"https://api.github.com/users/bitcoin/followers","following_url":"https://api.github.com/users/bitcoin/following{/other_user}","gists_url":"https://api.github.com/users/bitcoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcoin/subscriptions","organizations_url":"https://api.github.com/users/bitcoin/orgs","repos_url":"https://api.github.com/users/bitcoin/repos","events_url":"https://api.github.com/users/bitcoin/events{/privacy}","received_events_url":"https://api.github.com/users/bitcoin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitcoin/bitcoin","description":"Bitcoin Core integration/staging tree","fork":false,"url":"https://api.github.com/repos/bitcoin/bitcoin","forks_url":"https://api.github.com/repos/bitcoin/bitcoin/forks","keys_url":"https://api.github.com/repos/bitcoin/bitcoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitcoin/bitcoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitcoin/bitcoin/teams","hooks_url":"https://api.github.com/repos/bitcoin/bitcoin/hooks","issue_events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/events{/number}","events_url":"https://api.github.com/repos/bitcoin/bitcoin/events","assignees_url":"https://api.github.com/repos/bitcoin/bitcoin/assignees{/user}","branches_url":"https://api.github.com/repos/bitcoin/bitcoin/branches{/branch}","tags_url":"https://api.github.com/repos/bitcoin/bitcoin/tags","blobs_url":"https://api.github.com/repos/bitcoin/bitcoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitcoin/bitcoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitcoin/bitcoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitcoin/bitcoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitcoin/bitcoin/statuses/{sha}","languages_url":"https://api.github.com/repos/bitcoin/bitcoin/languages","stargazers_url":"https://api.github.com/repos/bitcoin/bitcoin/stargazers","contributors_url":"https://api.github.com/repos/bitcoin/bitcoin/contributors","subscribers_url":"https://api.github.com/repos/bitcoin/bitcoin/subscribers","subscription_url":"https://api.github.com/repos/bitcoin/bitcoin/subscription","commits_url":"https://api.github.com/repos/bitcoin/bitcoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitcoin/bitcoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitcoin/bitcoin/contents/{+path}","compare_url":"https://api.github.com/repos/bitcoin/bitcoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitcoin/bitcoin/merges","archive_url":"https://api.github.com/repos/bitcoin/bitcoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitcoin/bitcoin/downloads","issues_url":"https://api.github.com/repos/bitcoin/bitcoin/issues{/number}","pulls_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls{/number}","milestones_url":"https://api.github.com/repos/bitcoin/bitcoin/milestones{/number}","notifications_url":"https://api.github.com/repos/bitcoin/bitcoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/labels{/name}","releases_url":"https://api.github.com/repos/bitcoin/bitcoin/releases{/id}","created_at":"2010-12-19T15:16:43Z","updated_at":"2015-09-25T00:15:30Z","pushed_at":"2015-09-24T20:37:28Z","git_url":"git://github.com/bitcoin/bitcoin.git","ssh_url":"git@github.com:bitcoin/bitcoin.git","clone_url":"https://github.com/bitcoin/bitcoin.git","svn_url":"https://github.com/bitcoin/bitcoin","homepage":"https://bitcoin.org/en/download","size":136065,"stargazers_count":7530,"watchers_count":7530,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":5219,"mirror_url":null,"open_issues_count":453,"forks":5219,"open_issues":453,"watchers":7530,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718"},"html":{"href":"https://github.com/bitcoin/bitcoin/pull/6718"},"issue":{"href":"https://api.github.com/repos/bitcoin/bitcoin/issues/6718"},"comments":{"href":"https://api.github.com/repos/bitcoin/bitcoin/issues/6718/comments"},"review_comments":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718/comments"},"review_comment":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6718/commits"},"statuses":{"href":"https://api.github.com/repos/bitcoin/bitcoin/statuses/73f63e8978d32f1d1db436d4fda362426d7ee37d"}}}}