Git sync

Connect GitHub

You need: admin rights in Jira, and write access to the repository on GitHub.

1. Create a token on GitHub

  1. On GitHub, open Settings → Developer settings → Fine-grained tokens → Generate new token.

  2. Name it, for example FeatureBridge, and pick an expiration date.

    When the token expires, sync stops until you save a new one in Jira.

  3. Set Resource owner to the user or organization that owns the repository.

  4. Under Repository access, choose Only select repositories and pick the repository.

  5. Under Repository permissions, set:

    PermissionAccess
    ContentsRead and write
    WebhooksRead and write

    Metadata (read-only) is added by GitHub automatically.

  6. Click Generate token and copy it (it starts with github_pat_).

Organization repositories

Some organizations must approve fine-grained tokens first. If Jira says the token has no access, ask an organization owner to approve it.

2. Connect it in Jira

  1. Open Jira settings → Apps → FeatureBridge.

  2. Fill in the Git sync form:

    • Git host: GitHub
    • Repository owner: the user or organization, for example acme
    • Repository name: for example shop
    • Branch: the branch to sync, usually main
    • Folder with .feature files: for example features
    • Access token: the token from step 1
  3. Click Save.

    FeatureBridge checks the token and creates the push webhook. You should see Connected to GitHub ….

The Git sync settings connected to a GitHub repository
A connected repository.

If the folder already has .feature files, click Import from the repository further down the settings page. See Import scenarios.

If the webhook could not be created

Without the Webhooks permission the page shows a URL and a secret instead. Add the webhook by hand in the repository: Settings → Webhooks → Add webhook, paste the URL as Payload URL, choose content type application/json, paste the Secret and keep Just the push event.