GitHub: Tell Me When It Closes Extension

Screenshot of GitHub: Tell Me When It Closes Extension

Tell Me When It Closes is an amazing service by thoughtbot. Often I’ll find an issue or pull request on GitHub for a tool I use and I just want to know when it closes what the result was. I don’t care for the back-and-forth conversations between people when if I were to subscribe, so Tell Me When It Closes is the perfect service for me.

The issue I ran into was the limited ways to integrate this into my workflow. Looking at the ways you can subscribe to issues and pull requests, it’s a bookmarklet that runs JavaScript. I don’t use the bookmark bar in my chrome browser (or browser bookmarks), so that solution wasn’t ideal.

My old workflow for subscribing to an issue on Tell Me When It Closes was:

  1. Cmd + L (move keyboard cursor to address bar)
  2. Cmd + C (copy URL)
  3. Cmd + T (open new tab)
  4. Type tellmewhenitcloses.com (autocompletes after a few characters)
  5. Enter (opens tellmewhenitcloses.com)
  6. Cmd + V (paste in issue URL)
  7. Enter (subscribe to issue)

To many manual steps for me.

Simplify and Extend

I want a way to simplify the steps to subscribe to an issue. I figured I could manipulate the webpage with JavaScript and add a button which, when, clicked would navigate to the subscription page with the URL filled in.

I looked into making a browser extension, originally for Google Chrome. Upon further investigation, I found that I could target more browsers without much extra effort. I decided to use EmailThis/extension-boilerplate so that I could build an extension for Chrome, Opera & Firefox.

The end result is a button which appears in the notifications section of an issue or pull request page. When you click the button, it’ll open the tellmewhenitcloses.com with the appropriate URL pre-filled.

Button

Now my workflow for subscribing to an issue on Tell Me When It Closes is:

  1. Click Tell Me When It Closes button (using trackpad or Vimium)
  2. Enter (subscribe to issue)

Links