gas-github
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

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

  1. createIssue
  2. listMilestones

/lib/projects

  1. listRepositoryProjects
  2. listProjectColumns
  3. addProjectCardFromIssue

Contribution

Welcome contributions and feedbacks!

Package Sidebar

Install

npm i gas-github

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

10.6 kB

Total Files

13

Last publish

Collaborators

  • mahaker