@daraff/github-get-pull-request

1.1.1 • Public • Published

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)
  })

Readme

Keywords

none

Package Sidebar

Install

npm i @daraff/github-get-pull-request

Weekly Downloads

11

Version

1.1.1

License

MIT

Unpacked Size

10.1 kB

Total Files

8

Last publish

Collaborators

  • daraff