Commit Graph

5 Commits

Author SHA1 Message Date
JimKarvo e7d6abb942 fix: rewrite processor.go with raw Go source (was base64-corrupted) 2026-06-29 20:16:20 +00:00
JimKarvo 895b82096c fix: also check singular RequestedReviewer field for review_requested events
Gitea sends `requested_reviewer` (singular) field for `review_requested`
webhook actions, not always the `requested_reviewers` (plural/array).
The processor only checked the array form, so `usersToNotify` was always
empty and no notification was sent.

Also add more INFO-level logging for debugging the review_requested path.

Fixes: manual mappings worked but were never reached because the
processor never added the reviewer to the notification list.
2026-06-29 19:42:19 +00:00
JimKarvo 9e26698068 fix: use event.Reviewers instead of e.RequestedReviewer for review_requested 2026-06-29 18:54:59 +00:00
JimKarvo 765fb04420 fix: use event.Reviewers instead of e.RequestedReviewer for review_requested
The review_requested case was reading e.RequestedReviewer (singular *GiteaUser),
but in some Gitea versions/webhook payloads this field is nil while the
reviewer data comes in requested_reviewers (plural array).
Now uses event.Reviewers from normalizePREvent, which handles both
PullRequest.RequestedReviewers and top-level requested_reviewers.
Keeps e.RequestedReviewer as a fallback for older Gitea versions.
2026-06-23 11:01:47 +00:00
JimKarvo 6bf27aa40e Initial import with modified Dockerfile for env-based config generation 2026-06-22 11:56:10 +03:00