Hide "will be closed automatically" when auto-close is off
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
The Related merge requests
widget on an issue displays When this merge request is accepted, this issue will be closed automatically
, even when Auto-close referenced issues on default branch
is disabled.
Steps to reproduce
- Visit a project
- Visit the project's Settings > Repository
- Uncheck
Auto-close referenced issues on default branch
and Save changes - In a merge request description, reference an issue like
Closes #123
- Visit the issue, look at its
Related merge requests
What is the current bug behavior?
When Auto-close referenced issues on default branch
is disabled, the Related merge requests
widget on an issue displays When this merge request is accepted, this issue will be closed automatically
.
What is the expected correct behavior?
When Auto-close referenced issues on default branch
is disabled, the Related merge requests
widget on an issue should not display When this merge request is accepted, this issue will be closed automatically
.
Relevant logs and/or screenshots
Possible fixes
Edited by 🤖 GitLab Bot 🤖