Git integrations
How to connect GitHub, Bitbucket or GitLab to a project, link commits to cards and tasks, and update tasks from commit messages.
What you get#
When you connect a Git repository to a Flying Donut project, every push sends its commits to the project. Commits that mention a card or task number show up on that card, with a link to the commit in your repository.
- See which commits belong to each card or task
- Open a commit in GitHub, Bitbucket or GitLab from the card
- Move tasks and log time from commit messages
- Keep GitHub Issues and backlog cards in sync
Setting up the integration#
Open SettingsIntegrations in the project. Only project Admins see this tab (see User roles). Each provider has its own card there.
GitHub
- Click Enable on the GitHub card, then Details.
- Under Auto Configuration, click Login with GitHub to auto-setup and allow access in GitHub.
- Click Configure new repo and choose the Repository.
- Optionally choose a Backlog Bucket to sync GitHub Issues with it (see below).
- Click Create Webhook, or Create Webhook and sync Issues if you chose a bucket.
Repeat the last three steps for each repository you want to connect. To set up the webhook by hand instead, use a payload URL as for Bitbucket and GitLab, with the content type application/json.
Bitbucket and GitLab
- Click Enable on the Bitbucket or GitLab card, then Details.
- Click Generate new payload URL. Flying Donut shows the webhook secret once.
- In your repository's webhook settings, add a webhook with the Payload URL as its URL and the secret in the Secret field (Secret token in GitLab).
- Click Done once you have saved the secret.

Linking commits to cards and tasks#
Every card and task has a number with the project's key, shown on the card, such as LPA-127 (see Cards and tasks). Put that number in a commit message and Flying Donut links the commit to the card or task. A # before it is fine, and case does not matter.
- Write the number anywhere in the message: Fix the sign-in error LPA-127
- Several numbers in one commit link to all of them: Update LPA-127 and LPA-131
- A card with commits shows a commit counter; click it to see each commit's date, short ID and message, with a link to the commit
- A project without a key uses the number alone, such as #127. Admins set the key in SettingsAdmin under Project Key

Workflow commands in commit messages#
Add a command after a task's number to move the task or log time without leaving your terminal.
Task commands
- LPA-128 -todo: move the task to To Do
- LPA-128 -doing: move the task to Doing. A To Do task moves to Doing when a commit mentions it, even without this command
- LPA-128 -done: move the task to Done
- LPA-128 -left 5h 20m: set the time remaining to 5 hours 20 minutes (-left 5:20 works too) and move the task to Doing
- LPA-128 -spent 3h: log 3 hours of time spent
Card commands
- LPA-127 -done: in a Sprints with Task Board project, move all the card's tasks to Done. On a workflow or Kanban board, move the card to the first Done column
Combining commands
- LPA-128 -left 2h -spent 8h: update the time remaining and time spent, and move the task to Doing
- LPA-128 -done LPA-129 -left 15h: complete one task and update another in the same commit
LPA-128 is -done and I -spent 12h. Started working on LPA-129. Already -spent 3h but it was underestimated. I think it has -left 15hUser identification#
Flying Donut matches commits to team members by the email address in your Git configuration. That address must be a confirmed email on a member of the project or of one of its workspaces.
- Check your Git email with
git config user.email. - Add the same address in AccountSettingsProfile under Emails, if it is not there yet.
- Confirm it from the email Flying Donut sends you.
git config user.emailCommits from an address Flying Donut does not recognise still appear on cards, but their commands do not change tasks or cards.
GitHub Issues sync#
Link a GitHub repository to a backlog bucket (see Backlog) when you configure it, and Flying Donut keeps the bucket's cards and the repository's issues in sync:
- Cards created in the linked bucket are created as GitHub Issues
- Issues opened in GitHub appear as cards in the bucket
- Labels with an fd: prefix show the card's Flying Donut status in GitHub
- Approving a card in Flying Donut closes the linked issue, and closing the issue approves the card
- Import existing issues with the GitHub button on a bucket in the backlog (Import Github Issues)
Example: An open-source project collects reports as GitHub Issues and plans its sprints in Flying Donut. Reported issues arrive in the backlog on their own. The team sorts them, pulls them into sprints, and when a card is approved, its issue closes.