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

Commit

Permalink
prnumber
Browse files Browse the repository at this point in the history
  • Loading branch information
shikajiro committed Mar 7, 2024
1 parent a5a47d3 commit 99512b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ export const execPrReviewRequestedMention = async (
mapping: MappingFile,
): Promise<void> => {
core.info("start execPrReviewRequestedMention()");
core.info(`payload ${payload}`);
core.info(`inputs ${payload?.inputs}`);
core.info(`pr_number ${payload.inputs?.pr_number}`);

const name = payload.repository?.full_name;
if (name === undefined) {
throw new Error("Can not find repository name.");
}

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

0 comments on commit 99512b5

Please sign in to comment.