Skip to content

test: cover change-request edited events for title and description changes - #4

Merged
pikann merged 1 commit into
Paca-AI:masterfrom
gorlix:fix/mr-update-events
Oct 29, 2026
Merged

pikann merged 1 commit into
Paca-AI:masterfrom
gorlix:fix/mr-update-events

Conversation

@gorlix

@gorlix gorlix commented Oct 28, 2026

Copy link
Copy Markdown

Summary

Two conformance fixtures for merge request update hooks that change the title or the description. Both must produce a change_request / edited event.

Why

Core re-reads the title on edited to link tasks (PROJ-N added to an existing MR's title). While testing end to end, a title edit seemed to produce no event. The provider handles this case correctly (mergeRequest in spi_webhook.go), and the missing events came from a failed hook registration in my test setup. These fixtures pin the behaviour so it doesn't regress.

Test-only change, no runtime code touched. Related: Paca-AI/paca#656 (item 4, core keeps the state of a closed MR on edited).

Tests

go vet ./... and go test -race ./... in backend/.

🤖 Generated with Claude Code

…anges

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@pikann pikann left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit 62e8c21 into Paca-AI:master Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants