#17 fix: handle pull_request_review_comment payload differences in Gitea - #19
Conversation
…g 'context.payload.comment.body')
|
Thanks again @leoarry Claude caught:
Not sure if this should be fixed here? But I'm tempted to merge anything just to get this pushed forward. |
|
@markwylde I'll have a look after dinner, if I remember well it fall back anyway to that function, need to double check. |
correctly handle pull_request_review trigger and prompt update tool
|
@markwylde I've corrected Claude's original suggestion, it was on the right track as PR comments are ultimately treated as issue comments. I've also added a couple of commits to properly handle PR reviews; Claude now triggers and generates a response for all three review states: |
|
Thanks a lot @leoarry really appreciate all your help. I'll get a release out now. |
|
@markwylde no problems 🙂 |

Gitea's
pull_request_review_commentwebhook payload differs from the GitHub spec: the comment content is inreview.contentinstead ofcomment.body, and the sender is insenderrather thancomment.user. This caused a crash with"undefined is not an object (evaluating 'context.payload.comment.body')".GiteaReviewCommentPayloadtype extendingPullRequestReviewCommentEventwith Gitea-specific fieldscommentis absentreview.contentandsender.loginfor Gitea payloadscomment-logic.tsto readGITEA_SERVER_URLat call time rather than module load time (was always resolving togithub.comin tests)