First off all, thank you for considering contributing to [pacta]. It's people like you that make this project better.
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this project. In return, they should reciprocate that respect in addressing your issue, assessing changes, and helping you finalize your pull requests.
There are many ways to contribute, from writing tutorials, improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into pacta itself.
This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code.
All significant changes in code should start as an issue. Changes in code go hand in hand with updated tests and documentation. Change acceptance procedure is based on pull-requests. Only changes that do not break product are accepted.
Ensure the bug / feature request was not already reported by searching all issues.
If you're unable to find an issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible including screenshot, code sample, executable test case demonstrating the issue.
To be defined later
If you have found a bug and want to fix it or going to implement new feature, please make sure first it is reported in the list of issues. Process of making changes in code is described in details in Our workflow section, which you can find below.
In our work we stick to GitHub workflow as a simple and efficient model.
If this is something you think you can fix or improve, then clone the project and create a branch with a descriptive name. Remember to assign issue to yourself before you start working on it.
A good branch name consists of issue number and its title: forexample number 123
and title Add labels to chart
lead to branch name 123-add-labels-to-chart
as it's shown in the example below:
git clone https://github.com/2DegreesInvesting/pacta.git
git checkout -b 123-add-labels-to-chart
Branch name starts with issue number followed by issue summary, all capital letters put into lower case and all spaces replaced with -
.
At this point, you're ready to make your changes! Feel free to ask for help - everyone is a beginner at first :smile_cat:.
While you are doing small changes (steps) on your way try to make atomic commits that represent logical blocks of change - having many commited changes instead of one huge commit.
git add <file>
git commit -m "<your-commit-message>"
git push origin HEAD
Make sure to take a look at real results by running process locally. Execute our standard or your customized workflow script from ./Scripts
directory.
In our work we follow the guidelines described in R Packages book. Please make sure that your development environment has proper settings and new code styled well.
Update your feature branch from to current state of remote master, and push it!
git pull --no-edit origin master
git push origin HEAD
Finally, go to GitHub and make a Pull Request :D
Sometimes a lot of code in master
might have changed during pull requwst review process, and that you need to update your branch so it's easier to merge.
Here's the suggested workflow:
git pull --no-edit origin master
git push origin HEAD
A PR can only be merged into master by a maintainer if:
Any maintainer is allowed to merge a PR if all of these conditions are met.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.