github-bitbar-counter

1.0.2 • Public • Published

Installation

in your BitBar folder

git clone https://github.com/francescogior/github-bitbar-counter && cd github-bitbar-counter && npm i

Create plugins

Add a js plugin in your BitBar folder

my GithubBitbarPlugin.js

#!/usr/bin/env /usr/local/bin/node

//require and configure GithubBitbarCounter
const GithubBitbarCounter = require('./github-bitbar-counter')({
  GITHUB_COM_TOKEN: '', // get one at https://github.com/settings/tokens,
  GITHUB_ENTERPRISE_TOKEN: '', // your Github Enterprise TOKEN, if any,
  GITHUB_ENTERPRISE: '', // your Github Enterprise URL, if any
  GITHUB_ENTERPRISE_API: '' // your Github Enterprise API URL, if any
})

// query examples
GithubBitbarCounter({
  name: 'TODO LOL',
  enterprise: true,
  assignee: 'francescogior',
  type: 'issue',
  repo: 'buildo/lol',
  state: 'open',
  labelsIn: [],
  labelsOut: ['macro', 'in review'],
  milestone: 'this week'
}, {
  name: 'ALL LOL ISSUES',
  enterprise: true,
  assignee: 'francescogior',
  type: 'issue',
  repo: 'buildo/lol',
  state: 'open',
  labelsIn: []
}, {
  name: 'ASSIGNED LOL PR',
  enterprise: true,
  assignee: 'francescogior',
  type: 'pr',
  repo: 'buildo/lol',
  state: 'open',
  labelsIn: []
})

Readme

Keywords

none

Package Sidebar

Install

npm i github-bitbar-counter

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • francescogior