Giter Site home page Giter Site logo

inflight's Introduction

Inflight

GitHub version Build Status Coverage Status

Inflight finds the ID of your currently started Pivotal Tracker story and adds it to your commit message. The story is located using the Git author's email.

Given you've started a story:

Tracker commit example

When you're ready to commit:

git commit

The story ID is ready and waiting in your commit message:


# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
#       new file:   <% some changes %>
#

[#89688392]

Background

Pivotal Tracker & Github allow you to easily link commits to your tracker stories. When you craft a commit message like this:

My words of wisdom

[#<story-id>]

You'll see this commit linked in the activity of your story:

Tracker commit example

Installation

  1. Download the latest release and place the binary on your path, e.g. /usr/local/bin/inflight

    Alternatively if you have Go installed, run:

    go get github.com/odlp/inflight
  2. cd to the repo you'd like to configure.

  3. Create a Git prepare commit message hook:

    touch .git/hooks/prepare-commit-msg
  4. Edit the hook:

    #!/bin/bash
    
    export TRACKER_API_TOKEN="<your-tracker-api-token>"
    export TRACKER_PROJECT_ID="<your-tracker-project-id>"
    inflight -o "$1"

    Your Pivotal Tracker API key is located in Your Profile. The project ID is visible in the address bar of your browser whilst viewing the project.

  5. Make the hook executable:

    chmod +x .git/hooks/prepare-commit-msg

Limitations

  • The git author's email must match the email used for Pivotal Tracker.
  • If you have more than one story started then the most recently updated story ID will be picked.

Todo

  • Add interactive git hook setup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.