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:
co-authored by
orca-bug-scan-bot
parent
a32b120c11
commit
dd1c940fef
Binary file not shown.
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user