Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gh-helpers

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-helpers

Various helper methods for Github Actions and API automation

  • 0.3.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
287
decreased by-5.28%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 23 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc