From 22581a9136d9a78ecc354c5defc0f6f30434dafc Mon Sep 17 00:00:00 2001 From: "microsoft-github-policy-service[bot]" <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 11:37:06 +0000 Subject: [PATCH 1/2] Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement --- .github/policies/resourceManagement.yml | 66 +++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/policies/resourceManagement.yml diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 0000000..7877fb6 --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,66 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: + frequencies: + - hourly: + hour: 4 + filters: + - isOpen + - hasLabel: + label: feature request + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: response required + - isIssue + - noActivitySince: + days: 60 + - isNotLabeledWith: + label: Stale + - isNotLabeledWith: + label: do-not-close + actions: + - addLabel: + label: Stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment. + - description: + frequencies: + - hourly: + hour: 4 + filters: + - isIssue + - isOpen + - hasLabel: + label: Stale + - noActivitySince: + days: 15 + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: response required + - isNotLabeledWith: + label: do-not-close + actions: + - addReply: + reply: This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion. + - closeIssue + eventResponderTasks: + - if: + - payloadType: Issue_Comment + - hasLabel: + label: Stale + then: + - removeLabel: + label: Stale + description: +onFailure: +onSuccess: From 10fd5c42d8da7804532eb0aa1adda6ac6a16063d Mon Sep 17 00:00:00 2001 From: "microsoft-github-policy-service[bot]" <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 11:37:07 +0000 Subject: [PATCH 2/2] Deleting fabricbot.json --- .github/fabricbot.json | 345 ----------------------------------------- 1 file changed, 345 deletions(-) delete mode 100644 .github/fabricbot.json diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100644 index fe5b572..0000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,345 +0,0 @@ -{ - "version": "1.0", - "tasks": [ - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "id": "2ccE4iAwXf7fAtCw1Cie5", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 1, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 2, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 3, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 4, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 5, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 6, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "feature request" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "bug" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "response required" - } - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "noActivitySince", - "parameters": { - "days": 60 - } - }, - { - "name": "noLabel", - "parameters": { - "label": "Stale" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "do-not-close" - } - } - ], - "taskName": "Mark issues as stale (60 days)", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "Stale" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment." - } - } - ] - }, - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "id": "Eg9v-MHHPXJO6ezCa32eS", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "hasLabel", - "parameters": { - "label": "Stale" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issue_comment" - ], - "taskName": "Remove stale label if someone comments", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "Stale" - } - } - ] - } - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "id": "JVe5NuIy-MyxBd_NntAX5", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 1, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 2, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 3, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 4, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 5, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - }, - { - "weekDay": 6, - "hours": [ - 1, - 5, - 9, - 13, - 17, - 21 - ], - "timezoneOffset": 3 - } - ], - "searchTerms": [ - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "Stale" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 15 - } - }, - { - "name": "noLabel", - "parameters": { - "label": "bug" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "response required" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "do-not-close" - } - } - ], - "taskName": "Close Stale issues after 15 days", - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion." - } - }, - { - "name": "closeIssue", - "parameters": {} - } - ] - }, - "disabled": false - } - ], - "userGroups": [] -}