Pull Request flow in Pivotal Tracker automation:
- Start your Pivotal Tracker story and copy ID:
123456789
- Create your story branch including ID:
feature/123456789-amazing-feature
- Do your work
- Create PR in GitHub on the branch -> Story in PT is now finished
- Get your Pivotal Tracker API token in your Profile page
- Create new GitHub personal token (Profile settings / Personal access tokens), allow all Pull Request scope
- Setup this app to run somewhere with tokens in ENV as below
- Create new webhooks in your GitHub repositories with secret set in
SECRET_TOKEN
. Select only "Pull Request" events. - Enjoy :)
export PIVOTAL_TRACKER_API_TOKEN=your_pivotal_tracker_API_token
export GITHUB_OAUTH_TOKEN=your_github_token
export SECRET_TOKEN=$( ruby -rsecurerandom -e 'puts SecureRandom.hex(20)' )
ruby server.rb