Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mahaker/gas-github
GitHub API client for Google Apps Script
https://github.com/mahaker/gas-github
gas github-api google-apps-script typescript
Last synced: about 1 month ago
JSON representation
GitHub API client for Google Apps Script
- Host: GitHub
- URL: https://github.com/mahaker/gas-github
- Owner: mahaker
- License: mit
- Created: 2020-11-03T14:19:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T00:26:18.000Z (over 1 year ago)
- Last Synced: 2024-09-29T00:21:46.569Z (about 2 months ago)
- Topics: gas, github-api, google-apps-script, typescript
- Language: TypeScript
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## GitHub API client for Google Apps Script
### Usage
```shell
$npm install gas-github
# or
$yarn add gas-github
``````javascript
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
- ref: https://docs.github.com/en/rest/reference/issues#create-an-issue
1. getIssue
- ref: https://docs.github.com/en/rest/reference/issues#get-an-issue
1. listMilestones
- ref: https://docs.github.com/en/rest/reference/issues#list-milestones
1. listRepositoryIssues
- ref: https://docs.github.com/en/rest/reference/issues#list-repository-issues#### /lib/projects
1. listRepositoryProjects
- ref: https://docs.github.com/en/rest/reference/projects#list-repository-projects
1. listProjectColumns
- ref: https://docs.github.com/en/rest/reference/projects#list-project-columns
1. addProjectCardFromIssue
- ref: https://docs.github.com/en/rest/reference/projects#create-a-project-card### Contribution
Welcome contributions and feedbacks!