From ac12ccdea4184731a78346d3bee4665ec4ff6f7a Mon Sep 17 00:00:00 2001 From: shikajiro Date: Wed, 27 Sep 2023 14:39:06 +0900 Subject: [PATCH] add log --- src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.ts b/src/main.ts index 6fc7f6f..018f54c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -48,6 +48,8 @@ export const execPrReviewRequestedMention = async ( mapping: MappingFile, chatworkClient: Pick ): Promise => { + core.info("start execPrReviewRequestedMention()"); + const name = payload.repository?.full_name; if (name === undefined) { throw new Error("Can not find repository name."); @@ -105,6 +107,8 @@ export const execNormalComment = async ( mapping: MappingFile, chatworkClient: Pick ): Promise => { + core.info("start execNormalComment()"); + const info = pickupInfoFromGithubPayload(payload); if (info.body === null) { @@ -135,6 +139,8 @@ export const execNormalMention = async ( mapping: MappingFile, chatworkClient: Pick ): Promise => { + core.info("start execNormalMention()"); + const info = pickupInfoFromGithubPayload(payload); if (info.body === null) { @@ -185,6 +191,8 @@ export const execApproveMention = async ( mapping: MappingFile, chatworkClient: Pick ): Promise => { + core.info("start execApproveMention()"); + if (!needToSendApproveMention(payload)) { throw new Error("failed to parse payload"); }