Clone the project on GitHub
$ git clone https://github.com/renderforest/service-auth
$ cd service-auth
For developing new features and bug fixes, the stage branch should be pulled and built upon.
Create a new topic branch to contain your feature, change, or fix:
$ git checkout -b <topic-branch-name>
Make sure git knows your name and email address:
$ git config --global user.name "Example User"
$ git config --global user.email "user@example.com"
Add and commit:
$ git add my/changed/files
$ git commit
Commit your changes in logical chunks. Please adhere to these Commit message guidelines or your code is unlikely be merged into the main project.
Use git rebase to synchronize your work with the main repository.
$ git fetch upstream
$ git rebase upstream/master
Push your topic branch:
$ git push origin <topic-branch-name>
Open a Pull Request with a clear title and description.
The commit message should describe what changed and why.
-
The first line should:
- contain a short description of the change
- be 60 characters or less
- be prefixed with the name of the changed subsystem
- be entirely in lowercase with the exception of proper nouns, acronyms, and the words that refer to code, like function/variable names
Examples:
lib: add changeTitle method to Project deps: add mime package to dependencies examples: fix typos in render-project.js helpers: refactor _setAreaImage in project.helper.js
-
Keep the second line blank.
-
Wrap all other lines at 72 columns:
- describe each line in logical chunks
- start each line with: space hyphen space ( - ...)
- be entirely in lowercase with the exception of proper nouns, acronyms, and the words that refer to code, like function/variable names
Examples:
- add private function isMedia to check media type - remove deprecated logger from Project - refactor private function isAudio used - add JSDoc on isMedia function