Skip to content

fix(webhook): auto-link branches with project prefix forms - #5

Merged
gorlix merged 2 commits into
masterfrom
cursor/auto-link-branch-prefix-f48a
Oct 11, 2026
Merged

gorlix merged 2 commits into
masterfrom
cursor/auto-link-branch-prefix-f48a

Conversation

@gorlix

@gorlix gorlix commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Extends push-event branch→task auto-link to match UI CreateBranch names: feat/PREFIX-N-…, feat/PREFIX/N-…, and number-only feat/N-… when the project has an empty task_id_prefix.
  • Scopes task resolution to the webhook’s projectId and requires the branch prefix to match the project’s task_id_prefix.
  • Adds Go unit tests for the matcher, new-branch detection, and push-handler auto-link paths.

Test plan

  • go test ./... in backend/
  • Local reinstall of plugin on paca-dev (branch ac9a63c)
  • E2E hyphen: push feat/SKUI-1-auto-link-prefix-171706 → linked to SKUI-1 (webhook 204 + gitlab_task_branches)
  • E2E slash: push feat/SKUI/1-slash-auto-link-171725 → linked to SKUI-1
Open in Web Open in Cursor 

Extend push-event branch→task matching for feat/PREFIX-N,
feat/PREFIX/N, and number-only branches when task_id_prefix is empty.
Scope task lookup to the webhook project and add unit coverage.
@gorlix
gorlix marked this pull request as ready for review October 11, 2026 22:29
@gorlix
gorlix merged commit 9089e97 into master Oct 11, 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.

1 participant