GitLab closes issues that shouldn't close based on the default closing pattern
Summary
When using the https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically feature, GitLab seems to close issues that don't match the default regex. Is EF using a custom regex for matching issues in git log
?
Steps to reproduce
eclipse/oniro-core/oniro!221 (merged) has a set of commits mentioning various issues for automatic closing. Example:
[...]
Fixes: https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/723
[...]
Fixes: https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/724
[...]
It also references another issue which is marked for closing too:
[...]
To help Oniro with
https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/1565, EF created
[...]
The default regex \b((?:[Cc]los(?:e[sd]?|ing)|\b[Ff]ix(?:e[sd]|ing)?|\b[Rr]esolv(?:e[sd]?|ing)|\b[Ii]mplement(?:s|ed|ing)?)(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?: *,? +and +| *,? *)?)|([A-Z][A-Z0-9_]+-\d+))+)
(see https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) should not match that mention as it lacks the needed keywords. Even so, the MR mentions under the Merge
button that it will close it too:
Fast-forward merge without a merge commit
Closes issues #723, #724, and eclipsefdn/helpdesk#1565
There is a way to customise this matching pattern: https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#customize-the-issue-closing-pattern and besides this being a bug the only explanation that I have is that EF sets that to a custom value that matches any reference.
What is the current bug behaviour?
Merge requests marks mentioned issues that lack the required keywords up for closing.
What is the expected correct behaviour?
Merge should not mark mentioned issues that lack the required keywords up for closing.
Relevant logs and/or screenshots
See above.