$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
- createIssue
- getIssue
- listMilestones
- listRepositoryIssues
- listRepositoryProjects
- listProjectColumns
- addProjectCardFromIssue
Welcome contributions and feedbacks!