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": [] -} 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: