Integrations: GitHub, GitLab & webhooks
Show MRs/PRs and CI on cards from GitHub and GitLab (Pro and Premium), or send activity to Slack, Teams, Google Chat, Discord or your system: setup, rules and logs.
- What can a webhook do?
- How do I add a webhook?
- How do I get a Slack webhook URL?
- How do I get a Microsoft Teams webhook URL?
- How do I get a Google Chat webhook URL?
- How do I get a Discord webhook URL?
- Which events can I send?
- What if a delivery fails?
- What does the JSON payload look like?
- How do I check the signature?
- Can a webhook send extra headers, such as Authorization?
- How are webhooks kept safe?
- GitHub and GitLab: link MRs/PRs to cards
- How do I set it up?
- How is an MR/PR matched to a card?
- The Development section and the board chip
- Auto-move rules
- Deliveries log and troubleshooting
- Plans and removing
What can a webhook do?
A webhook posts a project's activity — new issues, status changes, assignments, comments and more — to your team's chat channel or to your own system as it happens. Free on every plan.
- Set up in Project settings → Integrations, by project admins and company admins only (other members do not see the tab)
- Up to 5 webhooks per project, each with its own events and message language (English or Thai)
- Slack, Microsoft Teams, Google Chat and Discord get a ready-made chat message: who did what, the issue with its status, assignee and priority, and a link to open it
- JSON (your system) gets a signed JSON body for your own system to process — see below
- Web app only: AI agents cannot see or change webhooks over MCP
How do I add a webhook?
- Open the board → gear (Project settings) → Integrations → Add webhook
- Choose where to send: Slack, Microsoft Teams, Google Chat, Discord or JSON (your system)
- Give it a name and paste the Webhook URL (how to get it for each service is below)
- Under Send when, tick the events — New issue, Status changed, Assignee changed and New comment are ticked to start with
- Pick the message language and press Save and send test — the test result shows at once
For JSON, the signing secret (whsec_…) is shown once after saving — copy it into your system. New signing secret in the ⋯ menu makes a new one, and the old one stops working at once. Each webhook has an on/off switch, Send test, History, Edit and Delete.
How do I get a Slack webhook URL?
- Open api.slack.com/apps → Create New App → From scratch and pick your workspace (or use a Slack app you already have)
- Incoming Webhooks → switch on Activate Incoming Webhooks → Add New Webhook → choose the channel → Allow
- Copy the Webhook URL (it starts with https://hooks.slack.com/services/) and paste it in BoardMark
How do I get a Microsoft Teams webhook URL?
Teams takes webhooks through the Workflows app (Power Automate); the old Office 365 connectors are being retired. BoardMark sends an Adaptive Card.
- In Teams, open the channel → ⋯ → Workflows
- Choose the template “Post to a channel when a webhook request is received”, name it and sign in if asked
- Check the team and channel, then Add workflow
- Copy the URL Teams shows and paste it in BoardMark
If your organisation restricts Workflows, ask your Microsoft 365 admin.
How do I get a Google Chat webhook URL?
- In Google Chat, open the space → the space name ▾ → Apps & integrations
- Webhooks → Add webhook, give it a name and Save
- Copy the URL (it starts with https://chat.googleapis.com/v1/spaces/) and paste it in BoardMark
Incoming webhooks in Google Chat are for Google Workspace accounts.
How do I get a Discord webhook URL?
- In Discord, open the channel's settings (Edit Channel) → Integrations → Webhooks → New Webhook
- Name it, check the channel, then Copy Webhook URL (it starts with https://discord.com/api/webhooks/)
- Paste it in BoardMark — you need the Manage Webhooks permission on that server
Which events can I send?
| Event | Sent when | Ticked to start |
|---|---|---|
issue.created | New issue | Yes |
issue.status_changed | Status changed — an issue moves to another status, dragging on the board included | Yes |
issue.assigned | Assignee changed | Yes |
comment.added | New comment | Yes |
comment.mentioned | Someone @mentioned a person or an agent account in a new comment — one event per account mentioned | No |
issue.unblocked | The last card an issue was blocked_by reached Done | No |
issue.updated | Other edits — title, priority, labels, due date and other fields (reordering is not sent) | No |
issue.deleted | Issue deleted | No |
sprint.started | Sprint started | No |
sprint.closed | Sprint closed | No |
release.released | Release shipped | No |
One change can be several events: moving an issue and changing its assignee in one save sends both Status changed and Assignee changed. Changes made through an AI agent are sent too.
What if a delivery fails?
- A send counts as delivered when your URL answers 2xx within 10 seconds; redirects are not followed and count as a failure
- A failed send is tried again, up to 8 times over about 1.5 hours
- A failing webhook shows since when it has been failing; still failing after 3 days, it switches itself off and the project admins and company admins get an email. Check the URL, then switch it on again
- History shows every delivery of the last 30 days — time, event, result (status code or error) and attempts; Send again sends one again (the webhook must be on)
- Send test sends a sample Status changed message at any time — nothing changes on the board
What does the JSON payload look like?
A JSON webhook gets a POST with the headers below and a body like the example (texts in the webhook's language). There is never an email address in it — people are names and ids.
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | BoardMark-Webhooks/1 |
BoardMark-Event | The event, such as issue.status_changed |
BoardMark-Delivery | whd_… — the same on every retry and Send again; use it to skip duplicates |
BoardMark-Signature | t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>" with your secret> |
POST /boardmark HTTP/1.1
Content-Type: application/json
User-Agent: BoardMark-Webhooks/1
BoardMark-Event: issue.status_changed
BoardMark-Delivery: whd_01K6Z3P8Q4X7B2M5N6R0S1T2V4
BoardMark-Signature: t=1791183900,v1=5f2c9e…
{
"id": "evt_01K6Z3P8Q4X7B2M5N6R0S1T2V3",
"type": "issue.status_changed",
"occurred_at": "2026-10-05T14:05:00+07:00",
"project": { "key": "APP", "name": "Mobile App" },
"actor": { "id": "usr_01J8Z3K9Q4X7B2M5N6P8R0S1T2", "name": "Fern Suda", "via_agent": false },
"issue": {
"key": "APP-42",
"title": "Checkout shows the wrong price after a coupon",
"type": "bug",
"status": { "from": "in_progress", "to": "in_review" },
"assignee": { "id": "usr_01J8Z3K9Q4X7B2M5N6P8R0S1T2", "name": "Fern Suda" },
"priority": "high",
"url": "https://app.example.com/p/APP/i/APP-42"
},
"url": "https://app.example.com/p/APP/i/APP-42"
}- id — the BoardMark event (evt_…); type — the event; test: true only on Send test
- project {key, name} and actor {id, name, via_agent} — via_agent is true when the change came through an AI agent
- issue {key, title, type, status {from, to}, assignee, priority, url} for issue events and comments — status values are the project's status ids (from only on issue.status_changed)
- comment {id, excerpt} (cut at 300 characters), sprint {id, name, state}, release {id, name}, and changed_fields for issue.updated (such as priority, labels)
- url — where to look in the web app
- New keys may be added later: ignore keys you do not know
The two opt-in wake-up events (not on by default) add fields: comment.mentioned carries mention {id, name, kind} — kind is person or agent, and one event is sent per account @mentioned in the new comment; issue.unblocked carries unblocked_by {key, title} — the last card that was blocking it and reached Done (title only when the blocker is in the same project). An AI harness can use them to wake an agent instead of polling. On issue.assigned, issue.assignee is the new assignee.
{
"id": "evt_01K6Z4A9R5Y8C3N6P7S1T2V3W5",
"type": "comment.mentioned",
"occurred_at": "2026-10-20T10:12:00+07:00",
"project": { "key": "APP", "name": "Mobile App" },
"actor": { "id": "usr_01J8Z3K9Q4X7B2M5N6P8R0S1T2", "name": "Fern Suda", "via_agent": false },
"issue": {
"key": "APP-43",
"title": "Show a message when login is rate limited",
"type": "task",
"status": { "to": "in_progress" },
"assignee": { "id": "usr_01J8Z3K9Q4X7B2M5N6P8R0S1T2", "name": "Fern Suda" },
"priority": "medium",
"url": "https://app.example.com/p/APP/i/APP-43"
},
"comment": { "id": "APP-43#c-3", "excerpt": "@build-agent please reuse the error text from APP-42" },
"mention": { "id": "agt_01K5Y2B8Q4X7B2M5N6R0S1T2V3", "name": "build-agent", "kind": "agent" },
"url": "https://app.example.com/p/APP/i/APP-43"
}{
"id": "evt_01K6Z4B3S6Z9D4P7Q8T2V3W4X6",
"type": "issue.unblocked",
"occurred_at": "2026-10-20T11:30:00+07:00",
"project": { "key": "APP", "name": "Mobile App" },
"actor": { "id": "usr_01J8Z3K9Q4X7B2M5N6P8R0S1T2", "name": "Fern Suda", "via_agent": false },
"issue": {
"key": "APP-43",
"title": "Show a message when login is rate limited",
"type": "task",
"status": { "to": "todo" },
"assignee": { "id": "agt_01K5Y2B8Q4X7B2M5N6R0S1T2V3", "name": "build-agent" },
"priority": "medium",
"url": "https://app.example.com/p/APP/i/APP-43"
},
"unblocked_by": { "key": "APP-42", "title": "Rate-limit POST /login" },
"url": "https://app.example.com/p/APP/i/APP-43"
}How do I check the signature?
Compute HMAC-SHA256 over t, a dot and the raw body (exactly the bytes received, before parsing the JSON), with the whole secret including whsec_ as the key, and compare it with v1 in constant time. Refuse a t older than 5 minutes, answer 2xx quickly and do slow work afterwards, and skip a BoardMark-Delivery you have already handled.
import { createHmac, timingSafeEqual } from "node:crypto";
import { createServer } from "node:http";
const SECRET = process.env.BOARDMARK_WEBHOOK_SECRET; // the whole whsec_… value
// header = BoardMark-Signature, body = the raw request body (Buffer)
export function verify(header, body) {
const f = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
const age = Math.abs(Date.now() / 1000 - Number(f.t));
if (!/^\d+$/.test(f.t ?? "") || age > 300) return false;
const want = createHmac("sha256", SECRET).update(`${f.t}.`).update(body).digest();
const got = Buffer.from(f.v1 ?? "", "hex");
return got.length === want.length && timingSafeEqual(got, want);
}
createServer((req, res) => {
const chunks = [];
req.on("data", (c) => chunks.push(c));
req.on("end", () => {
const body = Buffer.concat(chunks);
if (!verify(req.headers["boardmark-signature"] ?? "", body)) return res.writeHead(401).end();
res.writeHead(204).end(); // answer first, then work
const event = JSON.parse(body.toString("utf8"));
// skip a BoardMark-Delivery id you have already handled (retries reuse it)
console.log(req.headers["boardmark-delivery"], event.type, event.issue?.key);
});
}).listen(8080);import hashlib, hmac, os, time
SECRET = os.environ["BOARDMARK_WEBHOOK_SECRET"].encode() # the whole whsec_… value
def verify(header: str, body: bytes) -> bool:
"""header = BoardMark-Signature, body = the raw request body."""
f = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
t = f.get("t", "")
if not t.isdigit() or abs(time.time() - int(t)) > 300:
return False
want = hmac.new(SECRET, t.encode() + b"." + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(want, f.get("v1", ""))
# Flask:
# @app.post("/boardmark")
# def boardmark():
# if not verify(request.headers.get("BoardMark-Signature", ""), request.get_data()):
# abort(401)
# event = request.get_json()
# # skip a BoardMark-Delivery id you have already handled (retries reuse it)
# return "", 204package boardmark
import (
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
"io"
"net/http"
"strconv"
"strings"
"time"
)
// Verify checks the BoardMark-Signature header against the raw body.
// secret is the whole whsec_… value.
func Verify(secret, header string, body []byte) bool {
var t, v1 string
for _, p := range strings.Split(header, ",") {
k, v, _ := strings.Cut(p, "=")
switch k {
case "t":
t = v
case "v1":
v1 = v
}
}
ts, err := strconv.ParseInt(t, 10, 64)
if err != nil {
return false
}
if age := time.Now().Unix() - ts; age > 300 || age < -300 {
return false
}
got, err := hex.DecodeString(v1)
if err != nil {
return false
}
m := hmac.New(sha256.New, []byte(secret))
m.Write([]byte(t + "."))
m.Write(body)
return hmac.Equal(got, m.Sum(nil))
}
func Handler(secret string) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(io.LimitReader(r.Body, 1<<20))
if err != nil || !Verify(secret, r.Header.Get("BoardMark-Signature"), body) {
http.Error(w, "bad signature", http.StatusUnauthorized)
return
}
// skip a BoardMark-Delivery id you have already handled (retries reuse it)
w.WriteHeader(http.StatusNoContent)
}
}Can a webhook send extra headers, such as Authorization?
Yes, for receivers that need authentication: your own API, an API gateway, n8n, Make, Zapier, Pipedream. Every webhook (Slack, Microsoft Teams, Google Chat, Discord and JSON) has an “Extra headers” field in Project settings → Integrations. Add up to 10 name/value pairs, such as Authorization: Bearer … or X-Api-Key. They are sent with every message, the Send test button and every Send again.
- Header values are secrets: stored encrypted and never shown again. The page shows the name and a masked hint (last 4 characters). Editing without typing a value keeps the stored one.
- Changing the webhook's URL means typing every header value again — a stored credential never follows a webhook to a new address.
- Names are standard HTTP header names (letters, digits, - and so on, up to 64 characters), no duplicates. BoardMark's own and transport headers cannot be set: Host, Content-Type, Content-Length, User-Agent, Connection, Proxy-*, X-Forwarded-*, Sec-*, BoardMark-* and similar.
- A value is at most 4096 visible ASCII characters, and all headers together at most 8 KB.
- BoardMark-Event, BoardMark-Delivery and (for JSON) BoardMark-Signature are still sent and always win over a header you set.
- The body is still BoardMark's format — there are no custom body templates — so an LLM API such as Grok/xAI cannot be called directly. Put a relay (n8n, Make or your own gateway) in between.
Web app only (AI agents over MCP cannot configure webhooks), every plan, no extra charge.
How are webhooks kept safe?
- The URL must be https:// on the standard port and point to a public address — internal IPs, localhost and private networks are refused, when you save and again on every send
- Redirects are not followed, and each send waits at most 10 seconds
- The URL and secret are stored encrypted; after saving, the page shows only the host and the end of the URL
- A chat webhook URL works like a password — anyone who has it can post to your channel. If it leaks, make a new one in the chat app and Edit the webhook in BoardMark
- Payloads carry names and ids, never email addresses, and comment text is cut at 300 characters
- Only project admins and company admins can see or change webhooks; AI agents cannot, over MCP
GitHub and GitLab: link MRs/PRs to cards
Connect a repository to a project and its cards show the merge requests / pull requests that mention them, with their state and CI result, so nobody copies links by hand. You can also switch on rules that move a card on those events, for example MR opened → In Review, merged → Dev Done. It works from the Pro plan (Premium too). A project admin or company admin sets it up in Project settings → Integrations → Git repositories.
- GitHub: github.com only, one repository at a time (GitHub Enterprise Server is not supported)
- GitLab: GitLab.com and self-hosted GitLab (https required), one project at a time or a whole group
- This round connects with a webhook URL and a secret that BoardMark gives you; you grant no OAuth access to anyone. A one-click GitHub App is planned for release 2
- BoardMark posts no comment on the card when something is merged: the history and the MR chip on the card are enough
How do I set it up?
- Open Project settings → Integrations → Git repositories → Add repository
- Choose GitHub or GitLab and enter the path, such as icd/board-web (for self-hosted GitLab also the host, and whether it is a project or a group)
- BoardMark shows the webhook URL (it looks like https://api.boardmark.ai/api/v1/hooks/git/{hook_id}) and a secret, shown once. Copy both to the provider
- Optional: add a read-only token so the Test button can read the repository (GitHub: Pull requests read and Commit statuses read; GitLab: read_api). BoardMark stores it encrypted
- The repository shows “No events yet” until the first event arrives. You can close the page meanwhile
| Provider | Go to | Fill in | Events to tick |
|---|---|---|---|
| GitHub | repository → Settings → Webhooks → Add webhook | Payload URL = the webhook URL · Content type = application/json · Secret = the secret | Let me select individual events: Pull requests, Pushes, Check runs and Statuses, then Add webhook (GitHub sends a ping at once) |
| GitLab | project or group → Settings → Webhooks → Add new webhook | URL = the webhook URL · Secret token = the secret | Merge request events, Push events, Pipeline events, then Add webhook and Test → Merge request events |
BoardMark compares the path you entered with the repository in every event; events from another repository are dropped.
How is an MR/PR matched to a card?
BoardMark looks for an issue key in the branch name, the MR/PR title and the commit messages. It is case-insensitive, one item may carry several keys, and only keys of the project that connected the repository count, for a card that exists. Keys of other projects are skipped.
| Where | Example | Matches |
|---|---|---|
| Branch name | feature/BM-26-login | BM-26 |
| MR/PR title | BM-26: fix the login page | BM-26 |
| Commit message | bm-26 add tests | BM-26 (case does not matter) |
| Several keys | BM-24 BM-26 tune the API | BM-24 and BM-26 |
| A key of another project | SALES-9 change contract (repo connected to BM) | No match |
The Development section and the board chip
- Open a card and a Development section follows the attachments. Each MR/PR shows the repository, number, title, author, state (open, draft, merged, closed), CI result (passed, failed, running, none) and a link to the provider, with the latest commits that mention the key
- With no MR yet the card tells you to put the key in the branch name
- On the board a card with an MR/PR carries a chip with a CI-coloured dot; click it to open the list
- The page updates by itself when a new event arrives, no refresh needed
- Viewers and up see the section (anyone who sees the card sees its MRs and CI). AI agents read it with the list_development tool
Auto-move rules
The rules are in Project settings → Integrations → Move cards on MR/PR events. They are off until you switch them on, and apply only to MRs/PRs already matched to a card. For each event you pick the target status from the project’s own statuses.
| Event | Happens when | Default when you switch rules on |
|---|---|---|
| opened | An MR/PR is opened | In Review |
| ready | A draft is marked ready for review | Not set |
| merged | It is merged | Dev Done |
| closed | It is closed without merging | Not set |
| ci_failed | CI fails | Not set |
The limits, on purpose:
- A card already in a done-category status is never moved, and a card is never moved backwards (a target that comes before its current status). A card already at the target is left alone
- Scrum boards: only a card in a sprint a person has started is moved; otherwise it is skipped and the reason is noted in the deliveries log
- A read-only company (lapsed, suspended or closing) gets no auto-moves, though MR/PR links, CI and commits keep updating
- The history names the actor “GitHub” or “GitLab”, who counts as role Developer for role lanes: a move out of a QA or DevOps lane still happens but carries the lane warning in the history
- No comment is posted when something is merged
Deliveries log and troubleshooting
Each repository has a deliveries log: the last 50, kept 30 days, filterable by result. Each row shows the time, the event, the matched cards and the result. A delivery the provider repeats with the same delivery id is skipped and makes no second row.
| Result | Meaning |
|---|---|
| linked | A key was found and the card’s MR/PR link, CI or commits were updated |
| moved | A rule moved the card from status → status (with a lane warning if it left another role’s lane) |
| no key | No key of this project in the branch, title or commit |
| signature failed | The signature does not match this repository’s secret. BoardMark answered 401 and did not read the payload |
| ignored | An event type that is not used, or one from another repository |
If something does not work:
- Signature failed every time: the secret at the provider does not match BoardMark. Choose “Rotate secret” in the repository’s menu, copy the new secret (shown once), paste it at the provider (GitHub: the Secret field, GitLab: Secret token) and redeliver
- Redeliver from the provider: GitHub → Settings → Webhooks → pick the webhook → Recent Deliveries → choose one → Redeliver; GitLab → Settings → Webhooks → Edit → Recent events → View details → Resend request
- “No events yet” for too long: check the URL and the ticked events, then look at Recent Deliveries at the provider to see what BoardMark answered
- No key: check the key belongs to the project that connected this repository and that the card exists
- A card did not move: see the limits above (already in done, a target before the current status, a Scrum sprint not started, or a read-only company). The row in the log says which
- Answered 403 plan_required: the company is not on Pro or Premium
Plans and removing
- Pro and Premium get all of it. Free sees the tab with a PRO badge and an upgrade card (members see a note to ask an admin)
- Dropping to Free: BoardMark keeps the settings but stops receiving events, stops moving cards and hides the chips (webhooks get 403 plan_required). Upgrade again and it carries on
- Remove a repository from its menu, and also delete the webhook at the provider
- Moving a project to another company: repository connections do not move with it; connect them again
- Connecting, rotating a secret and changing the rules are in the company’s Audit log
- All setup is in the web app only. AI agents cannot see or change it; they only have list_development to read a card’s MRs/PRs