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

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
shikajiro committed Sep 27, 2023
1 parent cbd1da3 commit ac12ccd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export const execPrReviewRequestedMention = async (
mapping: MappingFile,
chatworkClient: Pick<typeof ChatworkRepositoryImpl, "existChatworkTask" | "createChatworkTask">
): Promise<void> => {
core.info("start execPrReviewRequestedMention()");

const name = payload.repository?.full_name;
if (name === undefined) {
throw new Error("Can not find repository name.");
Expand Down Expand Up @@ -105,6 +107,8 @@ export const execNormalComment = async (
mapping: MappingFile,
chatworkClient: Pick<typeof ChatworkRepositoryImpl, "postToChatwork">
): Promise<void> => {
core.info("start execNormalComment()");

const info = pickupInfoFromGithubPayload(payload);

if (info.body === null) {
Expand Down Expand Up @@ -135,6 +139,8 @@ export const execNormalMention = async (
mapping: MappingFile,
chatworkClient: Pick<typeof ChatworkRepositoryImpl, "postToChatwork">
): Promise<void> => {
core.info("start execNormalMention()");

const info = pickupInfoFromGithubPayload(payload);

if (info.body === null) {
Expand Down Expand Up @@ -185,6 +191,8 @@ export const execApproveMention = async (
mapping: MappingFile,
chatworkClient: Pick<typeof ChatworkRepositoryImpl, "postToChatwork">
): Promise<string | null> => {
core.info("start execApproveMention()");

if (!needToSendApproveMention(payload)) {
throw new Error("failed to parse payload");
}
Expand Down

0 comments on commit ac12ccd

Please sign in to comment.