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

Function getActionFailureIssueExpiresHours

actions/setup/js/handle_agent_failure.cjs:51–58  ·  view source on GitHub ↗

* Parse action failure issue expiration from environment. * @returns {number} Expiration in hours (defaults to 168 when unset/invalid)

()

Source from the content-addressed store, hash-verified

49 * @returns {number} Expiration in hours (defaults to 168 when unset/invalid)
50 */
51function getActionFailureIssueExpiresHours() {
52 const raw = process.env.GH_AW_ACTION_FAILURE_ISSUE_EXPIRES_HOURS || "";
53 const parsed = Number.parseInt(raw, 10);
54 if (Number.isInteger(parsed) && parsed > 0) {
55 return parsed;
56 }
57 return DEFAULT_ACTION_FAILURE_ISSUE_EXPIRES_HOURS;
58}
59
60/**
61 * Extracts the numeric run ID from a GitHub Actions run URL.

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected