Documentation / Connections
GitHub, GitLab and Bitbucket events
Which code host events Kaze uses and exactly what each one does.
Set up the connection as described in Connecting GitHub, GitLab or Bitbucket. Kaze checks every delivery and ignores events from any repository other than the one connected.
| Host | How Kaze checks a delivery | Event header |
|---|---|---|
| GitHub | X-Hub-Signature-256: HMAC-SHA256 of the body with your secret | X-GitHub-Event |
| GitLab | X-Gitlab-Token equals your secret token | X-Gitlab-Event |
| Bitbucket Cloud | X-Hub-Signature: HMAC-SHA256 of the body with your secret | X-Event-Key |
A delivery that fails the check gets 401 and changes nothing.
The naming rule
| What | Name | Example |
|---|---|---|
| Branch | the key in lower case, then the title | pay-26-show-vat-line-on-invoice-pdf |
| Commit | starts with the key and a colon | PAY-26: add VAT line |
| Pull request title | starts with the key and a colon | PAY-26: Show VAT line on invoice PDF |
| Pull request description | has Kaze: PAY-26 on its own line |
Agents get these names from code in claim_item and get_item. People see them in each item's Code section.
Matching
Kaze looks for the team's item keys (such as PAY-26) in the branch name, pull request title and body, and commit messages. Keys an item had before it was imported also match.
GitHub events
| Event | Kaze does |
|---|---|
ping | Records Connected under Recent deliveries |
pull_request | Links or updates the pull request on each item it names. Opened moves the item to In review, merged to Validation, unless the team has turned moves off. Never to Done |
pull_request_review | Shows Approved or Changes asked on linked items. Moves nothing |
check_suite (completed) | Shows checks passing or failing on linked pull requests whose head is that commit |
push | Records the commits that name an item, and the files changed |
issues (opened) | Adds a request to the inbox |
GitLab events
| Event | Kaze does |
|---|---|
Merge Request Hook | Links or updates the merge request, as pull_request does on GitHub. Draft merge requests show as drafts. approved shows Approved |
Pipeline Hook (finished) | Shows checks passing or failing. Matched by the merge request, or by the commit at the head of a linked merge request |
Push Hook | Records the commits that name an item, and the files changed |
Issue Hook (opened) | Adds a request to the inbox |
Projects in nested groups work: connect group/subgroup/project.
Bitbucket events
| Event | Kaze does |
|---|---|
pullrequest:created, updated, fulfilled, rejected | Links or updates the pull request. Fulfilled means merged; rejected means declined |
pullrequest:approved | Shows Approved. Moves nothing |
pullrequest:changes_request_created | Shows Changes asked. Moves nothing |
repo:commit_status_created, updated | Shows checks passing or failing on linked pull requests whose head is that commit |
repo:push | Records the commits that name an item. Bitbucket does not send the files changed |
Every other event, on any host, is answered with 202 and recorded as unused.
Recent deliveries
Each connection keeps its last 30 deliveries with what Kaze did, under Settings, Integrations, Recent deliveries.