Record the ticket key in the branch name and Source changes - #5273
Draft
10zingpd wants to merge 4 commits into
Draft
Record the ticket key in the branch name and Source changes#527310zingpd wants to merge 4 commits into
10zingpd wants to merge 4 commits into
Conversation
Documents the scheduled agent that opens automated docs PRs: the full playbook it follows on every run, plus a README covering how it runs, which repos it monitors, and where its state files live. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Docs PRs currently branch as claude/update-<description> and cite only <repo>#<number>, so no DOCS ticket ever links to the PR that satisfied it.
❌ Deploy Preview for viam-docs failed. Why did it fail? →
|
Contributor
Author
Names the rule and adds the status condition, which is what prevents a closed ticket being reopened by a later PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #5262. Stacked on it — based on its head, so the diff below includes its content until that merges.
Problem
Docs PRs branch as
claude/update-<description>and cite only<repo>#<number>. Neither carries a ticket key, so GitHub for Jira never links the PR and no DOCS ticket knows about it.Before the poller went live on 2026-04-07, 188 of 350 docs PRs (54%) had a DOCS key in the branch. After: 1 of 350.
Changes
docs-agent/playbook-daily-code-changes.md:<TICKET-KEY>Verified
app#13122, titled[APP-17430], and DOCS-4930 is blocked by APP-17430. Every hop existed; nothing wrote the key down.Backfill
Mapping merged docs PRs back to open tickets by hand closed 16 DOCS tickets — 13 traced through a PR that cited the upstream change, 3 matched directly to merged docs. That was one manual pass over the backlog; the convention above is what removes the need for the next one.
To Do
The DOCS-key lookup only stops being best-effort once the agent has Jira read access. That means three variables in the Claude Code cloud agent's trigger environment, alongside the existing
GH_TOKEN— not in this repo, not inviam-code-map, and not in any file (perdocs-agent/README.md):Read-only.
Browse Projectson DOCS, APP and RSDK is the whole permission set —linkedIssues()reads both ends of the link, and the transition is performed by the automation rule under its own actor, so the agent never needs write access.Until that exists, the agent writes the upstream key and the rule covers only PRs whose branch already carries a DOCS key.