anomalyco / anomalyco/opencode
pr-standards falsely flags every v2-based PR as missing a linked issue
@rekram1-node is already working on this.
Since Jul 23, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The pr-standards workflow flags every PR that targets the v2 branch with needs:issue, even when the description contains a valid Closes #<number> line.
Cause: the check relies on the GraphQL closingIssuesReferences count, and GitHub only populates closing references for PRs that target the repository default branch (dev). For any other base branch the count is always 0, so the workflow labels the PR and posts the "doesn't have a linked issue" comment no matter what the description says.
Examples, all base v2, all with Closes #N in the body, all flagged: #38406, #37088, #36242, #36403.
Fix idea: when closingIssuesReferences is 0, fall back to matching the PR body against GitHub's closing keywords (close/closes/closed/fix/fixes/fixed/resolve/resolves/resolved + #number) before flagging. Happy to open a PR.
Plugins
Not applicable, repo CI workflow.
OpenCode version
Not applicable.
Steps to reproduce
- Open a PR with base
v2andCloses #<valid issue>in the description. - The pr-standards job labels it
needs:issueand posts the missing-issue comment.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.