MCPcopy Create free account
hub / github.com/github/gh-aw / isCAPIQuotaExceededError

Function isCAPIQuotaExceededError

actions/setup/js/detect_agent_errors.cjs:88–90  ·  view source on GitHub ↗

* Determines if the collected output contains the observed Copilot/CAPI quota exhaustion error. * @param {string} output - Collected stdout+stderr from the process * @returns {boolean}

(output)

Source from the content-addressed store, hash-verified

86 * @returns {boolean}
87 */
88function isCAPIQuotaExceededError(output) {
89 return CAPI_QUOTA_EXCEEDED_PATTERN.test(output);
90}
91
92/**
93 * Detect known error patterns in a log string and return detection results.

Callers 6

shouldRetryFunction · 0.85
shouldRetryLocalFunction · 0.85
mainFunction · 0.85
detectErrorsFunction · 0.85

Calls

no outgoing calls

Tested by 2

shouldRetryFunction · 0.68
shouldRetryLocalFunction · 0.68