JSPM

gas-zenhub

0.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 6
    • Score
      100M100P100Q32234F
    • License MIT

    ZenHub API client for Google Apps Script

    Package Exports

    • gas-zenhub

    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-zenhub) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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!