Support and contributions from the open source community are essential for keeping
@octokit/rest.js
up to date and always improving! There are a few guidelines that we need
contributors to follow to keep the project consistent, as well as allow us to keep
maintaining @octokit/rest.js
in a reasonable amount of time.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Before you create a new Issue:
Here is an overview of how @octokit/rest
works.
git diff --check
before committing.rest.js
repository.You can install a specific pull request of a module from github using the command
npm install octokit/rest.js#branchname
For example to test pull request #792 run npm install octokit/rest.js#791/error-headers
as 791/error-headers
is the branch name.
After the installation is done, you can double check with npm ls @octokit/rest
which will show something like
└── @octokit/rest@0.0.0-semantically-released (git+https://github.com/octokit/rest.js.git#505ed1f57671480b625131abb00c277c67cae40a)
Once you are done testing, you can revert back to the default module @octokit/rest
from npm with npm install @octokit/rest
Releases are automated using semantic-release. The following commit message conventions determine which version is released:
fix: ...
or fix(scope name): ...
prefix in subject: bumps fix version, e.g. 1.2.3
→ 1.2.4
feat: ...
or feat(scope name): ...
prefix in subject: bumps feature version, e.g. 1.2.3
→ 1.3.0
BREAKING CHANGE:
in body: bumps breaking version, e.g. 1.2.3
→ 2.0.0
Only one version number is bumped at a time, the highest version change trumps the others. Besides publishing a new version to npm, semantic-release also creates a git tag and release on GitHub, generates changelogs from the commit messages and puts them into the release notes.
Before the publish it runs the npm run build
script which generates type definitions for Flow & Typescript based on the templates.
The script also generates the API docs. After the publish, the API docs are automatically pushed to the gh-pages
branch which updates the documentation at octokit.github.io/rest.js.
If the pull request looks good but does not follow the commit conventions, use the "Squash & merge" button.