Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
input pr_number
Browse files Browse the repository at this point in the history
  • Loading branch information
shikajiro committed Mar 7, 2024
1 parent be46c33 commit 423d62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const execPrReviewRequestedMention = async (
throw new Error("Can not find repository name.");
}

const number = payload.pull_request?.number;
const number = payload.pull_request?.number || payload.inputs?.pr_number?.toNumber();
if (number === undefined) {
throw new Error("Can not find pull request number.");
}
Expand Down

0 comments on commit 423d62a

Please sign in to comment.