Observed
The bot posts a "⚠️ Context gaps" warning stating the PR references an issue but "the API returned no linked issues," and explicitly notes this may be caused by:
- the workflow's
permissions: block missing the scope needed to read linked issues, and/or
- the PR not targeting the default branch.
As a result, the review runs without the issue's specification (acceptance criteria), reducing its usefulness — this happens intermittently, not on every PR.
Expected
When a PR references an issue via a standard closing keyword or link, the bot should reliably resolve and fetch that issue's content (title, description, acceptance criteria) regardless of whether the PR targets the default branch, and use it as context for the review.
Steps to reproduce
- Open a PR whose description references an issue via a closing keyword (e.g. "Closes #1139") or via the issue's full title/number.
- Trigger the code review bot workflow on that PR.
- Observe the bot's output.
Impact
S2 · a flow is degraded, workaround exists
Evidence
Acceptance criteria
Context pointers
No response
Reported by
Software team, 21-9-2026
Observed
The bot posts a "⚠️ Context gaps" warning stating the PR references an issue but "the API returned no linked issues," and explicitly notes this may be caused by:
permissions:block missing the scope needed to read linked issues, and/orAs a result, the review runs without the issue's specification (acceptance criteria), reducing its usefulness — this happens intermittently, not on every PR.
Expected
When a PR references an issue via a standard closing keyword or link, the bot should reliably resolve and fetch that issue's content (title, description, acceptance criteria) regardless of whether the PR targets the default branch, and use it as context for the review.
Steps to reproduce
Impact
S2 · a flow is degraded, workaround exists
Evidence
Acceptance criteria
permissions:block is confirmed to grant read access to linked issues (e.g.issues: read/pull-requests: readas required by the API used), and this is verified by a test or check, not just inspection.Context pointers
No response
Reported by
Software team, 21-9-2026