mirror of https://github.com/harness/drone.git
feat: [CODE-2087]: fix rule check for force update push (#2728)
* fix rule check for force update pushCODE-2402
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…
Reference in New Issue