Fix issue auto-close for merge commits from non-default branches
What does this MR do and why?
Fix issue auto-close for merge commits from non-default branches
PostMergeService only closes issues when an MR targets the default branch. ProcessCommitWorker was unconditionally skipping all commits associated with a merged MR, assuming PostMergeService already handled them. This meant that when an MR was merged into a non-default branch (e.g. 'master' when 'develop' is the default), neither path closed the referenced issues.
Now ProcessCommitWorker only skips closing references when the associated MR actually targeted the default branch, allowing merge commits from non-default branch MRs to close issues when they eventually land on the default branch.
Changelog: fixed
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.