#17 fix: handle pull_request_review_comment payload differences in Gitea (#19)

This commit is contained in:
leoarry
2026-06-08 09:13:54 +01:00
committed by GitHub
parent dfdfdd91fe
commit b744372179
6 changed files with 83 additions and 54 deletions

View File

@@ -31,7 +31,10 @@ export async function createInitialComment(
console.log(`Repository: ${owner}/${repo}`);
// Only use createReplyForReviewComment if it's a PR review comment AND we have a comment_id
if (isPullRequestReviewCommentEvent(context)) {
if (
isPullRequestReviewCommentEvent(context) &&
context.payload.comment?.id
) {
console.log(`Creating PR review comment reply`);
response = await api.customRequest(
"POST",