commit fef647c95061c1d40b935ec99b9f6b9b0ac6e85b
parent d6e9824f0ab6e2bcefb30320b168fa3fe20aea0e
Author: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Date: Thu, 15 Jun 2023 09:30:00 -0700
Onboarding to GitOps.ResourceManagement (#3347)
* 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>
Diffstat:
2 files changed, 398 insertions(+), 1794 deletions(-)
diff --git a/.github/fabricbot.json b/.github/fabricbot.json
@@ -1,1794 +0,0 @@
-{
- "version": "1.0",
- "tasks": [
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssuesOnlyResponder",
- "version": "1.0",
- "config": {
- "taskName": "Add needs triage label to new issue",
- "conditions": {
- "operator": "or",
- "operands": [
- {
- "operator": "and",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "opened"
- }
- }
- ]
- }
- ]
- },
- "actions": [
- {
- "name": "addLabel",
- "parameters": {
- "label": "Needs-Triage"
- }
- }
- ],
- "eventType": "issue",
- "eventNames": [
- "issues",
- "project_card"
- ]
- },
- "id": "BCDR-nl8SuU"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssueCommentResponder",
- "version": "1.0",
- "config": {
- "taskName": "Replace needs author feedback label with needs attention label when the author comments on an issue",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "created"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": {
- "type": "author"
- }
- }
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "addLabel",
- "parameters": {
- "label": "Needs-Attention"
- }
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "eventType": "issue",
- "eventNames": [
- "issue_comment"
- ]
- },
- "id": "DeJGPTDbY1v"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssuesOnlyResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove no recent activity label from issues",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "operator": "not",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "closed"
- }
- }
- ]
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "eventType": "issue",
- "eventNames": [
- "issues",
- "project_card"
- ]
- },
- "id": "CyJv3uZblJB"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssueCommentResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove no recent activity label when an issue is commented on",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "hasLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "eventType": "issue",
- "eventNames": [
- "issue_comment"
- ]
- },
- "id": "Ql0NArFMlCd"
- },
- {
- "taskType": "scheduled",
- "capabilityId": "ScheduledSearch",
- "subCapability": "ScheduledSearch",
- "version": "1.1",
- "config": {
- "taskName": "Close stale issues",
- "frequency": [
- {
- "weekDay": 0,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 1,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 2,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 3,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 4,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 5,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 6,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- }
- ],
- "searchTerms": [
- {
- "name": "isIssue",
- "parameters": {}
- },
- {
- "name": "isOpen",
- "parameters": {}
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- },
- {
- "name": "noActivitySince",
- "parameters": {
- "days": 7
- }
- },
- {
- "name": "noLabel",
- "parameters": {
- "label": "Issue-Feature"
- }
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Blocking-Issue"
- }
- }
- ],
- "actions": [
- {
- "name": "closeIssue",
- "parameters": {}
- }
- ]
- },
- "id": "BBllrStlJbZ"
- },
- {
- "taskType": "scheduled",
- "capabilityId": "ScheduledSearch",
- "subCapability": "ScheduledSearch",
- "version": "1.1",
- "config": {
- "taskName": "Add no recent activity label to issues",
- "frequency": [
- {
- "weekDay": 0,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 1,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 2,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 3,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 4,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 5,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 6,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- }
- ],
- "searchTerms": [
- {
- "name": "isIssue",
- "parameters": {}
- },
- {
- "name": "isOpen",
- "parameters": {}
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "noActivitySince",
- "parameters": {
- "days": 7
- }
- },
- {
- "name": "noLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "actions": [
- {
- "name": "addLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- },
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor} this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**."
- }
- }
- ]
- },
- "id": "Cgwag-Qa1z_"
- },
- {
- "taskType": "scheduled",
- "capabilityId": "ScheduledSearch",
- "subCapability": "ScheduledSearch",
- "version": "1.1",
- "config": {
- "taskName": "Close duplicate issues",
- "frequency": [
- {
- "weekDay": 0,
- "hours": [
- 0,
- 3,
- 6,
- 9,
- 12,
- 15,
- 18,
- 21
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 1,
- "hours": [
- 0,
- 3,
- 6,
- 9,
- 12,
- 15,
- 18,
- 21
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 2,
- "hours": [
- 0,
- 3,
- 6,
- 9,
- 12,
- 15,
- 18,
- 21
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 3,
- "hours": [
- 0,
- 3,
- 6,
- 9,
- 12,
- 15,
- 18,
- 21
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 4,
- "hours": [
- 0,
- 3,
- 6,
- 9,
- 12,
- 15,
- 18,
- 21
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 5,
- "hours": [
- 0,
- 3,
- 6,
- 9,
- 12,
- 15,
- 18,
- 21
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 6,
- "hours": [
- 0,
- 3,
- 6,
- 9,
- 12,
- 15,
- 18,
- 21
- ],
- "timezoneOffset": -8
- }
- ],
- "searchTerms": [
- {
- "name": "isIssue",
- "parameters": {}
- },
- {
- "name": "isOpen",
- "parameters": {}
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Resolution-Duplicate"
- }
- },
- {
- "name": "noActivitySince",
- "parameters": {
- "days": 1
- }
- }
- ],
- "actions": [
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor} this issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes."
- }
- },
- {
- "name": "closeIssue",
- "parameters": {}
- }
- ]
- },
- "id": "5eI-Mku5q4x"
- },
- {
- "taskType": "trigger",
- "capabilityId": "CodeFlowLink",
- "subCapability": "CodeFlowLink",
- "version": "1.0",
- "config": {
- "taskName": "Add a CodeFlow link to new pull requests"
- },
- "id": "yubCiUdSEZ4"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "PullRequestReviewResponder",
- "version": "1.0",
- "config": {
- "taskName": "Add needs author feedback label to pull requests when changes are requested",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "submitted"
- }
- },
- {
- "name": "isReviewState",
- "parameters": {
- "state": "changes_requested"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "addLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ],
- "eventType": "pull_request",
- "eventNames": [
- "pull_request_review"
- ]
- },
- "id": "zLisIIm3H-c"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "PullRequestResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove needs author feedback label when the author responds to a pull request",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "isActivitySender",
- "parameters": {
- "user": {
- "type": "author"
- }
- }
- },
- {
- "operator": "not",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "closed"
- }
- }
- ]
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ],
- "eventType": "pull_request",
- "eventNames": [
- "pull_request",
- "issues",
- "project_card"
- ]
- },
- "id": "nRvIK_EpBhV"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "PullRequestCommentResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove needs author feedback label when the author comments on a pull request",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "isActivitySender",
- "parameters": {
- "user": {
- "type": "author"
- }
- }
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ],
- "eventType": "pull_request",
- "eventNames": [
- "issue_comment"
- ]
- },
- "id": "p9ay5ODusFS"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "PullRequestReviewResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove needs author feedback label when the author responds to a pull request review comment",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "isActivitySender",
- "parameters": {
- "user": {
- "type": "author"
- }
- }
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ],
- "eventType": "pull_request",
- "eventNames": [
- "pull_request_review"
- ]
- },
- "id": "l_wqicpNLh8"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "PullRequestResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove no recent activity label from pull requests",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "operator": "not",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "closed"
- }
- }
- ]
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "eventType": "pull_request",
- "eventNames": [
- "pull_request",
- "issues",
- "project_card"
- ]
- },
- "id": "7OxlbV516e-"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "PullRequestCommentResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove no recent activity label when a pull request is commented on",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "hasLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "eventType": "pull_request",
- "eventNames": [
- "issue_comment"
- ]
- },
- "id": "IcOTcksjx7n"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "PullRequestReviewResponder",
- "version": "1.0",
- "config": {
- "taskName": "Remove no recent activity label when a pull request is reviewed",
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "hasLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ]
- },
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "eventType": "pull_request",
- "eventNames": [
- "pull_request_review"
- ]
- },
- "id": "_llqXDRWXGc"
- },
- {
- "taskType": "scheduled",
- "capabilityId": "ScheduledSearch",
- "subCapability": "ScheduledSearch",
- "version": "1.1",
- "config": {
- "taskName": "Close stale pull requests",
- "frequency": [
- {
- "weekDay": 0,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 1,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 2,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 3,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 4,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 5,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 6,
- "hours": [
- 2,
- 5,
- 8,
- 11,
- 14,
- 17,
- 20,
- 23
- ],
- "timezoneOffset": -8
- }
- ],
- "searchTerms": [
- {
- "name": "isPr",
- "parameters": {}
- },
- {
- "name": "isOpen",
- "parameters": {}
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- },
- {
- "name": "noActivitySince",
- "parameters": {
- "days": 7
- }
- }
- ],
- "actions": [
- {
- "name": "closeIssue",
- "parameters": {}
- }
- ]
- },
- "id": "TpOF0Z7D4q1"
- },
- {
- "taskType": "scheduled",
- "capabilityId": "ScheduledSearch",
- "subCapability": "ScheduledSearch",
- "version": "1.1",
- "config": {
- "taskName": "Add no recent activity label to pull requests",
- "frequency": [
- {
- "weekDay": 0,
- "hours": [
- 1,
- 4,
- 7,
- 10,
- 13,
- 16,
- 19,
- 22
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 1,
- "hours": [
- 1,
- 4,
- 7,
- 10,
- 13,
- 16,
- 19,
- 22
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 2,
- "hours": [
- 1,
- 4,
- 7,
- 10,
- 13,
- 16,
- 19,
- 22
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 3,
- "hours": [
- 1,
- 4,
- 7,
- 10,
- 13,
- 16,
- 19,
- 22
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 4,
- "hours": [
- 1,
- 4,
- 7,
- 10,
- 13,
- 16,
- 19,
- 22
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 5,
- "hours": [
- 1,
- 4,
- 7,
- 10,
- 13,
- 16,
- 19,
- 22
- ],
- "timezoneOffset": -8
- },
- {
- "weekDay": 6,
- "hours": [
- 1,
- 4,
- 7,
- 10,
- 13,
- 16,
- 19,
- 22
- ],
- "timezoneOffset": -8
- }
- ],
- "searchTerms": [
- {
- "name": "isPr",
- "parameters": {}
- },
- {
- "name": "isOpen",
- "parameters": {}
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "noActivitySince",
- "parameters": {
- "days": 7
- }
- },
- {
- "name": "noLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- }
- ],
- "actions": [
- {
- "name": "addLabel",
- "parameters": {
- "label": "No-Recent-Activity"
- }
- },
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor} this pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**."
- }
- }
- ]
- },
- "id": "vDJ-BtWuy6N"
- },
- {
- "taskType": "trigger",
- "capabilityId": "AutoMerge",
- "subCapability": "AutoMerge",
- "version": "1.0",
- "config": {
- "taskName": "Automatically merge pull requests",
- "label": "AutoMerge",
- "silentMode": false,
- "minMinutesOpen": 480,
- "mergeType": "squash",
- "deleteBranches": true,
- "removeLabelOnPush": true,
- "allowAutoMergeInstructionsWithoutLabel": true,
- "enforceDMPAsStatus": true,
- "usePrDescriptionAsCommitMessage": true
- },
- "id": "Ogc07F3PYdn"
- },
- {
- "taskType": "trigger",
- "capabilityId": "InPrLabel",
- "subCapability": "InPrLabel",
- "version": "1.0",
- "config": {
- "fixedLabelEnabled": true,
- "taskName": "Label PRs and mark fix committed automatically",
- "label_inPr": "In-PR",
- "label_fixed": "Resolution-Fix-Committed"
- },
- "id": "1GoaeFSbokJ"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssuesOnlyResponder",
- "version": "1.0",
- "config": {
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "operator": "or",
- "operands": [
- {
- "name": "titleContains",
- "parameters": {
- "isRegex": true,
- "titlePattern": "^\\s*Bug Report \\(IF I DO NOT CHANGE THIS THE ISSUE WILL BE AUTO-CLOSED\\)\\s*$"
- }
- },
- {
- "name": "titleContains",
- "parameters": {
- "titlePattern": "^\\s*Bug Report\\s*$",
- "isRegex": true
- }
- }
- ]
- },
- {
- "operator": "or",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "opened"
- }
- },
- {
- "name": "isAction",
- "parameters": {
- "action": "reopened"
- }
- }
- ]
- },
- {
- "operator": "not",
- "operands": [
- {
- "name": "activitySenderHasPermissions",
- "parameters": {
- "permissions": "write"
- }
- }
- ]
- },
- {
- "operator": "not",
- "operands": [
- {
- "name": "activitySenderHasPermissions",
- "parameters": {
- "permissions": "admin"
- }
- }
- ]
- }
- ]
- },
- "eventType": "issue",
- "eventNames": [
- "issues",
- "project_card"
- ],
- "taskName": "Close issues with no title fix",
- "actions": [
- {
- "name": "closeIssue",
- "parameters": {}
- },
- {
- "name": "addLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor} thanks for attempting to open an issue. Unfortunately, your title wasn't changed from the original template which makes it very hard for us to track and triage. You are welcome to fix up the title and try again with a new issue."
- }
- }
- ]
- },
- "id": "XpbJkHXfM6E"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssuesOnlyResponder",
- "version": "1.0",
- "config": {
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "operator": "or",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "opened"
- }
- },
- {
- "name": "isAction",
- "parameters": {
- "action": "reopened"
- }
- }
- ]
- },
- {
- "operator": "or",
- "operands": [
- {
- "operator": "not",
- "operands": [
- {
- "name": "bodyContains",
- "parameters": {
- "bodyPattern": ".+",
- "isRegex": true
- }
- }
- ]
- }
- ]
- }
- ]
- },
- "eventType": "issue",
- "eventNames": [
- "issues",
- "project_card"
- ],
- "taskName": "Close issues with nothing in the body",
- "actions": [
- {
- "name": "closeIssue",
- "parameters": {}
- },
- {
- "name": "addLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor} thanks for attempting to open an issue. Unfortunately, you didn't write anything in the body which makes it impossible to understand your concern. You are welcome to fix up the issue and try again by opening another issue with the body filled out. "
- }
- }
- ]
- },
- "id": "ehtCpjUk7j6"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssuesOnlyResponder",
- "version": "1.0",
- "config": {
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "isLabeled",
- "parameters": {}
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Needs-Feedback-Hub"
- }
- },
- {
- "name": "",
- "parameters": {}
- }
- ]
- },
- "eventType": "issue",
- "eventNames": [
- "issues",
- "project_card"
- ],
- "taskName": "Ask for Feedback Hub link",
- "actions": [
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor}<br /><br />\nPlease send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?<br /><br />\nThanks! <br /><br />\nUse \"Apps\" and \"Windows Package Manager\" in the category.<br /><br />\nClick on \"Share Feedback\" to get the link in Feedback Hub."
- }
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Feedback-Hub"
- }
- },
- {
- "name": "addLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ]
- },
- "id": "FgQ4yqoLO-T"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssuesOnlyResponder",
- "version": "1.0",
- "config": {
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "hasLabel",
- "parameters": {
- "label": "In-PR"
- }
- },
- {
- "name": "hasLabel",
- "parameters": {
- "label": "Help Wanted"
- }
- },
- {
- "name": "isLabeled",
- "parameters": {}
- }
- ]
- },
- "eventType": "issue",
- "eventNames": [
- "issues",
- "project_card"
- ],
- "taskName": "Pull the Help-Wanted tag if something goes into PR",
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Help Wanted"
- }
- }
- ],
- "dangerZone": {
- "respondToBotActions": false,
- "acceptRespondToBotActions": true
- }
- },
- "id": "ZIFjd8FzYst"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssueCommentResponder",
- "version": "1.0",
- "config": {
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "commentContains",
- "parameters": {
- "bodyPattern": "/dup",
- "isRegex": true,
- "commentPattern": "Duplicate\\s+of\\s+#?\\s*\\d+"
- }
- },
- {
- "operator": "or",
- "operands": [
- {
- "name": "activitySenderHasPermissions",
- "parameters": {
- "permissions": "admin"
- }
- },
- {
- "name": "activitySenderHasPermissions",
- "parameters": {
- "permissions": "write"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": "ImJoakim"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": "ItzLevvie"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": "jedieaston"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": "KaranKad"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": "OfficialEsco"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": "Trenly"
- }
- },
- {
- "name": "isActivitySender",
- "parameters": {
- "user": "quhxl"
- }
- }
- ]
- }
- ]
- },
- "eventType": "issue",
- "eventNames": [
- "issue_comment"
- ],
- "taskName": "Helper to mark as duplicate",
- "actions": [
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor} we've identified this Issue as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the referenced Issue. Thanks for your report! Be sure to add your 👍 to the other issue to help raise the priority."
- }
- },
- {
- "name": "closeIssue",
- "parameters": {}
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Triage"
- }
- },
- {
- "name": "addLabel",
- "parameters": {
- "label": "Resolution-Duplicate"
- }
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Attention"
- }
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Feedback-Hub"
- }
- },
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Repro"
- }
- }
- ]
- },
- "id": "g8FQT14xl_X"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssueCommentResponder",
- "version": "1.0",
- "config": {
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "commentContains",
- "parameters": {
- "commentPattern": "\\/feedback",
- "isRegex": true
- }
- },
- {
- "operator": "or",
- "operands": [
- {
- "name": "activitySenderHasPermissions",
- "parameters": {
- "permissions": "admin"
- }
- },
- {
- "name": "activitySenderHasPermissions",
- "parameters": {
- "permissions": "write"
- }
- }
- ]
- }
- ]
- },
- "eventType": "issue",
- "eventNames": [
- "issue_comment"
- ],
- "taskName": "Ask for Feedback Hub link via comment trigger",
- "actions": [
- {
- "name": "addReply",
- "parameters": {
- "comment": "@${issueAuthor},<br /><br />\nPlease send us feedback with the Feedback Hub [Windows]+[f] with this issue and paste the link here so we can more easily find your crash information on the back end?<br /><br />\nPlease use \"Apps\" and \"Windows Package Manager\" for the Category. <br /><br />\nThe link on the bottom of the feedback report will provide the URL to paste in this Issue to share with us."
- }
- },
- {
- "name": "addLabel",
- "parameters": {
- "label": "Needs-Author-Feedback"
- }
- }
- ]
- },
- "id": "zjfzjUSEHlA"
- },
- {
- "taskType": "trigger",
- "capabilityId": "EmailCleanser",
- "subCapability": "EmailCleanser",
- "version": "1.0",
- "config": {
- "taskName": "Scrub-a-dub-dub email replies"
- },
- "id": "XR_nBSMQori"
- },
- {
- "taskType": "trigger",
- "capabilityId": "LabelSync",
- "subCapability": "LabelSync",
- "version": "1.0",
- "config": {
- "taskName": "Syncy dinky doo",
- "labelPatterns": [
- {
- "pattern": "Issue-"
- },
- {
- "pattern": "Area-"
- },
- {
- "pattern": "Priority-"
- },
- {
- "pattern": "Product-"
- },
- {
- "pattern": "Severity-"
- },
- {
- "pattern": "Impact-"
- }
- ]
- },
- "id": "2bf6VuOFJf1"
- },
- {
- "taskType": "trigger",
- "capabilityId": "IssueResponder",
- "subCapability": "IssuesOnlyResponder",
- "version": "1.0",
- "id": "JPpDQGI87Qbs7wzZdSeRl",
- "config": {
- "conditions": {
- "operator": "and",
- "operands": [
- {
- "name": "isAction",
- "parameters": {
- "action": "closed"
- }
- }
- ]
- },
- "eventType": "issue",
- "eventNames": [
- "issues",
- "project_card"
- ],
- "taskName": "Remove Needs-Triage when Issues are closed",
- "actions": [
- {
- "name": "removeLabel",
- "parameters": {
- "label": "Needs-Triage"
- }
- }
- ]
- }
- }
- ],
- "userGroups": []
-}
diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml
@@ -0,0 +1,398 @@
+id:
+name: GitOps.PullRequestIssueManagement
+description: GitOps.PullRequestIssueManagement primitive
+owner:
+resource: repository
+disabled: false
+where:
+configuration:
+ resourceManagementConfiguration:
+ scheduledSearches:
+ - description:
+ frequencies:
+ - hourly:
+ hour: 3
+ filters:
+ - isIssue
+ - isOpen
+ - hasLabel:
+ label: Needs-Author-Feedback
+ - hasLabel:
+ label: No-Recent-Activity
+ - noActivitySince:
+ days: 7
+ - isNotLabeledWith:
+ label: Issue-Feature
+ - hasLabel:
+ label: Blocking-Issue
+ actions:
+ - closeIssue
+ - description:
+ frequencies:
+ - hourly:
+ hour: 3
+ filters:
+ - isIssue
+ - isOpen
+ - hasLabel:
+ label: Needs-Author-Feedback
+ - noActivitySince:
+ days: 7
+ - isNotLabeledWith:
+ label: No-Recent-Activity
+ actions:
+ - addLabel:
+ label: No-Recent-Activity
+ - addReply:
+ reply: '@${issueAuthor} this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.'
+ - description:
+ frequencies:
+ - hourly:
+ hour: 3
+ filters:
+ - isIssue
+ - isOpen
+ - hasLabel:
+ label: Resolution-Duplicate
+ - noActivitySince:
+ days: 1
+ actions:
+ - addReply:
+ reply: '@${issueAuthor} this issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.'
+ - closeIssue
+ - description:
+ frequencies:
+ - hourly:
+ hour: 3
+ filters:
+ - isPullRequest
+ - isOpen
+ - hasLabel:
+ label: Needs-Author-Feedback
+ - hasLabel:
+ label: No-Recent-Activity
+ - noActivitySince:
+ days: 7
+ actions:
+ - closeIssue
+ - description:
+ frequencies:
+ - hourly:
+ hour: 3
+ filters:
+ - isPullRequest
+ - isOpen
+ - hasLabel:
+ label: Needs-Author-Feedback
+ - noActivitySince:
+ days: 7
+ - isNotLabeledWith:
+ label: No-Recent-Activity
+ actions:
+ - addLabel:
+ label: No-Recent-Activity
+ - addReply:
+ reply: '@${issueAuthor} this pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.'
+ eventResponderTasks:
+ - if:
+ - payloadType: Issues
+ - or:
+ - and:
+ - isAction:
+ action: Opened
+ then:
+ - addLabel:
+ label: Needs-Triage
+ description:
+ - if:
+ - payloadType: Issue_Comment
+ - isAction:
+ action: Created
+ - isActivitySender:
+ issueAuthor: True
+ - hasLabel:
+ label: Needs-Author-Feedback
+ then:
+ - addLabel:
+ label: Needs-Attention
+ - removeLabel:
+ label: Needs-Author-Feedback
+ - removeLabel:
+ label: No-Recent-Activity
+ description:
+ - if:
+ - payloadType: Issues
+ - not:
+ isAction:
+ action: Closed
+ - hasLabel:
+ label: No-Recent-Activity
+ then:
+ - removeLabel:
+ label: No-Recent-Activity
+ description:
+ - if:
+ - payloadType: Issue_Comment
+ - hasLabel:
+ label: No-Recent-Activity
+ then:
+ - removeLabel:
+ label: No-Recent-Activity
+ description:
+ - if:
+ - payloadType: Pull_Request
+ - isAction:
+ action: Opened
+ then:
+ - addCodeFlowLink
+ description:
+ - if:
+ - payloadType: Pull_Request_Review
+ - isAction:
+ action: Submitted
+ - isReviewState:
+ reviewState: Changes_requested
+ then:
+ - addLabel:
+ label: Needs-Author-Feedback
+ description:
+ - if:
+ - payloadType: Pull_Request
+ - isActivitySender:
+ issueAuthor: True
+ - not:
+ isAction:
+ action: Closed
+ - hasLabel:
+ label: Needs-Author-Feedback
+ then:
+ - removeLabel:
+ label: Needs-Author-Feedback
+ description:
+ - if:
+ - payloadType: Issue_Comment
+ - isActivitySender:
+ issueAuthor: True
+ - hasLabel:
+ label: Needs-Author-Feedback
+ then:
+ - removeLabel:
+ label: Needs-Author-Feedback
+ description:
+ - if:
+ - payloadType: Pull_Request_Review
+ - isActivitySender:
+ issueAuthor: True
+ - hasLabel:
+ label: Needs-Author-Feedback
+ then:
+ - removeLabel:
+ label: Needs-Author-Feedback
+ description:
+ - if:
+ - payloadType: Pull_Request
+ - not:
+ isAction:
+ action: Closed
+ - hasLabel:
+ label: No-Recent-Activity
+ then:
+ - removeLabel:
+ label: No-Recent-Activity
+ description:
+ - if:
+ - payloadType: Issue_Comment
+ - hasLabel:
+ label: No-Recent-Activity
+ then:
+ - removeLabel:
+ label: No-Recent-Activity
+ description:
+ - if:
+ - payloadType: Pull_Request_Review
+ - hasLabel:
+ label: No-Recent-Activity
+ then:
+ - removeLabel:
+ label: No-Recent-Activity
+ description:
+ - if:
+ - payloadType: Pull_Request
+ - hasLabel:
+ label: AutoMerge
+ then:
+ - enableAutoMerge:
+ mergeMethod: Squash
+ description:
+ - if:
+ - payloadType: Pull_Request
+ - labelRemoved:
+ label: AutoMerge
+ then:
+ - disableAutoMerge
+ description:
+ - if:
+ - payloadType: Pull_Request
+ then:
+ - inPrLabel:
+ label: In-PR
+ description:
+ - if:
+ - payloadType: Issues
+ - or:
+ - titleContains:
+ pattern: ^\s*Bug Report \(IF I DO NOT CHANGE THIS THE ISSUE WILL BE AUTO-CLOSED\)\s*$
+ isRegex: True
+ - titleContains:
+ pattern: ^\s*Bug Report\s*$
+ isRegex: True
+ - or:
+ - isAction:
+ action: Opened
+ - isAction:
+ action: Reopened
+ - not:
+ activitySenderHasPermission:
+ permission: Write
+ - not:
+ activitySenderHasPermission:
+ permission: Admin
+ then:
+ - closeIssue
+ - addLabel:
+ label: Needs-Author-Feedback
+ - addReply:
+ reply: "@${issueAuthor} thanks for attempting to open an issue. Unfortunately, your title wasn't changed from the original template which makes it very hard for us to track and triage. You are welcome to fix up the title and try again with a new issue."
+ description:
+ - if:
+ - payloadType: Issues
+ - or:
+ - isAction:
+ action: Opened
+ - isAction:
+ action: Reopened
+ - or:
+ - not:
+ bodyContains:
+ pattern: .+
+ isRegex: True
+ then:
+ - closeIssue
+ - addLabel:
+ label: Needs-Author-Feedback
+ - addReply:
+ reply: "@${issueAuthor} thanks for attempting to open an issue. Unfortunately, you didn't write anything in the body which makes it impossible to understand your concern. You are welcome to fix up the issue and try again by opening another issue with the body filled out. "
+ description:
+ - if:
+ - payloadType: Issues
+ - hasLabel:
+ label: In-PR
+ - hasLabel:
+ label: Help Wanted
+ - isLabeled
+ then:
+ - removeLabel:
+ label: Help Wanted
+ description:
+ - if:
+ - payloadType: Issue_Comment
+ - commentContains:
+ pattern: Duplicate\s+of\s+\#?\s*\d+
+ isRegex: True
+ - or:
+ - activitySenderHasPermission:
+ permission: Admin
+ - activitySenderHasPermission:
+ permission: Write
+ - isActivitySender:
+ user: ImJoakim
+ issueAuthor: False
+ - isActivitySender:
+ user: ItzLevvie
+ issueAuthor: False
+ - isActivitySender:
+ user: jedieaston
+ issueAuthor: False
+ - isActivitySender:
+ user: KaranKad
+ issueAuthor: False
+ - isActivitySender:
+ user: OfficialEsco
+ issueAuthor: False
+ - isActivitySender:
+ user: Trenly
+ issueAuthor: False
+ - isActivitySender:
+ user: quhxl
+ issueAuthor: False
+ then:
+ - addReply:
+ reply: "@${issueAuthor} we've identified this Issue as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the referenced Issue. Thanks for your report! Be sure to add your \U0001F44D to the other issue to help raise the priority."
+ - closeIssue
+ - removeLabel:
+ label: Needs-Triage
+ - addLabel:
+ label: Resolution-Duplicate
+ - removeLabel:
+ label: Needs-Attention
+ - removeLabel:
+ label: Needs-Author-Feedback
+ - removeLabel:
+ label: Needs-Feedback-Hub
+ - removeLabel:
+ label: Needs-Repro
+ description:
+ - if:
+ - payloadType: Issue_Comment
+ - commentContains:
+ pattern: '\/feedback'
+ isRegex: True
+ - or:
+ - activitySenderHasPermission:
+ permission: Admin
+ - activitySenderHasPermission:
+ permission: Write
+ then:
+ - addReply:
+ reply: >-
+ @${issueAuthor},<br /><br />
+
+ Please send us feedback with the Feedback Hub [Windows]+[f] with this issue and paste the link here so we can more easily find your crash information on the back end?<br /><br />
+
+ Please use "Apps" and "Windows Package Manager" for the Category. <br /><br />
+
+ The link on the bottom of the feedback report will provide the URL to paste in this Issue to share with us.
+ - addLabel:
+ label: Needs-Author-Feedback
+ description:
+ - if:
+ - payloadType: Issue_Comment
+ then:
+ - cleanEmailReply
+ description:
+ - if:
+ - payloadType: Pull_Request
+ then:
+ - labelSync:
+ pattern: Issue-
+ - labelSync:
+ pattern: Area-
+ - labelSync:
+ pattern: Priority-
+ - labelSync:
+ pattern: Product-
+ - labelSync:
+ pattern: Severity-
+ - labelSync:
+ pattern: Impact-
+ description:
+ - if:
+ - payloadType: Issues
+ - isAction:
+ action: Closed
+ then:
+ - removeLabel:
+ label: Needs-Triage
+ description:
+onFailure:
+onSuccess: