We appreciate your interest in contributing to Fairdrive! Your contributions help make Fairdrive a great tool for everyone.
If you've found a bug or have a feature request, first check the Issues to see if someone else has already created a ticket. If not, feel free to create a new one!
If you're ready to contribute code, here's how you can do it:
- Fork Fairdrive and create a branch with a descriptive name. For example, if you're working on a ticket #325, you might name your branch
325-add-japanese-localisation
. - Make your changes in your branch. If you need help, don't hesitate to ask!
- Once you've made your changes, switch back to your master branch and make sure it's up to date with Fairdrive's master branch:
git remote add upstream [email protected]:fairDataSociety/fairdrive-theapp.git
git checkout master
git pull upstream master
- Update your feature branch from your local copy of master and push it:
git checkout 325-add-japanese-localisation
git rebase master
git push --set-upstream origin 325-add-japanese-localisation
- Finally, go to GitHub and create a Pull Request.
We use ESLint and Prettier to enforce a consistent code style. You can find the configuration files for these tools in the root of the repo. We recommend installing plugins for your editor that utilize these.
If a maintainer asks you to "rebase" your PR, they're asking you to update your branch with the latest changes from master. Here's how you can do it:
git checkout 325-add-japanese-localisation
git pull --rebase upstream master
git push --force-with-lease 325-add-japanese-localisation
A PR can only be merged into master by a maintainer if it meets the following criteria:
- It passes all CI checks.
- It has been approved by at least two maintainers (or one, if the PR was opened by a maintainer).
- It has no requested changes.
- It is up to date with the current master.
Thank you for your contribution! 🎉