snix/ops/gerrit-webhook-to-irccat
Oleksandr Knyshuk 8d0ae4f7ae feat(ops/gerrit-webhook-to-irccat): notify when CLs are undrafted
- Extend the notification template to handle `wip-state-changed` events where a change is undrafted (i.e., `.Change.Wip` is false or not present).
- Add test cases for undrafting (should notify) and re-drafting (should not notify).
- Ensure correct handling of `.Changer.Username` for undraft notifications.
- Update Go module dependencies for test coverage. (`go mod tidy`)

This allows the IRC bot to notify when a change is moved out of
WIP/draft state, improving visibility for ready-for-review CLs.

Fixes #167.

Change-Id: I6a6a69642369726c3bd9f523ae025c34dba8c4aa
Reviewed-on: https://cl.snix.dev/c/snix/+/30641
Reviewed-by: Oleksandr Knyshuk <olk@disr.it>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-04 12:50:22 +00:00
..
default.nix fix(ops/gerrit-webhook-to-irccat): fix json parsing 2025-07-29 11:47:24 +00:00
go.mod feat(ops/gerrit-webhook-to-irccat): notify when CLs are undrafted 2025-08-04 12:50:22 +00:00
go.sum feat(ops/gerrit-webhook-to-irccat): notify when CLs are undrafted 2025-08-04 12:50:22 +00:00
main.go feat(ops/gerrit-webhook-to-irccat): notify when CLs are undrafted 2025-08-04 12:50:22 +00:00
main_test.go feat(ops/gerrit-webhook-to-irccat): notify when CLs are undrafted 2025-08-04 12:50:22 +00:00