Integrations
Integrations
Where the work arrives from: ART-42 in a branch, a pull or merge request or a changelist links it to the issue — a webhook any script or Perforce trigger can call, GitHub, GitLab, builds and what is in them, importing from Linear or Jira, and bug reports from inside the game.
The bridge to where the work is done
LevelGrid does not replace your repository, your Perforce server or your CI. It reads signals from them and shows them where people already look: on the issue.
The signal is the identifier. Write ART-42 in a branch, a pull request, a merge request or a changelist, and the issue knows: a row appears in its Development section — the change, its state, who made it — and a line in its activity. An identifier only counts inside the game the integration belongs to, and only if it names an issue there. LevelGrid keeps metadata, never content: a title, a state, an address, a branch, an author. Never code, never a diff, never a whole commit message.
Integrations live in a game, not in the studio — a repository belongs to a title. An owner or admin connects them in Settings → Integrations → the game; everyone in the game sees what is connected.
Moving the issue
Each integration says what it does to the issues it links — in When a change opens and When it lands:
- When a change opens: leave the issue alone (the default), or move it to started.
- When it lands: move what it closes (the default) — the issues the change says it fixes, with the words your team already writes:
Fixes ART-42,Closes ART-42,Resolves ART-42— or every linked issue, or leave them alone.
The issue moves by category, never by name: each team keeps its own statuses, and the issue lands on its team's first status of that kind. And it only ever moves forward:
- never backwards — a change opening on an issue already done moves nothing;
- never out of canceled — somebody decided that;
- never over a person — if someone changed the status in the last ten minutes, the change only notes itself, and the activity says why;
- never to nowhere — if the team has no status of that kind, the activity says so.
The webhook
A webhook is an address and a secret: anything that can send an HTTP request — a Perforce trigger, a Plastic SCM trigger, a Jenkins or TeamCity step, a script of your own — can link work to issues through it. Make one in Settings → Integrations → the game → New webhook. The secret is shown once, when it is made; Regenerate makes a new one and the old one stops at once. Keep it in your CI's secrets, never in a repository. Webhooks are part of Integrations, on the Indie plan and up: on Free nothing new is made, and a webhook made before is answered with the plan's sentence (403, plan) until the plan is back — it is not deleted.
Send a POST to the integration's address with a JSON body in the format below, and two headers:
X-LevelGrid-Timestamp— the time, in milliseconds since 1970.X-LevelGrid-Signature— the HMAC-SHA256 of<timestamp>.<body>, in hex, keyed with the secret.
A request more than five minutes from LevelGrid's clock is refused, and so is one whose signature is not its body's. The same external_id twice is the same link, updated — a pull request is one row that changes, never five.
SECRET='lghook_…'
URL='https://levelgrid.app/api/hooks/<integration>'
BODY='{"kind":"change","external_id":"p4:123456","title":"Boss phase 2 anim (ART-42)","state":"merged","url":"https://swarm.example.com/changes/123456","author":"ana@studio.com"}'
TS=$(($(date +%s) * 1000))
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')
curl -X POST "$URL" \
-H 'content-type: application/json' \
-H "X-LevelGrid-Timestamp: $TS" \
-H "X-LevelGrid-Signature: $SIG" \
--data "$BODY"
The answer says what happened: {"ok":true,"linked":1,"ignored":0,"moved":1} — ignored counts identifiers that named a team of the game and no issue in it (the settings show the last one). A refusal says which gate refused — missing, stale, bad_signature, bad_event with what was wrong, off when the integration is turned off, plan when the studio's plan has no integrations — and 429 with Retry-After when too many arrive in a minute.
The format
| Field | What | Shape |
|---|---|---|
| kind | What arrived. | "change" |
| external_id | Your own id for the change — the same id again updates the same link. | text, up to 200 |
| title | A changelist’s description, a pull request’s title, a commit’s first line. | text, up to 300 |
| state | Where the change stands. A submitted changelist is merged. | "draft" · "open" · "merged" · "closed" |
| refs (optional) | Identifiers you already found. Each one that names no issue of the game is counted. | up to 50, like "ART-42" |
| url (optional) | Where the change is — opened from the issue. | an http:// or https:// address |
| author (optional) | An email names the studio’s person it belongs to; anything else is shown as written. | text, up to 200 |
| branch (optional) | The branch, read for identifiers too. | text, up to 200 |
| text (optional) | A commit message or a description — read for identifiers and “Fixes ART-42”, never kept. | text, up to 20,000 |
LevelGrid also reads title, branch and text for identifiers, so a script can send a commit message as text and let LevelGrid find ART-42 — and Fixes ART-42 — in it. text is read and dropped, never kept.
GitHub
Connect GitHub links a game to repositories on GitHub through the LevelGrid GitHub app. It is part of Integrations, on the Indie plan and up, like the webhook above.
- In Settings → Integrations → the game, click Connect GitHub. GitHub asks where to install the LevelGrid app — your account or an organization — and which repositories it may see.
- Back from the install page, GitHub asks you to authorize LevelGrid. That is how LevelGrid checks that the installation is yours: an installation number alone proves nothing. LevelGrid uses that authorization once, to list the installation's repositories, and keeps no GitHub token.
- The repositories appear on the game's GitHub card. A repository belongs to one game of the studio: connecting the same account to another game links only what no other game has, and says so.
What the app asks GitHub for: read access to pull requests, and the metadata every app gets. It cannot read your code, and it never writes to your repositories.
A pull request from outside the repository — anyone's, from a fork, on a public repository — is heard only once someone on the repository merges it. Until then it links nothing and moves nothing; the repository's owners, members and collaborators are heard from the moment they open one.
What arrives is pull requests, as they change:
openedA pull request is opened — the link appears.editedIts title or description changed — identifiers are read again.synchronizeNew commits were pushed to it.ready_for_reviewA draft is ready — the link is open.converted_to_draftIt went back to draft.closedIt was merged, or closed without merging.reopenedA closed pull request is open again.
A pull request is one row on each issue it names, its state kept up to date — draft, open, merged or closed. Identifiers in its title, its branch and its description link it; the closing words in its title or description — Fixes ART-42 — are what When it lands closes. A push without a pull request does not arrive: the app would have to read your code to hear it. A webhook can send those.
When something changes on GitHub, the card says so: a repository taken out of the installation is marked, and an uninstalled app is named. Connect GitHub again brings it back — the same card, with every link it made. Unlink a repository on the card to stop hearing it. A studio whose plan no longer has GitHub hears nothing until it does, and the card says why; nothing is deleted.
GitLab
Connect GitLab links a game to projects on GitLab — gitlab.com or your own GitLab server — through each project's webhook. It is part of Integrations, on the Indie plan and up, like GitHub. LevelGrid keeps no GitLab token and never calls GitLab: GitLab sends, and LevelGrid listens.
- In Settings → Integrations → the game, click Connect GitLab and give it a name. LevelGrid shows an address and a secret — the secret is shown once; Regenerate makes a new one and the old one stops at once.
- In GitLab, open the project → Settings → Webhooks → Add new webhook. Paste the address into URL and the secret into Secret token.
- Tick Push events and Merge request events, keep SSL verification on, and save. Do the same in every project of the game — a client, a server, the tools.
A project webhook is on every GitLab plan; setting one up takes the Maintainer role on the project. A project appears on the game's GitLab card when it first sends. A project belongs to one game of the studio: a project another game already hears is not heard here, and the card says so. Unlink a project on the card to stop hearing it — it stays listed, marked, until you Link again.
What arrives is merge requests, as they change:
openA merge request is opened — the link appears.reopenA closed merge request is open again.updateIts title, description, branch or draft state changed — identifiers are read again.closeIt was closed without merging.mergeIt was merged.
A merge request is one row on each issue it names, its state kept up to date — draft, open, merged or closed (a locked one reads as closed). Identifiers in its title, its source branch and its description link it; the closing words in its title or description — Fixes ART-42 — are what When it lands closes. Approvals arrive and change nothing.
A merge request from a fork — anyone's, on a public project — is heard only once someone on the project merges it. Until then it links nothing and moves nothing.
And commits on the default branch, for the work pushed straight to main: a commit that names an issue is a row on it, landed, and Fixes ART-42 in its message closes it. Only the default branch is heard — a feature branch's commits arrive through its merge request — and a commit never links an issue that a merge request of its project already links: merging a request of eight commits is one row on the issue, not nine. GitLab sends the newest 20 commits of a push; older ones in a larger push do not arrive. The message is read for identifiers and dropped.
GitLab turns a webhook off after a run of failed deliveries. So LevelGrid answers 401 only to a wrong secret and 404 only to an address that names no GitLab integration — a misconfigured webhook. Everything else is answered 202 with the reason: the integration turned off (off), a plan without integrations (plan), an archived game (gone), another game's project (elsewhere), an unlinked project (unlinked), a push to another branch (branch), events LevelGrid does not read (event), more than 600 deliveries in a minute (too_many), and a body over 8 MiB or not JSON (too_large, bad_json). The card says the two that need you — the plan, and a project another game has. Nothing is deleted, and the webhook keeps working when it is heard again.
Builds
The question a producer asks every day: is this in a build I can play? A game's builds live under Builds, in the game's part of the sidebar — newest first, by channel, each with what it contains. An issue in a build says so in its Development section: Included in 0.14.3 · nightly, the first build of each channel it is in. Builds are part of Integrations, on the Indie plan and up; a studio that moves down keeps reading the builds it had.
A build arrives through the same webhook as a change, with "kind": "build" — from Unity Build Automation, GitHub Actions, Jenkins, TeamCity or a .bat of your own. Send it when it starts (running) and again when it ends: the same external_id is the same build, its state updated.
| Field | What | Shape |
|---|---|---|
| kind | What arrived. | "build" |
| external_id | Your CI’s own id for the build — the same id again updates the same build. | text, up to 200 |
| version | What people call it. | text, up to 60, like "0.14.3" |
| channel | Where it goes. Each channel counts its own builds; kept in lower case. | text, up to 30, like "nightly" |
| state | Where the build stands. A failed build delivers nothing. | "running" · "succeeded" · "failed" |
| platform (optional) | What it runs on. | text, up to 30 |
| url (optional) | Where to download or see it — opened from the build. | an http:// or https:// address |
| commit (optional) | The commit or changelist it was built from. | text, up to 64 |
| refs (optional) | The issues in it, as your CI found them. | up to 500, like "ART-42" |
| text (optional) | The commit messages since the previous build — read for identifiers, never kept. | text, up to 60,000 |
What a build contains, and how LevelGrid knows — every build says which, on its row:
- The issues the build named: send
refs, or the commit messages since the previous build astext(git log --format=%B <previous>..HEAD), and LevelGrid finds the identifiers in them. Exact, as your CI knows it. - An estimate, when the build names nothing — a build made by hand, or a CI that sends only the version: the issues completed since the channel's previous build. The first build of a channel cannot know what is new: it marks what was already done, and the next one counts from there. When in doubt, the estimate counts fewer, never more.
What a build contains is taken when it arrives: an issue reopened later was still in that build. A failed build delivers nothing — its issues are counted by the next one. Without a CI, New build on the Builds screen makes one by hand, with a version, a channel and a link.
Handing a build out — to playtesters, a publisher, a few people under an agreement — is Build access: upload the build's file, and a group decides who downloads it.
Importing from Linear or Jira
Moving another tracker's issues over is one import, undone as one. In Settings → Integrations → the game → Import issues, choose the team and the CSV: Linear's export (Settings → Import / Export), Jira's (Filters → Export → CSV), or a CSV of your own. The file is read in your browser; what reaches LevelGrid is its rows. Importing is on every plan.
Before anything is made, the screen shows what it will do: the column it reads for each field — change them for a CSV of your own — which of the team's statuses each of theirs becomes (one with the same name first, then one of the same kind), how many labels are new, and which people were matched, by email or by a name only one person in the studio has. Everyone else's issues come in unassigned.
Then each issue gets the team's next number, the plan counts it, and nobody is notified — an import is not two thousand emails. The old key, LIN-123, stays on the issue, in its Development section and its history, and searching the old key finds it. An import that reaches the plan's limit stops there, and says so.
Undo, on the list of imports, deletes the issues the import made — with anything added to them since — and the labels it made that nothing uses any more. Their numbers stay used.
Bug reports from inside the game
A player who hits a bug can report it without leaving the game: the game sends it to LevelGrid, and it lands in the Community box as a bug — beside the ones from Discord — with the build, the device, a screenshot and the log. Approving it makes an issue, as for any other report. It is part of Community, on the Indie plan and up.
In Settings → Integrations → the game → In-game bug reports, make a report key for the build. The key is shown once. It ships inside the game, so treat it as public: it can only create reports, and Revoke stops a build that carries it, on the spot.
The game sends a POST to https://levelgrid.app/api/reports, with the key as Authorization: Bearer lgr_… and the report as multipart/form-data — or as JSON, with the log as text and no screenshot.
| Field | What | Shape |
|---|---|---|
| title | What went wrong, in the player’s words. | text, up to 200 |
| description (optional) | More of it — what they were doing. | text, up to 10,000 |
| build (optional) | The build it happened in. | text, up to 60 |
| platform (optional) | Windows, PS5, Switch… | text, up to 60 |
| device (optional) | The GPU, the memory, the OS version. | text, up to 300 |
| player_id (optional) | Your own id for the player — an install id, never an email. Deleting a player’s data finds their reports by it. | text, up to 100 |
| player_name (optional) | The name the box shows; “Player” without it. | text, up to 100 |
| report_id (optional) | Your own id for this report — sending it again is the same report, not a second. | up to 64 letters, digits and . _ : - |
| screenshot (optional) | A file: PNG, JPEG or WebP — the bytes decide, not the name. | up to 8 MB |
| log (optional) | A file, or text — kept as log.txt. | up to 1 MB |
curl -X POST 'https://levelgrid.app/api/reports' \
-H 'Authorization: Bearer lgr_…' \
-F 'title=Fell through the floor in the crypt' \
-F 'build=0.14.3' -F 'platform=Windows' -F 'device=RTX 3060, 16 GB' \
-F 'player_id=install-7f3a' -F 'report_id=crash-001' \
-F 'screenshot=@shot.png' -F 'log=@player.log'
From Unity, the same request:
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
public static class LevelGridReport
{
const string Url = "https://levelgrid.app/api/reports";
const string Key = "lgr_…"; // Settings → Integrations → In-game bug reports
public static IEnumerator Send(string title, string description, byte[] screenshotPng, string log)
{
var form = new WWWForm();
form.AddField("title", title);
form.AddField("description", description);
form.AddField("build", Application.version);
form.AddField("platform", Application.platform.ToString());
form.AddField("device", $"{SystemInfo.graphicsDeviceName}, {SystemInfo.systemMemorySize} MB");
form.AddField("report_id", System.Guid.NewGuid().ToString());
if (screenshotPng != null) form.AddBinaryData("screenshot", screenshotPng, "shot.png", "image/png");
if (!string.IsNullOrEmpty(log)) form.AddField("log", log);
using var request = UnityWebRequest.Post(Url, form);
request.SetRequestHeader("Authorization", "Bearer " + Key);
yield return request.SendWebRequest();
}
}
The answer says what happened: 201 with the report's id when it is new, 200 when the same report_id came again, and skipped names a file that did not come in and why — the report comes in anyway. A refusal says which gate: 401 for a key that is not one (or was revoked), 400 bad_report with what was wrong, 413 when the whole request is too large, 415 for another format, 429 with Retry-After when too many arrive. A game whose studio is not taking reports gets 403 with a sentence about the game that is safe to show the player.
Tell your players what a report sends. A log can hold more than you think: ask before sending it, or let the player leave it out. Never send an email or a real name as player_id — an install id does the job. Deleting a player's data (Settings → Community → Discord → A player's data → In game) finds their reports by that id, and takes the screenshots and logs with them.