Hide "Create merge request" option when merge requests are disabled
What does this MR do and why?
Hide "Create merge request" option when merge requests are disabled (#557074 (closed))
In a project's settings, the user can disable merge requests. In this case, we should not show the "Create merge request" option on work items as the user is not able to create merge requests.
Changelog: fixed
References
Screenshots or screen recordings
Screen_Recording_2025-08-21_at_5.25.37_pm
How to set up and validate locally
- Go to project's settings, expand "Visibility, project features, permissions", disable "Merge requests" toggle
- Go to issue within project and confirm the "Create merge request" button is now "Create branch" button
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.
Related to #557074 (closed)
Edited by Coung Ngo