Contributions are welcome and will be fully credited.
Please read and understand the contribution guide before creating an issue or pull request.
Hey there! You're probably here because you want to help out. Thanks for joining us!
In this document we'll try to outline how to get started contributing to the API, and how to perform common tasks, like keeping your local fork up to date.
In order to contribute you'll want to make a "fork" of this repository.
Click the fork
button at https://github.com/Say-Their-Name/api and wait for it to complete.
Once the fork is done, clone your fork to your computer by navigating to a folder you'd like to put the site in, and then replacing [username]
in this snippet with your GitHub username and running it from the terminal:
git clone [email protected]:[username]/api.git
In order to keep your fork up-to-date with the original repository, you'll also want to add an extra git "remote" that points to the original repo.
Your fork will already be connected to your local repo as the remote named origin
.
Let's add your link to the original repo by running the following command after navigating to the api
folder in your local repo:
git remote add upstream [email protected]:Say-Their-Name/api.git
This added a remote named upstream
that points to The API's repo.
You can fetch the upstream branches by running the following command:
git fetch upstream --prune
Now you will need to follow the readme to get started
Using the git remote we set up earlier, we first need to fetch changes that were made upstream:
git fetch upstream --prune
Next, change to your local master branch:
git checkout master
And merge the changes that were made upstream into your local branch.
git merge upstream/master --no-ff
Before actually creating a pull request, you have the chance to clean up your code. Remove debug statements, clean up commented code and refactor if needed.
Look to this blog post for how to write a good git commit message.
When you have your changes ready in your own branch on your fork, it's time to create a pull request. Try to describe what kind of changes you have made and why you have made them. This helps us in understanding why you are suggesting this change and what your reasoning behind it is.
Look to this blog post for how to create a great pull request.
- You can add an issue referencing the content you'd like to add. We have a data team that will need to validate all data
- Open or comment on an issue before starting to code to ensure someone else isn't already working on it and that you fully understand the goals and scope
- Once ready to code, fork the repo, and PR your changes in, referencing the original issue number