Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

zauberlabs/gh-pivotal-integration

Repository files navigation

Introduction

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.

Installing gh-pivotal-integration

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

Install dependencies:

    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 .bashrc:

    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):

    rackup config.ru

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

Assume:

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:

  1. Select the Project->Configure Integrations menu item
  2. Select Other from Create New Integration dropdown menu
  3. Complete the form:
  1. 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:

  1. Enter the Web Hook URL: https://my.domain.com/issues (e.g., https://random-name-1234.herokuapp.com/issues)
  2. 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

Copyright (c) 2012 Zauber. See LICENSE.txt for further details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages