Git_tracking is a project mainly written in Ruby, it's free.
Better integration betwen Git and Pivotal Tracker
git_tracking
is a gem whose primary purpose is to
provide (and enforce) tight integration between
Pivotal Tracker and git for your project.
At my office, we have all agreed that we shouldn't commit code that doesn't have an associated story in Pivotal Tracker. Further, we tend to work on code at our glamorous (and blazingly fast) iMac pairing stations. Therefore, we have two needs which this gem aims to satisfy:
gem install git_tracking
git_tracking # this installs the git hooks and .git_tracking config file
Just use git as normal, and you will be prompted for stuff.
For example:
! g commit -m "Making detect ignore .git_tracking file"
The following files have 'debugger' statements in them:
spec/detect_spec.rb
Git Author (default will be: Steve & Ghost Co-Pilot):
1. Enter new
? 1
New git author: Steve
Pivotal Tracker email (default is: ):
1. Enter new
? 1
New Email: [email protected]
Enter your PivotalTracker password: xxxxxxx
Please enter the PivotalTracker project id for this project
137119
Found a valid story id in your branch or commit: 6131989 - Bugfixing
Hit enter to confirm story id 6131989, or enter some other story id: |6131989| 6132035
[master 2162139] [#6132035] Make sure that detect_* ignores .git_tracking file
2 files changed, 17 insertions(+), 8 deletions(-)
You can set git_tracking
to raise (ie reject your
commit) when it detects that you are about to commit
a debugger
or an incomplete merge (<<<<<<<
or >>>>>>>
).
All config options are in the .git_tracking
file.
git_tracking
will store your api token for tracker
in the .git_tracking
file. This is probably fine
for private repo's where you know everyone who
has access, but if you are committing to a public
repo, you may want to put the .git_tracking
file
in your .gitignore.
If you do accidentally make your PivotalTracker token public, I believe you request that they generate a new one for you.