opencode icon indicating copy to clipboard operation
opencode copied to clipboard

CI: PR standards workflow fails with invalid GraphQL field

Open CasualDeveloper opened this issue 1 week ago • 1 comments

Bug Description

The check-standards job fails for all PRs with:

Field 'issuesReferences' doesn't exist on type 'PullRequest'

Discovered when submitting #7443: https://github.com/anomalyco/opencode/actions/runs/20845955619/job/59889485904?pr=7443

Root Cause

The GraphQL query uses issuesReferences, but the correct field name in GitHub's API is closingIssuesReferences.

Impact

All external contributor PRs fail the check-standards check.

Fix

Update the field name to closingIssuesReferences:

- issuesReferences(first: 1) {
+ closingIssuesReferences(first: 1) {
- const linkedIssues = result.repository.pullRequest.issuesReferences.totalCount;
+ const linkedIssues = result.repository.pullRequest.closingIssuesReferences.totalCount;

Reference

  • GitHub GraphQL API docs: https://docs.github.com/en/graphql/reference/objects#pullrequest

CasualDeveloper avatar Jan 09 '26 08:01 CasualDeveloper