Skip to content
Snippets Groups Projects
Unverified Commit ce945f20 authored by Brent Huisman's avatar Brent Huisman Committed by GitHub
Browse files

Move contrib documentation to right place. (#1268)

* Move PR message instructions to 'Making a PR' section.
* Move coding instructions to 'Write code' section.
parent 8afc8851
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,16 @@ request. ...@@ -73,7 +73,16 @@ request.
Write code Write code
~~~~~~~~~~ ~~~~~~~~~~
See :ref:`contribpr`. Some tips when contributing code:
- Consider the :ref:`contribcodingstyle`.
- If you add functionality, please update the documentation
accordingly.
- If you add functionality, add tests if applicable. This helps make
sure Arbor is stable and functionality does what it’s supposed to
do.
- If you work on the public C++ API, provide Python wrappings.
- Make sure Arbor compiles and has no new warnings.
Add examples or unit tests Add examples or unit tests
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
......
...@@ -11,15 +11,30 @@ Making a pull request ...@@ -11,15 +11,30 @@ Making a pull request
If you want to contribute code that implements a solution or feature, If you want to contribute code that implements a solution or feature,
the workflow is as follows: the workflow is as follows:
1. Fork the Arbor repository 1. Fork the Arbor repository.
2. Create a branch off of master and implement your feature 2. Create a branch off of master and implement your feature.
3. Make a pull request (PR) and refer to the issue(s) that the PR 3. Make a pull request (PR) and refer to the issue(s) that the PR
addresses. addresses. Some tips on how to write a good PR description:
- You can use labels to categorize your PR. For very large PRs, it
is likely the reviewer will have many questions and comments. It
can be helpful to reach out on our Slack, Discussions or by email
beforehand if you’ve big things planned for Arbor!
- Commit logical units with clear commit messages.
- Add a change summary to the PR message. If you remembered to commit
logical units, this could simply be a bulleted list of all commit
messages in the PR. If during the review process you make changes
to the features in the PR, keep the PR description updated.
- Use text like `fixes #123` in the description to refer to an issue.
4. An administrative matter: we request that you grant us a right of use on your contribution. 4. An administrative matter: we request that you grant us a right of use on your contribution.
Please contact us at `arbor-sim@fz-juelich.de <mailto:arbor-sim@fz-juelich.de>`__. Please contact us at `arbor-sim@fz-juelich.de <mailto:arbor-sim@fz-juelich.de>`__.
5. A PR on Github is automatically tested by our CI bot called Travis. 5. A PR on Github is automatically built and tested by our CI bot called Travis.
You can also run these tests yourself by building them first You can also run these tests yourself by building them first
(``make tests``) and then running them (``./bin/*unit*``). (``make tests``) and then running them (``./bin/*unit*``).
- If you make changes effecting simulations on GPUs, you can post a reply to
your PR with ``bors try``. This will run our GPU test-suite.
6. A member of the Arbor development team will review your contribution. 6. A member of the Arbor development team will review your contribution.
If they approve, your PR will be merged! Normally this should happen If they approve, your PR will be merged! Normally this should happen
within a few days. within a few days.
...@@ -36,32 +51,11 @@ Reviewing a PR ...@@ -36,32 +51,11 @@ Reviewing a PR
Each pull request is reviewed according to these guidelines: Each pull request is reviewed according to these guidelines:
- At least one core Arbor team member needs to mark your PR with a - At least one core Arbor team member needs to mark your PR with a
positive review. Some tips to help you get a positive review: positive review.
- You can use labels to categorize your PR. For very large PRs, it
is likely the reviewer will have many questions and comments. It
can be helpful to reach out on our Slack, Discussions or by email
beforehand if you’ve big things planned for Arbor!
- Commit logical units with clear commit messages.
- Add change summary to the PR message. If you remembered to commit
logical units, this could simply be a bulleted list of all commit
messages in the PR. If during the review process you make changes
to the features in the PR, keep the PR description updated.
- Make sure your code conforms to our `coding
guidelines <https://github.com/arbor-sim/arbor/wiki/Coding-Style-Guidelines>`__
- If you add functionality, please update the documentation
accordingly.
- If you add functionality, add tests if applicable. This helps make
sure Arbor is stable and functionality does what it’s supposed to
do.
- If you make changes to GPU simulations, you can post a reply to
your PR with ``bors try``. This will run our GPU test-suite.
- If you add/change the public C++ API, provide Python wrappings.
- Make sure Arbor compiles and has no new warnings.
- Travis CI must produce a favourable result on your PR. - Travis CI must produce a favourable result on your PR.
- An Arbor team member will (squash) merge the PR with the PR change - An Arbor team member will (squash) merge the PR with the PR change
summery as commit message. summery as commit message.
- Consider using Gitpod to review larger PRs, see under checks on the Github PR page.
.. _contribpr-merge: .. _contribpr-merge:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment