New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gas-github

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gas-github

Github API client for Google Apps Script

latest
Source
npmnpm
Version
0.0.10
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created
Source

GitHub API client for Google Apps Script

Usage

$npm install gas-github
# or
$yarn add gas-github
import * as issues from 'gas-github/lib/issues'
// or
// import { createIssue } from 'gas-github'

declare let global: any

function postIssue() {
  const setting = { owner: 'org', repo: 'repo', pat: 'token' }
  const issue = issues.createIssue(setting, {title: 'test', body: 'body', labels: ['bug', 'documentation']})

  Logger.log(`issue created: ${issue}`)
}

global.postIssue = postIssue

API

/lib/issues

  • createIssue
    • ref: https://docs.github.com/en/rest/reference/issues#create-an-issue
  • listMilestones

/lib/projects

Contribution

Welcome contributions and feedbacks!

Keywords

gas

FAQs

Package last updated on 04 Apr 2022

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