diff --git a/scripts/dangerfile.ts b/scripts/dangerfile.ts index 7b87377c0cd3..754686981c80 100644 --- a/scripts/dangerfile.ts +++ b/scripts/dangerfile.ts @@ -50,14 +50,6 @@ const checkRequiredLabels = (labels: string[]) => { fail(`Please choose only one of these labels: ${JSON.stringify(foundRequiredLabels)}`); } - const labelsForPatchStatus = ['patch:no', 'patch:yes']; - const foundPatchLabels = intersection(labelsForPatchStatus, labels); - if (isEmpty(foundPatchLabels)) { - fail(`PR is not labeled with one of: ${JSON.stringify(labelsForPatchStatus)}`); - } else if (foundPatchLabels.length > 1) { - fail(`Please choose only one of these labels: ${JSON.stringify(foundPatchLabels)}`); - } - const foundCILabels = intersection(ciLabels, labels); if (isEmpty(foundCILabels)) { fail(`PR is not labeled with one of: ${JSON.stringify(ciLabels)}`);