High level github API wrapper on top of gh-got.
npm i github-node-api --save
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.
- exists
- fork
- createBlob
- getCommit
- commit
- getTree
- createTree
-
getRef
-
createRef
-
updateRef
-
getBranchSha
-
branch
- listPulls
- pull