diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100644 index 057a69061..000000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,318 +0,0 @@ -{ - "version": "1.0", - "tasks": [ - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 1, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 2, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 3, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 4, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 5, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 6, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "noLabel", - "parameters": { - "label": "bug" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "security" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "do not close" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 60 - } - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "noAssignees", - "parameters": {} - } - ], - "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." - } - } - ] - }, - "id": "v8RMdulExiln5tDIcHkDG" - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "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" - } - } - ] - }, - "id": "QjKAHn8H_s2w4-FPDwsTJ" - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 1, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 2, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 3, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 4, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 5, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 6, - "hours": [ - 0, - 6, - 12, - 18 - ] - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "bug" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "do not close" - } - }, - { - "name": "noAssignees", - "parameters": {} - }, - { - "name": "noActivitySince", - "parameters": { - "days": 15 - } - } - ], - "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": {} - } - ] - }, - "id": "9IHqeWe1Xes6__bAZYk5M" - } - ], - "userGroups": [] -} diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 000000000..0aa5a1f3b --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,64 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: + frequencies: + - hourly: + hour: 4 + filters: + - isOpen + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: security + - isNotLabeledWith: + label: stale + - isNotLabeledWith: + label: do not close + - noActivitySince: + days: 60 + - isIssue + - isNotAssigned + 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: 6 + filters: + - isOpen + - isIssue + - hasLabel: + label: stale + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: do not close + - isNotAssigned + - noActivitySince: + days: 15 + 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: