CONTRIBUTING.md

Contributing guidelines

Introduction

Pleased to see you here!

First off all, thank you for considering contributing to [pacta]. It's people like you that make this project better.

Why we have guidelines

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.

What you can contribute

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.

Ground Rules

About behavior

This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code.

About content

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.

So how do I do it

Report a bug or request a feature

Update documentation

To be defined later

Make fix or change in code

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.

Our workflow

In our work we stick to GitHub workflow as a simple and efficient model.

1. Create a branch

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 -.

2. Implement your fix or feature

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

3. View your changes in action

Make sure to take a look at real results by running process locally. Execute our standard or your customized workflow script from ./Scripts directory.

4. Get the style right

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.

5. Make a Pull Request

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

6. Keeping your Pull Request updated

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

7. Merging a PR (maintainers only)

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.



2DegreesInvesting/pacta documentation built on June 17, 2019, 12:04 p.m.