Disable `Allowed to push and merge` dropdown if overridden by security policy
Why are we doing this work
- scan result policies can override protected branches
Allowed to force push
andAllowed to push and merge
settings - if any security policy overrides them, modify the settings in
/-/settings/repository
Relevant links
Non-functional requirements
-
Documentation: -
Feature flag: -
Performance: -
Testing:
Implementation plan
-
backend create a helper method to determine if a protected branch needs to have its settings disabled -
frontend disable Allowed to force push
if setting is enabled -
frontend set the Allowed to push and merge
toNo one
and disable it if setting is enabled -
frontend add hover states to give more information
Verification steps
Edited by Alexander Turinske