0.3.5 • Published 1 year ago

gh-helpers v0.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

gh-helpers

NPM version Build Status Gitpod ready-to-code

Various helper methods for Github Actions/API automation

Install

npm install gh-actions

Usage

Within Github Actions, just

const github = require('gh-helpers')()

Outside example over API for repo at PrismarineJS/vec3, make sure to specify your PAT with perms to the repo

const github = require('gh-helpers')({
  repo: { owner: 'PrismarineJS', name: 'vec3' }
}, GITHUB_PAT)

To switch to running in the context of another repo,

const altGithub = github.using({ owner: 'node', repository: 'nodejs' })
altGithub.getRecentCommitsInRepo(20).then(console.log)

API

See src/index.d.ts for info on the API

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.3

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago