Github Issues in the Menubar
- Problem: Monitoring activity in repositories I was contributing to required a trip to github.com.
- Solution: Using Bitbar I created a Node script that retrieves a list of issues and pull requests for a given repository.
Bitbar is a cool little application that allows users to create their own custom OS X menubar items, using virtually any programming language. There were a few Github plugins but they didn’t do quite what I wanted. Using Node and the Github API I was able to grab and output the Issues and Pull Requets.
But once I was getting the data I realized I had no way of knowing which Issues had already been addressed by a Pull Request. And it turns out that Github’s API has no concept of it either. So I combed the Pull Request comments for Github’s special close syntax, text like “Fixes #244” and matched those against open Issue numbers. If there’s a match the entry is grayed out, as seen in the fifth Issue in Figure 1.