How work ships
Team → Repository → Config. Each repository says how its code reaches its environments; SeamTrail then knows which ticket is on which environment.
SeamTrail wants to know, without anyone typing it, which ticket is on which environment. It learns it from your repositories.
It works like this: Team → Repository → Config. A team lists its repositories. Each repository says how its code reaches its environments. That is all.
Open it from the team's Settings → Code & deploys. The team's Admins and Managers set it up; everyone in the team can see it.
1. Add a repository
Add repository, pick it from your GitHub connection, and answer one question: how does code reach an environment in this repo?
| Answer | What it means | How SeamTrail knows |
|---|---|---|
| Merge to main, deploy from main | Everything merges into main. A deploy takes a commit of main to stage and prod. | A merge into main is Dev. Your deploy script (or GitHub Actions, or GitHub Deployments) tells SeamTrail when stage and prod get a commit. |
| A branch for each environment | develop runs on Dev, staging on Stage, main on Prod. | A merge or push into the branch is the deploy. |
| Release branches | Work merges into develop, a release/… branch goes to Stage, merging it into main is Prod. | The merges and the release branch. |
| Versions and tags | A tag ships a version: v1.4.0-rc1 to Stage, v1.4.0 to Prod. | The tags you push. |
| By hand | Nothing reports the deploy (a store release, a manual upload). | Merges count for Dev; someone marks the rest by hand. |
2. Check its environments
The repository's page lists the environments this repository deploys to, in order, each with one line saying how code gets there:
- Dev — when code is merged or pushed into branch
main - Stage — when your deploy reports
stage - Prod — when your deploy reports
prod
Each box says what it is: Environment (its name), Counts as reached (how code gets there), and the Branch, the Tag, or What your deploy reports (the env word your deploy script sends). A sentence under the row says it in plain words, for example "Prod is reached when code is merged or pushed into the main branch". An empty box is shown in orange: until it is filled in, that environment is never reached.
Change a name, a branch or a tag; add or remove an environment; save. A docs repository can go straight to Prod while the web repository goes Dev → Stage → Prod. When two repositories use the same environment name, it is the same environment for the team.
The name box offers the names the team already uses, so its repositories share them. The team's environments are simply what its repositories deploy to: the top of Code & deploys shows them in one line (for example Stage → Prod), in order, and says when two repositories list them in a different order. There is no separate list of environments to set up.
3. Tell SeamTrail about your deploys (only for "your deploy reports")
When an environment is reached by a deploy report, the page shows one line to add to your deploy script. It sends the repository, the environment and the commit. The key is made on the repository's page, under Deploy webhook, and works for that repository only. The division's key, in its Settings → Tools → Deploy webhook, works for every repository. Instead of the script you can switch on GitHub Actions (the workflow passes the environment as input env) or GitHub Deployments.
More (optional)
- Previews: a preview environment for each pull request (GitHub Deployments named
preview-…orpr-…). Shown on the ticket, never counted. - Regions: an environment that runs in several places (prod-eu, prod-us). A deploy reported as
prod-eucounts for that region.
How a ticket moves
A pull request with SEAM-76 in it is merged into main, or pushed straight to it: SEAM-76 is on Dev. Your deploy script deploys commit dc43168 to prod and tells SeamTrail: SeamTrail checks that dc43168 contains the SEAM-76 merge, so SEAM-76 is on Prod. A ticket never moves backwards by itself. A team's folder on the project shows its recent merges and deploys, one closed row per repository: every merge and deploy, and what SeamTrail did with it.
Where SeamTrail finds the ticket
A change is tied to its tickets by their keys, read from four places:
- The branch name:
seam-76-audit,feature/SEAM-76,seam-76_audit. - The pull request title.
- The pull request description, which can list many tickets: "Closes SEAM-12, SEAM-13 and SEAM-14".
- The commit messages.
All four are read unless the team unticks some (team's Code & deploys → Advanced → A ticket key is read from). Only keys of your own Jira spaces count, so "UTF-8" in a description is not a ticket.
Is it the ticket's work, or only a mention?
A key in git does not always mean the work was done. "Part of SEAM-31" or "see SEAM-9" names a ticket without finishing it. So for each ticket, the AI reads every place in git that names it, once: each commit's full message, and each pull request's title, description and branch. It answers per commit or pull request:
| Answer | What happens |
|---|---|
| Its work | Counts as usual. |
| Part of its work | Shows on the ticket as "Part on Prod", but is not counted until the ticket's own work lands. |
| Only mentions it | Not counted. |
A pull request that merges many changes at once (a release, dev into main) and lists the ticket counts as its work.
Open a ticket to see How SeamTrail read git: each commit or pull request, the AI's answer and its reason. Anyone on the project changes an answer in one click, and a person's answer always wins. Until the AI answers, or when it cannot, the ticket counts as before and SeamTrail asks again that night. The AI is asked again about a ticket only when new code names it.
Merged into dev first, then into main
Every merged pull request is kept with its tickets, whatever branch it went into. When dev is later merged into main, as a merge commit or as one squashed commit, the tickets of every pull request inside it come along. A later deploy of that commit carries them too. This works because SeamTrail reads the pull request's own commits from GitHub, and the earlier merges into dev are among them.
A pull request with no ticket key
A merged pull request that names no ticket is listed as Unlinked under the team's recent merges and deploys (in the team's folder). SeamTrail's AI reads its title, description, branch and commits against the team's tickets and suggests one: "Looks like SEAM-70 — Fixes the team folder count". Anyone in the team can then:
- Link SEAM-70: one click.
- Another ticket: type the keys yourself.
- Not this one: the suggestion goes away and is not asked again.
Nothing counts until a person links it. After a link, SeamTrail reads the team's last 90 days of code again, so the ticket shows on the environments the pull request reached. Linking is in the audit log.
Say where a ticket is deployed, by hand
Some finished work never shows up in git with its ticket key: code pushed straight to main with no key in the message, or work with no code at all (a DNS record, a new repository).
In a team's folder (Tasks), SeamTrail asks about the team's tickets in the Done group that have no code found: "3 Done tickets have no code found. Where are they?", each with a Where is it? button.
Every ticket in the Jira folder and in a team's Tasks also has an edit button (the pencil) in the Deployed column, To Do tickets too. It opens one question, Where is SEAM-24 deployed?, where anyone in the team ticks:
- every environment it is on, for example Stage and Prod: the column then says Stage, Prod, and the ticket counts there;
- or No code needed: the ticket leaves the team's code counts, so it no longer looks missing.
What SeamTrail found in git is what the column shows until someone changes it. When the choice differs from what SeamTrail found, the popup warns first: "SeamTrail found its code on Stage. Saving replaces that until git sees a newer merge or deploy of this ticket." Your choice holds until git sees a newer merge or deploy of the ticket, then git decides again. Use what SeamTrail finds takes your choice back. Every change is in the ticket's history and the audit log. A division Admin can turn this off (division Settings → Shipping: "Mark as deployed by hand is allowed").
"Done" means the task tool's own Done group (in Jira, the status category), never the status's name: a status called "Shipped" or "Released" counts when your Jira puts it in Done.
Underneath: the rules
Each repository's setup is turned into rules SeamTrail reads. The screen does not show them: you only set the simple setup, and saving it makes the rules again. This part explains what SeamTrail does underneath.
Branch rules
A branch rule says what a branch name means, and what a merge or a push into it does:
| Part of the rule | What it says |
|---|---|
| Pattern | main, release/*, env/{environment}. * is one part, ** any depth, {name} captures a part. Several alternatives with |. Regex works too. |
| Means | Trunk, Work branch, Environment branch, Release branch, Hotfix branch, or Ignore. |
| Environment | A fixed environment, the environment named by {name} in the pattern (env/qa → QA), or none. |
| Counts when | A pull request is merged into it; merged and the branch's checks pass; a commit is pushed to it; the branch is created. |
| Ticket key from | The branch name, the pull request title, its description, the commit messages. All four unless the team chose fewer. |
| Mark | Optional: the ticket is marked release or hotfix. |
Rules are read top to bottom; the first that matches decides. A branch no rule matches is left alone and shows in the team's recent merges and deploys as not counted.
Deploy signals
A deploy signal says how SeamTrail hears that a commit reached an environment:
| Source | How it works |
|---|---|
| SeamTrail deploy webhook | One line in any CI posts the repository, the environment name and the commit. The environment name is matched to an environment. See the webhook. |
| GitHub Deployments | A deployment status in GitHub. The environment name is matched (production-{part} names the part). |
| GitHub Actions | A finished workflow run. The workflow name is matched; an input such as env names the environment. |
| Git tag | A tag like v* means the commit is on an environment. |
| Release | A GitHub release; pre-releases and full releases can go to different environments. |
| Any CD tool | A webhook with your tool's own body; you say which fields hold the repository, the environment and the commit. |
| By hand | Mark a deploy by hand on the repository's page, for an environment no tool reports (a store release). It is in the audit log. |
For every signal SeamTrail checks that the deployed commit contains the ticket's merge commits. A ticket with code in several repositories is on an environment when all of them reached it (or any, as the team chooses).
What SeamTrail heard
A team's folder on the project lists, repository by repository, what reached SeamTrail lately and which environment it counted for. Events are kept 90 days.
When a repository is added, or its setup or rules change, SeamTrail first reads the past 90 days of the branches its rules name straight from GitHub: commits for branches where pushes count, merged pull requests where merges count. This catches work done before SeamTrail was connected; it shows as From git history. Then it reads the last 90 days again with the new rules. Only what happened before SeamTrail first heard the repository is read, so nothing counts twice. Old deploys cannot be read this way: nothing reported them. A nightly pass repairs anything a missed webhook left out.
Presets (division)
Division Admins and Managers keep saved rule sets in the division's Settings → Shipping, with a default per department and four switches: whether teams define their own environments, whether every release order must end in Prod or Live, whether marking a deploy by hand is allowed, and who adds repositories to a team.
Where it shows
- The project's Jira folder (and each team's Tasks) shows where the code is: one line per team, with each of its environments and how many tickets reached it, and each ticket's furthest environment in the Code column.
- A team's folder lists its recent merges and deploys, one closed row per repository — open one to see what git said and link a pull request that named no ticket.
- A ticket's drawer shows its journey: its pull requests, the environments it reached and why an environment is not reached yet.
- The promotion rules use the team's environments as their environments.
- Ask the agent: "where is SEAM-76 deployed?", "how does Hands ship?", or "mark dc43168 as deployed to Live for Mobile".
Our own setup
Add each repository to its team with Merge to main, deploy from main, and let the deploy script report each deploy. SeamTrail's own deploy script does this: it reads the deploy key from ~/seamtrail/.deploy-key on the box.