Arwid / BeanstalkApp-and-PivotalTracker-Integration

Integrating BeanstalkApp's post-commit web hooks to Pivotal Tacker's Source Control Management (SCM).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BeanstalkApp & PivotalTracker Integration - PHP

Now you can associate a GIT or SVN based commit from Beanstalk to a specific Pivotal Tracker story. Their commit messages will show up as comments on the Pivotal Tracker story and can even change the story state (see 'Use' below on how to format your commit messages).

This PHP script takes Beanstalk's web hooks integration data and formats it for Pivotal Tracker's SCM post-commit hook integration. It parses the Beanstalk JSON payload and sends the request to the Pivotal Tracker SCM API endpoint in the correctly formatted XML it requires.

Installation

Place this script somewhere accessible on a server running PHP

Setup

It's recommended to put this script behind HTTP authentication. Once protected, add a Beanstalk post-commit hook pointing to the following url:

http://username:password@SCRIPT URL/commit.php

Replace SCRIPT URL with the url of where the script is located.

Open the commits.php and place your Pivotal Tracker API Token where it says:

$pivotalAPIToken = 'PLACE API TOKEN HERE';

And you should be good to go!

Use

Once setup, you can format commit messages as specified here

Quirks

Pivotal's SCM doesn't seem to process line breaks so if your commit message has line breaks, don't be surprised if it doesn't show up in the story comment.

About

Integrating BeanstalkApp's post-commit web hooks to Pivotal Tacker's Source Control Management (SCM).


Languages

Language:PHP 100.0%