diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100644 index af4f1a94a7a..00000000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,572 +0,0 @@ -{ - "version": "1.0", - "tasks": [ - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 1, - "hours": [ - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 2, - "hours": [ - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 3, - "hours": [ - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 4, - "hours": [ - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 5, - "hours": [ - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 6, - "hours": [ - 17 - ], - "timezoneOffset": -7 - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs-more-info" - } - }, - { - "name": "notPartOfMilestone", - "parameters": { - "milestone": "Backlog" - } - }, - { - "name": "notPartOfMilestone", - "parameters": { - "milestone": "Discussion" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "needs-triage" - } - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "noLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 30 - } - }, - { - "name": "noLabel", - "parameters": { - "label": "bot-exclude" - } - } - ], - "taskName": "Mark Stale Issues", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "This issue is marked as stale because feedback has been requested for 30 days with no response. Please respond within 14 days or this issue will be closed due to inactivity." - } - } - ] - } - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 12 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 1, - "hours": [ - 12 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 2, - "hours": [ - 12 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 3, - "hours": [ - 12 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 4, - "hours": [ - 12 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 5, - "hours": [ - 12 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 6, - "hours": [ - 12 - ], - "timezoneOffset": -7 - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "bot-exclude" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 14 - } - }, - { - "name": "notPartOfMilestone", - "parameters": { - "milestone": "Backlog" - } - }, - { - "name": "notPartOfMilestone", - "parameters": { - "milestone": "Discussion" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "needs-triage" - } - } - ], - "taskName": "Close Stale Issues", - "actions": [ - { - "name": "closeIssue", - "parameters": {} - }, - { - "name": "addReply", - "parameters": { - "comment": "This issue was closed due to inactivity. If you can still reproduce this bug, please comment with the requested information, detailed steps to reproduce the problem, or any other notes that might help in the investigation." - } - }, - { - "name": "addLabel", - "parameters": { - "label": "closed-by-bot" - } - } - ] - }, - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "stale" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "hasLabel", - "parameters": { - "label": "bot-exclude" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issue_comment" - ], - "taskName": "Unstale Open Issues that get comments", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "needs-triage" - } - } - ] - }, - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "operator": "not", - "operands": [ - { - "name": "isOpen", - "parameters": {} - } - ] - }, - { - "name": "hasLabel", - "parameters": { - "label": "stale" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "hasLabel", - "parameters": { - "label": "bot-exclude" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issue_comment" - ], - "taskName": "Apply needs-triage to closed stale issues that get comments", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "needs-triage" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "labelAdded", - "parameters": { - "label": "needs-more-info" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs-triage" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "remove needs-triage when needs-more-info is applied", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "needs-triage" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isActivitySender", - "parameters": { - "user": { - "type": "author" - } - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs-more-info" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issue_comment" - ], - "taskName": "author responds to `needs-more-info` gets `author-responded`", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "needs-triage" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "author-responded" - } - }, - { - "name": "removeLabel", - "parameters": { - "label": "needs-more-info" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "operator": "or", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "opened" - } - }, - { - "name": "isAction", - "parameters": { - "action": "reopened" - } - }, - { - "name": "labelAdded", - "parameters": { - "label": "Servicing-consider" - } - } - ] - }, - { - "operator": "or", - "operands": [ - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.0" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.2" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.4" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.5" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.6" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.7" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.8" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.9" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs17.10" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs16.11" - } - }, - { - "name": "prTargetsBranch", - "parameters": { - "branchName": "vs15.9" - } - } - ] - } - ] - }, - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ], - "taskName": "Comment on vs* branches", - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version." - } - } - ] - } - } - ], - "userGroups": [] -} \ No newline at end of file diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 00000000000..f361d5ea040 --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,149 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: Mark Stale Issues + frequencies: + - daily: + time: 17:0 + filters: + - isOpen + - hasLabel: + label: needs-more-info + - isNotPartOfMilestone: + milestone: Backlog + - isNotPartOfMilestone: + milestone: Discussion + - isNotLabeledWith: + label: needs-triage + - isIssue + - isNotLabeledWith: + label: stale + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: bot-exclude + actions: + - addLabel: + label: stale + - addReply: + reply: This issue is marked as stale because feedback has been requested for 30 days with no response. Please respond within 14 days or this issue will be closed due to inactivity. + - description: Close Stale Issues + frequencies: + - daily: + time: 12:0 + filters: + - isOpen + - hasLabel: + label: stale + - isNotLabeledWith: + label: bot-exclude + - noActivitySince: + days: 14 + - isNotPartOfMilestone: + milestone: Backlog + - isNotPartOfMilestone: + milestone: Discussion + - isNotLabeledWith: + label: needs-triage + actions: + - closeIssue + - addReply: + reply: This issue was closed due to inactivity. If you can still reproduce this bug, please comment with the requested information, detailed steps to reproduce the problem, or any other notes that might help in the investigation. + - addLabel: + label: closed-by-bot + eventResponderTasks: + - if: + - payloadType: Issue_Comment + - isOpen + - hasLabel: + label: stale + - not: + hasLabel: + label: bot-exclude + then: + - removeLabel: + label: stale + - addLabel: + label: needs-triage + description: Unstale Open Issues that get comments + - if: + - payloadType: Issue_Comment + - not: isOpen + - hasLabel: + label: stale + - not: + hasLabel: + label: bot-exclude + then: + - addLabel: + label: needs-triage + description: Apply needs-triage to closed stale issues that get comments + - if: + - payloadType: Issues + - labelAdded: + label: needs-more-info + - hasLabel: + label: needs-triage + then: + - removeLabel: + label: needs-triage + description: remove needs-triage when needs-more-info is applied + - if: + - payloadType: Issue_Comment + - isActivitySender: + issueAuthor: True + - hasLabel: + label: needs-more-info + then: + - addLabel: + label: needs-triage + - addLabel: + label: author-responded + - removeLabel: + label: needs-more-info + description: author responds to `needs-more-info` gets `author-responded` + - if: + - payloadType: Pull_Request + - or: + - isAction: + action: Opened + - isAction: + action: Reopened + - labelAdded: + label: Servicing-consider + - or: + - targetsBranch: + branch: vs17.0 + - targetsBranch: + branch: vs17.2 + - targetsBranch: + branch: vs17.4 + - targetsBranch: + branch: vs17.5 + - targetsBranch: + branch: vs17.6 + - targetsBranch: + branch: vs17.7 + - targetsBranch: + branch: vs17.8 + - targetsBranch: + branch: vs17.9 + - targetsBranch: + branch: vs17.10 + - targetsBranch: + branch: vs16.11 + - targetsBranch: + branch: vs15.9 + then: + - addReply: + reply: Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version. + description: Comment on vs* branches +onFailure: +onSuccess: