From d9fc8c07ee21382f4878396b4114b6c729c50f2c Mon Sep 17 00:00:00 2001 From: "dotnet-policy-service[bot]" <123482357+dotnet-policy-service[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:14:36 -0800 Subject: [PATCH] FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#510) * Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html Please review and merge this PR to complete the process of onboarding to the new service. * Deleting fabricbot.json --------- Co-authored-by: dotnet-policy-service[bot] <123482357+dotnet-policy-service[bot]@users.noreply.github.com> --- .github/fabricbot.json | 33 ------------------------- .github/policies/resourceManagement.yml | 18 ++++++++++++++ 2 files changed, 18 insertions(+), 33 deletions(-) delete mode 100644 .github/fabricbot.json create mode 100644 .github/policies/resourceManagement.yml diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100644 index 35341ec..0000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "version": "1.0", - "tasks": [ - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "P6vsCOatS", - "config": { - "conditions": { - "operator": "and", - "operands": [] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Lock new issues", - "actions": [ - { - "name": "lockIssue", - "parameters": { - "reason": "resolved" - } - } - ] - } - } - ], - "userGroups": [] -} diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 0000000..c1d708a --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,18 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: [] + eventResponderTasks: + - if: + - payloadType: Issues + then: + - lockIssue + description: Lock new issues +onFailure: +onSuccess: