Skip to content

Commit 531ba20

Browse files
authored
[extractInputs] Log only PR URLs to avoid truncation (#36444)
1 parent c35121b commit 531ba20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/src/context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @ts-check
22

3-
import { inspect } from "util";
43
import { PER_PAGE_MAX } from "../../shared/src/github.js";
54
import { rateLimitHook } from "./github.js";
65
import { getIssueNumber } from "./issues.js";
@@ -175,7 +174,8 @@ export async function extractInputs(github, context, core) {
175174
} else {
176175
throw new Error(
177176
`Unexpected number of pull requests associated with commit '${head_sha}'. ` +
178-
`Expected: '1'. Actual: '${pullRequests.length}'. PRs:\n${inspect(pullRequests)}`,
177+
`Expected: '1'. Actual: '${pullRequests.length}'. PRs:\n` +
178+
pullRequests.map((pr) => pr.html_url).join("\n"),
179179
);
180180
}
181181
if (!issue_number) {

0 commit comments

Comments
 (0)