PivotHub
A simple way to integrate GitHub Issues into Pivotal Tracker
Installation
- Clone the repo
git clone https://github.com/jrostand/pivothub.git
-
Get an OAuth key from GitHub. Instructions are available here
-
Set up your deployment environment. I use Heroku personally (because you get SSL for free), but it should work equally well with other providers. Note that using SSL is highly recommended as otherwise your credentials will be transmitted in the clear.
cp config.json.example config.json
You'll need to edit config.json
to suit your needs. Explanations of the flags are in the file.
- Deploy it!
Setting up Pivotal Tracker
This section will tell you how to set up Pivotal Tracker to pull in GitHub Issues as well as close Issues that are associated with Finished stories.
Assumptions
- Your application is deployed at
https://myghissues.herokuapp.com
- Your GitHub project is at
https://github.com/myaccount/repo
Pulling Issues into Pivotal
-
Select
Project
and thenConfigure Integrations
-
Scroll down to External Tool Integrations and select
Other
from the options in theCreate New Integration...
box -
Fill in the form with this information:
- Name: Whatever you'd like to call the Issues panel (e.g., GitHub Issues)
- Basic Auth Username: The value of
basicUsername
in the config - Basic Auth Password: The value of
basicPassword
in the config - Base URL:
https://github.com/
- Import API URL:
https://myghissues.herokuapp.com/issues/myaccount/repo
-
Click Create
Closing Issues from Finished stories
If you would like PivotHub to close Issues that are associated with Finished stories, here's how to set that up:
-
In Pivotal, go to the
Configure Integrations
page for your project -
Fill in the Activity Web Hook fields as follows:
- Web Hook URL:
https://myghissues.herokuapp.com/issues/<secretToken>
- API Version:
v3
- Click Save Web Hook Settings
License
MIT license. See the license file.
Authors
- Original author: Julien Rostand
- Major contributor: Tom Lianza