GITHUBGuide

Link branches and PRs to issues

Name the branch with the issue's code — or reference the issue in the PR — and the Projects module shows branches and PRs in the issue's Development panel, and can move the status when the PR merges.

Create the branch with the right name

An issue page in Projects with the Development panel showing the suggested branch name for the issue.
The `Development` panel shows the expected branch name that connects code and issue.
  1. 1

    Open the issue.

    The Development panel, in the issue's properties, shows the suggested branch name. It appears on the full page and in the overlay panel.

  2. 2

    Copy it with `Copy branch name` or `Copy git checkout command`.

    The suggestion follows the iss-N-... pattern, with the issue's number — that's what links the branch to the issue.

  3. 3

    Create the branch and publish it to GitHub.

    bash
    git checkout -b iss-42-corrigir-exportacao-csv
    result
    The branch appears on the issue, under “Branch created”, with a link to GitHub.

Move the issue along the promotion path

When the merge of a linked PR reaches a stage of the repository's Promotion path, the issue changes to the status set in On reach, for example Ready to test or Done. With no stages, no status changes. See how to set it up in Connect GitHub.

The branch helper works without GitHub connected

The copy-name and copy-command buttons appear on every issue. The PR list and branch detection, though, depend on the GitHub integration being installed.

Next