Thank you for investing your time in contributing to our project!
Read our Code of Conduct to keep our community approachable and respectable.
In this guide you will get an overview of the contribution workflow from opening an issue, creating a PR, reviewing, and merging the PR.
If you spot a problem with the docs, search if an issue already exists. If a related issue doesn't exist, you can open a new issue using a relevant issue form.
-
Fork the repository.
-
Install or update Golang
-
Create a working branch and start with your changes!
Commit the changes once you are happy with them.
We use pre-commit to lint and format our code.
Installing it is optional, as the CI will run the linters for you, but it's recommended to install it locally.
You can install it by running:
pip install pre-commit
or
brew install pre-commit
Then run:
pre-commit install
This will install the pre-commit hook in your local repository. Now, every time you commit, the pre-commit hook will run and check your code for linting and formatting errors.
If it fails with the following error:
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook
Just run git add -A
and commit again.
When you're finished with the changes, create a pull request, also known as a PR.
- Fill the required fields in the PR template.
- Don't forget to link PR to issue if you are solving one.
- We may ask for changes to be made before a PR can be merged, either using suggested changes or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch.
- As you update your PR and apply changes, mark each conversation as resolved.
- If you run into any merge issues, checkout this git tutorial to help you resolve merge conflicts and other issues.
Congratulations 🎉🎉 The Chloe team thanks you ✨.