mirror of https://github.com/harness/drone.git
status check checkbox in rules to update with checkbox (#2205)
* status check checkbox in rules to update with checkboxunified-ui
parent
feecde9faa
commit
75f4e9e932
|
@ -278,6 +278,9 @@ const BranchProtectionForm = (props: {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!formData.requireStatusChecks) {
|
||||
delete (payload?.definition as ProtectionBranch)?.pullreq?.status_checks
|
||||
}
|
||||
if (!formData.limitMergeStrategies) {
|
||||
delete (payload?.definition as ProtectionBranch)?.pullreq?.merge?.strategies_allowed
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue