status check checkbox in rules to update with checkbox (#2205)

* status check checkbox in rules to update with checkbox
unified-ui
Ritik Kapoor 2024-07-11 20:12:54 +00:00 committed by Harness
parent feecde9faa
commit 75f4e9e932
1 changed files with 3 additions and 0 deletions

View File

@ -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
}