Skip to content

mikeybeck/bitbar-bitbucketPRs

Repository files navigation

Bitbar Bitbucket Pull Requests plugin

Note: I have abandoned this project in favour of Hammerspoon. You can find my Hammerspoon config and Bitbucket Pull Requests module here

A plugin for BitBar that shows open pull requests for your Bitbucket repository.

Shows information about all open pull requests for any Bitbucket repository you have access to.

What is displayed?

  • Number of open PRs (in menu bar)
  • Name of PR submitter
  • Title of PR
  • Build status
  • Number of approvals
  • Number of comments
  • Whether I have approved the PR
  • Number of open PRs unapproved by me (cycles in menu bar)

Each line is also a link that will open the relevant pull request when clicked.

Each pull request is colour coded:
  • Red: failed build
  • Black: build passed but not enough approvals
  • Green: build passed and a sufficient number of approvals

Requirements

Installation

Manually

bitbar://openPlugin?title=Bitbucket%20PRs&src=https://raw.githubusercontent.com/mikeybeck/bitbar-bitbucketPRs/blob/master/getopenPRs.10m.sh

Settings

These are some settings that you will need to edit at the top of the getopenPRs.10m.sh file:

  • USERNAME - Your Bitbucket username
  • PASSWORD- Your Bitbucket password
  • REPO_OWNER- Owner of the Bitbucket repository
  • REPO_SLUG- Slug of the Bitbucket repository

TODO

  • Display build status for PR (red & green colour coded - at the cost of speed.)
  • Display number of approvals (also slows things down due to extra http call.)
  • Display number of comments
  • Make build status display / number of approvals / number of comments optional
  • Use icons to indicate comments / approvals
  • Put my PRs into a separate section
  • Indicate which PRs I have/haven't approved
  • Don't count own PRs in number unapproved
  • Update screenshot

License

MIT. See the License file for more info.

About

Bitbar plugin - gets open pull requests from Bitbucket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages