gh-pivotal-integration integrates GitHub Issues with your Pivotal Tracker backlog.
It's a simple Sinatra application that
retrieves GitHub Issues from your project and formats them for Pivotal Tracker's import panel (see xml format), and
automatically marks GitHub Issues as closed when you accept your Pivotal Tracker story.
Pick a username,
BASIC_USER, and password,
BASIC_PASSWORD, to secure your instance of gh-pivotal-integration. Choose wisely. You need these for installing gh-pivotal-integration and configuring the Pivotal Tracker integration.
Deploy Option #1: Local
git clone https://github.com/zauberlabs/gh-pivotal-integration.git cd gh-pivotal-integration gem install bundler # if not already installed bundle install
Set these environment variables in your shell or
export GH_USER="myuser" export GH_PASSWORD="mygithubpassword" export BASIC_USER="admin" export BASIC_PASSWORD="password"
Run gh-pivotal-integration using rack (or your favorite server):
Deploy Option #2: Heroku
To deploy gh-pivotal-integration on a free Heroku account, simply follow these steps:
git clone https://github.com/zauberlabs/gh-pivotal-integration.git cd gh-pivotal-integration heroku create --stack cedar heroku config:add GH_USER="myuser" GH_PASSWORD="mygithubpassword" \ BASIC_USER="admin" BASIC_PASSWORD="password" git push heroku master
Your credentials are protected since Heroku's Piggyback SSL is now a platform feature.
Pivotal Tracker Integration
Your gh-pivotal-integration instance is deployed at
Your GitHub project lives at
Configure gh-pivotal-integration as an External Tool
To create Stories in Pivotal Tracker from GitHub Issues using the
Other->GitHub Issues menu item, you need to create an External Tool Integration.
In your Pivotal Tracker project:
- Select the
Project->Configure Integrationsmenu item
Create New Integrationdropdown menu
- Complete the form:
- Name: GitHub Issues (or whatever you want)
Basic Auth Username:
Basic Auth Password:
- Base URL: https://github.com/
- Import API URL: https://my.domain.com/issues/USER/REPO (e.g., https://random-name-1234.herokuapp.com/issues/me/awesomeproject)
- Cick 'Save'
Label filtering support
You can provide a
labels parameter with a comma separated list of labels to filter the issues. For example:
Configure the Activity Web Hook
To allow GitHub to close an Issue automatically when the corresponding Pivotal Tracker Story is 'accepted', you need to tell Pivotal Tracker where to send details about the Story's activity.
In your Pivotal Tracker project:
- Enter the Web Hook URL: https://my.domain.com/issues (e.g., https://random-name-1234.herokuapp.com/issues)
- Click 'Save Web Hook Settings'
Contributing to github-issues-pivotal-integration
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
- Fork the project.
- Start a feature/bugfix branch.
- Commit and push until you are happy with your contribution.
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright (c) 2012 Zauber. See LICENSE.txt for further details.