Skip to content

High level wrapper on top of gh-got to easily work with github API

Notifications You must be signed in to change notification settings

tadatuta/github-node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

High level wrapper on top of gh-got to easily work with github API

Resources

Stars

Watchers

Forks

Packages

No packages published