From 383e43c7fa03a1b51759b613fa3631e5debd1494 Mon Sep 17 00:00:00 2001 From: "microsoft-github-policy-service[bot]" <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:46:57 -0800 Subject: [PATCH] Onboarding to GitOps.ResourceManagement (#33) * Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement * Deleting fabricbot.json --------- Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> --- .github/fabricbot.json | 44 ------------------------- .github/policies/resourceManagement.yml | 27 +++++++++++++++ 2 files changed, 27 insertions(+), 44 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 28456a0..0000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "version": "1.0", - "tasks": [ - { - "taskType": "trigger", - "capabilityId": "CodeFlowLink", - "subCapability": "CodeFlowLink", - "version": "1.0", - "id": "sau7Bu2WS", - "config": { - "taskName": "ESE - CodeFlow Link" - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestResponder", - "version": "1.0", - "id": "pnLzYErZr", - "config": { - "conditions": { - "operator": "and", - "operands": [] - }, - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ], - "actions": [ - { - "name": "assignToUser", - "parameters": { - "user": "@2BitSalute" - } - } - ], - "taskName": "PR Event Responder" - } - } - ], - "userGroups": [] -} diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 0000000..509d614 --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,27 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: [] + eventResponderTasks: + - if: + - payloadType: Pull_Request + - isAction: + action: Opened + then: + - addCodeFlowLink + description: + - if: + - payloadType: Pull_Request + then: + - assignTo: + users: + - '@2BitSalute' + description: +onFailure: +onSuccess: