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-githubimport * 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 = postIssueAPI
/lib/issues
- createIssue
- listMilestones
/lib/projects
- listRepositoryProjects
- listProjectColumns
- addProjectCardFromIssue
Contribution
Welcome contributions and feedbacks!