{"id":15406462,"url":"https://github.com/odlp/inflight","last_synced_at":"2025-08-19T10:17:31.456Z","repository":{"id":57525275,"uuid":"68406437","full_name":"odlp/inflight","owner":"odlp","description":"Pre-populate commit messages with your Pivotal Tracker story ID","archived":false,"fork":false,"pushed_at":"2016-11-23T20:53:58.000Z","size":414,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-12T17:49:58.747Z","etag":null,"topics":["git-hooks","pivotal-tracker","pivotaltracker"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/odlp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-16T18:48:24.000Z","updated_at":"2017-06-02T10:57:18.000Z","dependencies_parsed_at":"2022-09-19T11:41:25.082Z","dependency_job_id":null,"html_url":"https://github.com/odlp/inflight","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Finflight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Finflight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Finflight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Finflight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odlp","download_url":"https://codeload.github.com/odlp/inflight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478331,"owners_count":20945266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git-hooks","pivotal-tracker","pivotaltracker"],"created_at":"2024-10-01T16:23:05.539Z","updated_at":"2025-04-06T12:13:33.373Z","avatar_url":"https://github.com/odlp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inflight\n\n[![GitHub version](https://badge.fury.io/gh/odlp%2Finflight.svg)](https://badge.fury.io/gh/odlp%2Finflight)\n[![Build Status](https://travis-ci.org/odlp/inflight.svg?branch=master)](https://travis-ci.org/odlp/inflight)\n[![Coverage Status](https://coveralls.io/repos/github/odlp/inflight/badge.svg?branch=master)](https://coveralls.io/github/odlp/inflight?branch=master)\n\nInflight 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.\n\nGiven you've started a story:\n\n![Tracker commit example](assets/started-story-example.png)\n\nWhen you're ready to commit:\n\n```sh\ngit commit\n```\n\nThe story ID is ready and waiting in your commit message:\n\n```\n\n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n# On branch master\n# Changes to be committed:\n#       new file:   \u003c% some changes %\u003e\n#\n\n[#89688392]\n\n```\n\n## Background\n\nPivotal Tracker \u0026 Github allow you to easily [link commits to your tracker stories](http://www.pivotaltracker.com/blog/guide-githubs-service-hook-tracker/). When you craft a commit message like this:\n\n```\nMy words of wisdom\n\n[#\u003cstory-id\u003e]\n```\n\nYou'll see this commit linked in the activity of your story:\n\n![Tracker commit example](assets/tracker-commit-example.png)\n\n\n## Installation\n\n1. [Download the latest release](https://github.com/odlp/inflight/releases) and place the binary on your path, e.g. `/usr/local/bin/inflight`\n\n    Alternatively if you have Go installed, run:\n\n    ```sh\n    go get github.com/odlp/inflight\n    ```\n\n2. `cd` to the repo you'd like to configure.\n\n3. Create a Git prepare commit message hook:\n\n    ```sh\n    touch .git/hooks/prepare-commit-msg\n    ```\n\n4. Edit the hook:\n\n    ```sh\n    #!/bin/bash\n\n    export TRACKER_API_TOKEN=\"\u003cyour-tracker-api-token\u003e\"\n    export TRACKER_PROJECT_ID=\"\u003cyour-tracker-project-id\u003e\"\n    inflight -o \"$1\"\n    ```\n\n    \u003e Your Pivotal Tracker API key is located in [Your Profile](https://www.pivotaltracker.com/profile). The project ID is visible in the address bar of your browser whilst viewing the project.\n\n5. Make the hook executable:\n\n    ```sh\n    chmod +x .git/hooks/prepare-commit-msg\n    ```\n\n## Limitations\n\n- The git author's email must match the email used for Pivotal Tracker.\n- If you have more than one story started then the most recently updated story ID will be picked.\n\n## Todo\n\n- Add interactive git hook setup\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodlp%2Finflight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodlp%2Finflight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodlp%2Finflight/lists"}