Help centre / Connections
Connecting GitHub, GitLab or Bitbucket
Link pull requests, commits, checks and reviews to the items they name.
Kaze links your code to your work by the item key. Put a key like PAY-26 in a branch name, a pull request title or description, or a commit message, and Kaze finds the item. It works the same with GitHub, GitLab (including your own GitLab server) and Bitbucket Cloud. GitLab calls a pull request a merge request.
Connect each repository separately. The Free plan connects one repository; paid plans connect as many as you need.
Set up GitHub
- In Kaze, go to Settings, Integrations, GitHub, Connect. Enter the repository as owner/name and make up a webhook secret of at least 16 characters.
- In GitHub, open the repository, then Settings, Webhooks, Add webhook.
- Payload URL: the address Kaze shows. Content type: application/json. Secret: the same secret.
- Choose Let me select individual events, and tick Pull requests, Pull request reviews, Check suites, Pushes and Issues.
- Save. GitHub sends a test straight away, and Kaze shows Connected under Recent deliveries.
Set up GitLab
- In Kaze, go to Settings, Integrations, GitLab, Connect. Enter the project path, such as
acme/paymentsoracme/web/payments, and make up a secret token of at least 16 characters. - In GitLab, open the project, then Settings, Webhooks, Add new webhook.
- URL: the address Kaze shows. Secret token: the same token.
- Tick Push events, Merge request events, Pipeline events and Issues events. Leave SSL verification on.
- Save, then choose Test, Push events. The delivery appears under Recent deliveries.
Set up Bitbucket
- In Kaze, go to Settings, Integrations, Bitbucket, Connect. Enter the repository as
workspace/repositoryand make up a secret of at least 16 characters. - In Bitbucket, open the repository, then Repository settings, Webhooks, Add webhook.
- URL: the address Kaze shows. Secret: the same secret.
- Choose from a full list of triggers. Tick Repository: Push, Build status created and Build status updated, and under Pull request: Created, Updated, Approved, Changes request created, Merged and Declined.
- Save, then push a branch. The delivery appears under Recent deliveries.
What happens
| In your code host | In Kaze |
|---|---|
| A pull request is opened that names an item | It is linked to the item, and the item moves to In review |
| Checks, a pipeline or a build finish | The item shows Checks pass or Checks fail |
| A review approves or asks for changes | The item shows Approved or Changes asked. Nothing moves |
| The pull request is merged | The item moves to Validation. A person still signs it off |
| Commits that name an item are pushed | They are listed on the item, with the files changed |
| An issue is opened (GitHub and GitLab) | It arrives in the inbox |
A team lead can turn off the automatic moves under Settings, Integrations.
Naming your work
Every item's Code section shows a branch name to copy, such as pay-26-show-vat-line-on-invoice-pdf, and a commit prefix, PAY-26: .
Linking by hand
If a pull request does not carry the key, open the item and choose Link a pull request by hand. Paste its address from GitHub, GitLab or Bitbucket. You can unlink it the same way.
When nothing links
Open Settings, Integrations and choose Recent deliveries on the connection. Each delivery says what Kaze did with it, or why it did nothing: no key found, a different repository, or an event Kaze does not use.