fix(release): retry commit history gateway timeouts (#12377)

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
ShuaixinHuangandShuaixinHuang authored and GitHub committed 2026-11-19 10:33:19 -05:00
1 parent e9af636128
commit 80e8bbc871
3 files changed
+44 -9

No files matched your search

+5 -1
View File
@@ -15,8 +15,12 @@ const patch = fileURLToPath(
export function describeReleaseProposalError(error) {
if (!(error instanceof Error)) return String(error);
const description = error.message || error.name || "Unknown error";
const status = error.status;
const description = /^\s*<(?:!doctype\s+html\b|html[\s>])/iu.test(
error.message,
)
? "GitHub returned an HTML error response"
: error.message || error.name || "Unknown error";
return Number.isInteger(status) && status >= 400 && status <= 599
? `${description} (HTTP ${status})`
: description;