mirror of
https://github.com/harness/drone.git
synced 2025-07-12 23:29:39 +00:00
feat: [CODE-2087]: fix rule check for force update push (#2728)
* fix rule check for force update push
This commit is contained in:
parent
479c9b9fe7
commit
1fd081199e
@ -94,7 +94,7 @@ func (v *DefLifecycle) RefChangeVerify(_ context.Context, in RefChangeVerifyInpu
|
||||
"Push to branch %q is not allowed. Please use pull requests.", in.RefNames[0])
|
||||
}
|
||||
case RefActionUpdateForce:
|
||||
if v.UpdateForceForbidden {
|
||||
if v.UpdateForceForbidden || v.UpdateForbidden {
|
||||
violations.Addf(codeLifecycleUpdateForce,
|
||||
"Force push to branch %q is not allowed. Please use pull requests.", in.RefNames[0])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user