github-node-api

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i github-node-api

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • tadatuta