Cody Sehl

Tracker’s New and Improved GitHub Integration

Integrations Updates Productivity Community

Every member of a software team needs to look at the codebase at one point or another—to see what features have commits associated with them, what the status of the test suite is, or what branch you need to check out.

We work every day to improve your product management experience, including creating new ways to connect code to Tracker. With our new native GitHub integration, you can automatically attach GitHub branches, pull requests, and commits to stories and epics to see your code as it moves through the development process. This allows developers to create a pull request workflow and easily visualize progress with an at-a-glance view of code status.

Automatically attach pull requests, branches, and commits

Exposing pull requests, branches, and commits in Tracker is a great way to get insight into your team’s development process, but attaching them manually can be tedious and prone to errors. With that in mind, we’ve created a new GitHub integration that will attach them all automatically!

How to set up the GitHub integration

To enable this feature, create a new GitHub integration and authenticate with GitHub. For the GitHub integration to associate stories with commits, pull requests, and branches, you’ll need to include story IDs in your branch names and in your commit messages.

  • 123456-branch-name
  • [#123456] This commit includes a story number and creates a feature

A look at the new Tracker GitHub integration.

Pull requests

Pull requests allow your team to review changes before merging them into your main branch. GitHub displays the status of any automated code checks here. To see a pull request’s automated tests, code reviews, and mergeability in Tracker, attach a GitHub pull request to your story.

Using pull requests in the new Tracker GitHub integration.

Branches

Branches enable parallelization of work and compartmentalization of code that is not ready to be merged into the main Git branch. Here on the Tracker team, every feature has a branch that holds work until that feature is finished. To see branch information in Tracker, attach one to a story.

Using branches in the new Tracker GitHub integration.

Commits

Commits represent units of work and are the center of everything Git does. Broadly, it tends to be that more commits mean more progress on a feature under development, and we wanted to capture that progress in Tracker. To see how your stories are progressing, attach commits to a story.

Commit comments in the new Tracker GitHub integration.

Using the new GitHub integration with GitHub Flow

Here on the Tracker team, we strive to make our development process match our software as much as possible. We use GitHub Flow and find it works great with our new GitHub integration.

The first step to GitHub Flow is to create a branch. (Tracker will do this for you and even suggest a nice name!) Next, when you make commits on your new branch, they’ll be displayed in the story’s activity. When you create a pull request, that’ll be displayed on the story, too.

Finally, when all your pull request status checks pass, and everyone on your team agrees the code is good to go, you can merge your branch to master and deploy to production.

The new integration uses GitHub webhooks behind the scenes to keep Tracker in sync with your code. Tracker is there every step of the way to surface the information that’s important to you.

Previous GitHub integration (Service Hooks)

We strongly recommend that you remove any older Pivotal Tracker Service Hook integrations.

In your GitHub repository, navigate to Settings > Integration & Services to remove them.

Caveats

Just a note: our new GitHub integration cannot be used with GitHub Enterprise. We also realize that not all teams use GitHub or Git for source control. Rest assured, we’re aware of these limitations and are hard at work extending integrations to support them. Take a look at the docs for integrating with an SCM that’s not Git with GitHub.

Have you started using the new GitHub integration? If so, we want to know how it’s working out as we continue to improve it. You can get in touch via the Provide Feedback widget under Help in any project, contact us on Twitter, or email us.

Category: