When /deploy builds the release PR, it parses Closes #N and Issue #N from the bodies of all PRs included in the release. In a v0.10.2 release with 18 merged PRs, only 3 had issue references in their bodies — leaving 13 qa-passed issues open after the release merged to main.
Root cause: /submit-for-review Step 3 ("Identify linked issue") relies on the agent inspecting the branch name or running gh pr view, but provides no deterministic mechanism to resolve the linked issue. When the agent can't confidently identify the issue, it proceeds without one and the PR body omits the Issue #N line entirely.
The branch-to-issue link does exist in GitHub (created by gh issue develop during /start), but the skill doesn't instruct the agent how to query it. There's no gh CLI shortcut for "which issue is this branch linked to?"
Expected behavior: Every PR created by /submit-for-review on a branch created by /start should include an Issue #N or Closes #N reference in the body, so that /deploy can collect them for the release PR's closing keywords.
Possible fixes:
- Query the GitHub API for development branch linkages:
gh api repos/{owner}/{repo}/branches/{branch} or search issues by linked branch name
- Have
/start write the issue number to a local file (e.g., .codecannon-issue) that /submit-for-review reads
- Parse the
gh issue develop branch metadata — GitHub stores the issue-branch association, it's just not easily surfaced via CLI
Option 2 is the most reliable and doesn't depend on GitHub API quirks.
When
/deploybuilds the release PR, it parsesCloses #N and Issue #Nfrom the bodies of all PRs included in the release. In a v0.10.2 release with 18 merged PRs, only 3 had issue references in their bodies — leaving 13qa-passedissues open after the release merged to main.Root cause:
/submit-for-reviewStep 3 ("Identify linked issue") relies on the agent inspecting the branch name or runninggh pr view, but provides no deterministic mechanism to resolve the linked issue. When the agent can't confidently identify the issue, it proceeds without one and the PR body omits theIssue #Nline entirely.The branch-to-issue link does exist in GitHub (created by
gh issue developduring/start), but the skill doesn't instruct the agent how to query it. There's no gh CLI shortcut for "which issue is this branch linked to?"Expected behavior: Every PR created by
/submit-for-reviewon a branch created by/startshould include anIssue #NorCloses #Nreference in the body, so that /deploy can collect them for the release PR's closing keywords.Possible fixes:
gh api repos/{owner}/{repo}/branches/{branch}or search issues by linked branch name/startwrite the issue number to a local file (e.g., .codecannon-issue) that/submit-for-reviewreadsgh issue develop branchmetadata — GitHub stores the issue-branch association, it's just not easily surfaced via CLIOption 2 is the most reliable and doesn't depend on GitHub API quirks.