diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100755 index ae2ef3c5aa71..000000000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "taskType": "trigger", - "capabilityId": "AutoMerge", - "subCapability": "AutoMerge", - "version": "1.0", - "config": { - "taskName": "Auto merge pull requests", - "label": "auto-merge", - "allowAutoMergeInstructionsWithoutLabel": false, - "mergeType": "squash", - "deleteBranches": true, - "removeLabelOnPush": true, - "requireAllStatuses": true, - "requireSpecificCheckRuns": false, - "usePrDescriptionAsCommitMessage": true, - "minMinutesOpen": "", - "minimumNumberOfCheckRuns": 0, - "minimumNumberOfStatuses": 2 - } - } -] \ No newline at end of file diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 000000000000..545870869092 --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,28 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: [] + eventResponderTasks: + - if: + - payloadType: Pull_Request + - hasLabel: + label: auto-merge + then: + - enableAutoMerge: + mergeMethod: Squash + description: + - if: + - payloadType: Pull_Request + - labelRemoved: + label: auto-merge + then: + - disableAutoMerge + description: +onFailure: +onSuccess: