We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bae377c commit 2340122Copy full SHA for 2340122
src/merge.ts
@@ -422,9 +422,9 @@ export async function performMergeAction(
422
typeof response.repository.pullRequest === "object" &&
423
"id" in response.repository.pullRequest &&
424
response.repository.pullRequest.id;
425
- if (typeof pullRequestId !== "number") {
426
- console.error("non-numeric pull request id", JSON.stringify(response));
427
- throw new Error("non-numeric pull request id");
+ if (!pullRequestId) {
+ console.error("missing pull request id", JSON.stringify(response));
+ throw new Error("missing pull request id");
428
}
429
430
await octokit.graphql(
0 commit comments