JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q45952F
  • 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

listRepositoryProjects

Get repository projects.

ref: https://docs.github.com/en/rest/reference/projects#list-repository-projects

listProjectColumns

Get project columns.

ref: https://docs.github.com/en/rest/reference/projects#list-project-columns

addProjectCardFromIssue

Add prject card from issue.

ref: https://docs.github.com/en/rest/reference/projects#create-a-project-card

Contribution

Welcome contributions and feedbacks!