gas-zenhub
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ZenHub API client for Google Apps Script

Usage

$npm install gas-zenhub
# or
$yarn add gas-zenhub

🛠️ This is useful with gas-github!

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!

Package Sidebar

Install

npm i gas-zenhub

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

5.87 kB

Total Files

7

Last publish

Collaborators

  • mahaker