JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 35
  • Score
    100M100P100Q47026F
  • License MIT

Github API client for Google Apps Script

Package Exports

  • gas-github
  • gas-github/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gas-github) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GitHub API client for Google Apps Script

Usage

$npm install gas-github
# or
$yarn add gas-github
import { Client } from 'gas-github'

declare let global: any

function createIssue() {
  const client = new Client('org', 'repo','token')
  const issueNo = client.createIssue({title: 'test', body: 'body', labels: ['bug', 'documentation']})

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

global.createIssue = createIssue

API

createIssue

Create a issue. The properties that can be specified are as follows.

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

listMilestones

Get milestones.

ref: https://docs.github.com/en/rest/reference/issues#list-milestones

Contribution

Welcome contributions and feedbacks!