diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100755 index eee33e17e9e6..000000000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,59 +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": "", - "minimumNumberOfStatuses": 2 - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "master" - } - } - ] - }, - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ], - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "The `master` branch is no longer used for publishing documentation. The default branch is `main`. Please re-open this PR with a base of `main` instead of `master`. " - } - }, - { - "name": "closeIssue", - "parameters": {} - } - ], - "taskName": "Close and redirect PRs that target \"master\" to use \"main\"" - } - } -] \ 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: