1.1.1 • Published 5 years ago

@daraff/github-get-pull-request v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Scope

A simple helper to get the info of a github pull request

Example

via CLI

npx github-get-pull-request --token=<your-token> --owner=<gh-owner> --repo=<gh-repo> --sha=<gh-sha>

as module

#!/usr/bin/env node

// index.js
const githubGetPullRequest = require('@daraff/github-get-pull-request')
const pr = await githubGetPullRequest({token, owner, repo, sha})
  .catch((err) => {
    console.log('this is an error', err)
  })