diff --git a/src/sdk/actions.ts b/src/sdk/actions.ts index cd85900..9479c4a 100644 --- a/src/sdk/actions.ts +++ b/src/sdk/actions.ts @@ -96,6 +96,8 @@ async function postComment(context: Context, error: LogReturn) { issue_number: context.payload.issue.number, body: `${error.logMessage.diff}\n`, }); + } else { + context.logger.info("Cannot post comment because issue is not found in the payload"); } } diff --git a/src/sdk/server.ts b/src/sdk/server.ts index 8e5a5e3..5e17035 100644 --- a/src/sdk/server.ts +++ b/src/sdk/server.ts @@ -107,5 +107,7 @@ async function postComment(context: Context, error: LogReturn) { issue_number: context.payload.issue.number, body: `${error.logMessage.diff}\n`, }); + } else { + context.logger.info("Cannot post comment because issue is not found in the payload"); } }