Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mahaker/gas-zenhub
ZenHub API client for Google Apps Script
https://github.com/mahaker/gas-zenhub
gas google-apps-script zenhub
Last synced: about 2 months ago
JSON representation
ZenHub API client for Google Apps Script
- Host: GitHub
- URL: https://github.com/mahaker/gas-zenhub
- Owner: mahaker
- License: mit
- Created: 2020-11-04T09:52:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-28T07:44:49.000Z (over 3 years ago)
- Last Synced: 2024-10-30T05:07:06.566Z (3 months ago)
- Topics: gas, google-apps-script, zenhub
- Language: TypeScript
- Homepage:
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ZenHub API client for Google Apps Script
### Usage
```shell
$npm install gas-zenhub
# or
$yarn add gas-zenhub
```:hammer_and_wrench: This is useful with [gas-github](https://github.com/mahaker/gas-github)!
```javascript
import { Client as GitHubClient } from 'gas-github'
import { Client as ZenHubClient } from 'gas-zenhub'function openIssue() {
const githubClient = new GitHubClient('org', 'repo', 'token')
const zenhubClient = new ZenHubClient('workspace', 123456789, 'token')// open issue
const issueNo = githubClient.openIssue({title: 'gas-github-test', body: 'bodybody\nbodybodybody', labels: ['bug', 'documentation']})// set estimate
zenhubClient.setEstimate(issueNo, 5)// set epic issue
zenhubClient.setEpic(1, issueNo)// move pipeline
const pipelines = zenhubClient.fetchPipelines()
zenhubClient.movePipelineTo(issueNo, pipelines.get('Backlog'))
}
```### Contribution
Welcome contributions and feedbacks!