Skip to content

Issues are closed automatically after "autoclose_referenced_issues" on a project is disabled

Summary

On GitLab Security, we disabled the "Auto-close referenced issues on default branch"

Screen_Shot_2020-08-24_at_9.08.17

However, after merging some MR's into master, the issues were automatically closed:

Screen_Shot_2020-08-24_at_9.09.50

Steps to reproduce

  1. Create an issue.
  2. Create a merge request targeting the default branch with Closes <ID of the issue> in the merge request description
  3. Disable "Auto-close referenced issues on default branch"
  4. Merge the merge request

Example Project

https://gitlab.com/gitlab-org/security/gitlab

What is the current bug behavior?

Issues are closed automatically

What is the expected correct behavior?

Issues should not be closed automatically

Output of checks

This bug happens on GitLab.com

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by Jake Lear