Want to contribute something to Adorable Avatars? Wonderful! Here's how you can help.
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
-
Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory git clone https://github.com/<your-username>/avatars-api.git # Navigate to the newly cloned directory cd avatars-api # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/adorableio/avatars-api.git
-
If you cloned a while ago, get the latest changes from upstream:
git checkout master git pull upstream master
-
Install the project dependencies:
npm install brew install imagemagick
-
Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:
git checkout -b <topic-branch-name>
-
Commit your changes in logical chunks. Please adhere to these git commit message guidelines. Use Git's interactive rebase feature to tidy up your commits before making them public.
NOTE: Before you commit, ensure that the tests are still passing:
npm test
If you're adding new functionality, please write specs around it.
-
Locally merge (or rebase) the upstream development branch into your topic branch:
git pull [--rebase] upstream master
-
Push your topic branch up to your fork:
git push origin <topic-branch-name>
-
Open a Pull Request with a clear title and description against the
master
branch.
By contributing your code, you agree to license your contribution under the MIT license.