From f69f704d5fa2cb3702bd6f49552b2c63d40951d4 Mon Sep 17 00:00:00 2001 From: Laurenfrost Date: Wed, 20 Jan 2021 18:31:04 +0800 Subject: [PATCH] fix "take orgId as userId" --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 99b0dd8..6202df4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -199,7 +199,7 @@ export const execPullRequestReviewMention = async ( ): Promise => { const { repoToken, configurationPath } = allInputs; const reviewerUsername = payload.review?.user?.login as string; - const pullRequestUsername = payload.pull_request?.base?.user?.login as string; + const pullRequestUsername = payload.pull_request?.user?.login as string; if (!reviewerUsername) { throw new Error("Can not find review user.");