You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: fetchIssueIDs discards GraphQL error — callers receive static "failed to get issue ID" with no root cause #2067
fetchIssueIDs in pkg/github/issues.go discards the underlying GraphQL error at both call sites (lines 65 and 87), returning only a static string with zero diagnostic context.
Affected Code
File:pkg/github/issues.go, lines 64-66 and 86-88
// Line 64-66iferr:=gqlClient.Query(ctx, &query, vars); err!=nil {
return"", "", fmt.Errorf("failed to get issue ID") // err is dropped
}
// Line 86-88iferr:=gqlClient.Query(ctx, &query, vars); err!=nil {
return"", "", fmt.Errorf("failed to get issue ID") // err is dropped
}
Both use fmt.Errorf("failed to get issue ID") with no %w verb and no reference to the captured err.
Impact
When CloseIssue (line ~1308) calls fetchIssueIDs and it fails, the caller's error message — "Failed to find issues" — cannot be supplemented with the actual root cause. Possible root causes that are silently swallowed:
Activity
almaleksia commentedon Mar 3, 2026
Thanks for the report! We're going to look into it
almaleksia commentedon Mar 5, 2026
Addressed in #2149
should be fixed in the next release