0.0.3 • Published 7 years ago
github-node-api v0.0.3
github-node-api
High level github API wrapper on top of gh-got.
Installation
npm i github-node-api --save
Usage
const gna = require('github-node-api')({ token: 'YOUR-GITHUB-TOKEN-HERE' });
You may also pass a token via GITHUB_TOKEN
environment variable.
To get a token follow the instructions.
For list of all available options see got
documentation.
If you use GitHub Enterprise, set up API endpoint with GITHUB_ENDPOINT
environment variable.
API
Repositories
- exists
- fork
Git data
Blobs
- createBlob
Commits
- getCommit
- commit
Trees
- getTree
- createTree
References
- getRef
- createRef
updateRef
getBranchSha
- branch
Pull Requests
- listPulls
- pull