Skip to Content

How do I get Claude Code to ship bug fixes from tickets in GitHub Issues?

Tares lets the software factory for Claude Code build bug fixes straight from GitHub Issues. You link a repo and an issue label to a project, and the issues become the project’s tickets. The crew then works them into pull requests merged on main. Milestones carry the acceptance checks, and each ticket has a working doc in Tares.

How it works

A project can keep its tickets in a GitHub repo. One repo and one issue label pick the issues, and every labeled issue becomes a ticket named GH-<number>, in issue number order. Tares reads the repo about once a minute. It only reads, so sessions create and change the issues in GitHub with gh.

The crew is an orchestrator, a reviewer and builders. A builder works through the tickets one at a time. For each ticket it makes a branch, does the work and opens a pull request. The reviewer reviews every pull request, and the builder merges once the review passes and CI is green. See A project, end to end for a real run.

What shapes the order and the checks:

  • Status comes from the issue. Open is todo, open with the in progress label is in_progress, closed as completed is done, and closed as not planned or as a duplicate is canceled.
  • Dependencies come from GitHub. An issue that is blocked by another makes its ticket depend on that one, and a blocked ticket names the tickets it waits for.
  • Milestones come from the GitHub milestones that the labeled issues belong to. Name and order come from GitHub. The goal starts as the GitHub milestone’s description, and you can write your own goal and the acceptance checks in Tares.
  • Working docs stay yours. You write each ticket’s working doc in Tares.

Set it up

Follow the factory setup in this order. Skip nothing that applies to you, and do not reorder it.

  1. Check that Claude Code is signed in, and that git, jq and curl are installed. Sign in to gh with the repo scope on the machine that runs the sessions, with write access to the repos the crew works in:

    gh auth login --scopes repo
  2. Install the CLI:

    uv tool install tares # or: brew install glassflow/tap/tares
  3. On a local Tares, start it, then start the MCP endpoint in a second terminal. The crew reaches Tares only through that endpoint.

    tares up
    tares mcp --transport streamable-http

    On Tares Cloud, skip those two and sign in instead. Pick your workspace in the browser and choose Connect:

    tares login
  4. Give Tares access to GitHub. On a local Tares, add a credential in Settings > GitHub that can read the repo’s issues: a fine-grained token with Issues: read, a classic token with the repo scope, or a GitHub App with the Issues permission installed on the repo. On Tares Cloud, choose Connect GitHub and pick the repos.

  5. Bring up the crew. The first run asks how far the crew may go, such as whether it merges on its own after review and green CI.

    tares factory crew up
  6. Plan the project, and say the tickets should live in GitHub Issues and name the repo:

    tares factory spec "fix the checkout bugs"

    Claude interviews you, writes the spec, milestones with acceptance checks, and tickets with a working doc each. It creates the issues with gh, labels them and links the project. The label defaults to tares: followed by the project name. To link an existing repo yourself, click Use GitHub Issues on the project’s Tickets page, or ask a connected agent to call the MCP tool:

    link_github_issues(repo="acme/shop", issue_label="tares:shop")
  7. Say yes when asked to hand the project to the crew. The orchestrator picks it up. Answer its questions with tares factory crew attach orchestrator.

For each bug, make sure the ticket’s milestone holds the acceptance checks and the working doc says where the bug lives and how to reproduce it. Mark ordering in GitHub with blocked-by links. The Get started page covers the whole setup.

What you get

  • Every issue with the label shows up as a ticket on the project’s Tickets page, with its title and status, and you see when it last synced.
  • Builders take the tickets in issue number order and respect the dependencies you set in GitHub.
  • Each bug fix arrives as a pull request that the reviewer checks to a fixed bar before it merges.
  • Close an issue in GitHub and within a minute its ticket moves to done. The source’s Recent events shows the change as a ticket_status event, and triggers and agents can react to it.
  • The project page keeps the record: tickets with their pull requests and review rounds, your answers to the crew’s questions, and the assumptions the crew made on its own.
  • If sync fails, the Tickets page shows why, the tickets stay as they were and nothing is canceled.

The GitHub Issues connector page has the full mapping.

When something else fits

  • If a project already has tickets of its own, or keeps them in Linear, it cannot be linked to GitHub Issues. Use the Linear connector for Linear, or keep the tickets in Tares.
  • GitHub Issues linking works with github.com only, with one repo and one issue label per project, up to 1000 labeled issues. For a small fix you want to drive yourself, tares factory session builds it in your own Claude Code session instead of the crew.

Still stuck? Get help

Last updated on