Change the way autoclosing issues is checked
What does this MR do and why?
This MR changes the behavior of the "Auto-close referenced issues on default branch" setting.
Previously, we were checking the setting of the project of the commit / MR. This changes this to check the setting of the project of the issue being referenced.
More info about the change in #240922 (closed)
How to set up and validate locally
- Create Project A with autoclose issues disabled
- Create Project B with autoclose issues enabled
- Push a commit to Project B's default branch with a commit message closing an issue of Project A. The issue should not be closed.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Heinrich Lee Yu