fix: address pr-bug-scan findings from #1424 (#1465)

Gate gh retries on idempotency (auto-detected from argv/-X/mutation), key parent-field probe by (owner,ownerType), accept 'to an' in not_found classifier, and replace bulk label PUT with parallel sing

Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
buf0-bot[bot]
2026-05-05 15:46:21 -07:00
committed by GitHub
co-authored by orca-bug-scan-bot
parent a32b120c11
commit dd1c940fef
3 changed files with 76 additions and 3 deletions
Binary file not shown.
+5 -1
View File
@@ -194,7 +194,11 @@ export function classifyProjectError(stderr: string, stdout: string): GitHubProj
if (
s.includes('http 404') ||
errors.some((e) => (e.type ?? '').toUpperCase() === 'NOT_FOUND') ||
s.includes('could not resolve to a ')
// Why: GitHub uses "to an" for vowel-leading types ("to an Issue", "to
// an Organization") and "to a" otherwise. The previous singular-only
// check missed the "an" variants when gh emits only the stderr summary
// without a structured GraphQL error array. See bug-scan finding 3.
/could not resolve to an? /.test(s)
) {
const firstNotFound = errors.find((e) => (e.type ?? '').toUpperCase() === 'NOT_FOUND')
return {