diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100644 index 4d8372e7c8a..00000000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,3600 +0,0 @@ -{ - "version": "1.0", - "tasks": [ - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "config": { - "taskName": "Add needs triage and bug label to new issues", - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "opened" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isPartOfProject", - "parameters": {} - } - ] - }, - { - "operator": "not", - "operands": [ - { - "name": "isAssignedToSomeone", - "parameters": {} - } - ] - }, - { - "name": "hasLabel", - "parameters": { - "label": "bug :bug:", - "action": "labeled" - } - } - ] - }, - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "Hello ${issueAuthor}, thank you for opening an issue with us! \n\nI have automatically added a \"needs triage\" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌" - } - } - ], - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ] - }, - "id": "Ug8NTF6U0" - }, - { - "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 :memo:" - } - }, - { - "name": "isOpen", - "parameters": {} - } - ] - }, - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "needs attention :wave:" - } - }, - { - "name": "removeLabel", - "parameters": { - "label": "needs author feedback :memo:" - } - } - ], - "eventType": "issue", - "eventNames": [ - "issue_comment" - ] - }, - "id": "xMZo45Bhio" - }, - { - "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 :chart_with_downwards_trend:" - } - }, - { - "name": "isAction", - "parameters": { - "action": "edited" - } - } - ] - }, - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - } - ], - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ] - }, - "id": "C-2hdyxtTy" - }, - { - "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 :chart_with_downwards_trend:" - } - } - ] - }, - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - } - ], - "eventType": "issue", - "eventNames": [ - "issue_comment" - ] - }, - "id": "np5y4Gnerx" - }, - { - "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 :memo:" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 30 - } - } - ], - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "${issueAuthor} This issue has been automatically closed because it was marked as requiring author feedback but has not had any activity for over **45 days**." - } - }, - { - "name": "closeIssue", - "parameters": {} - } - ] - }, - "id": "Q4RXkBuc7S" - }, - { - "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 :memo:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 15 - } - }, - { - "name": "noLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - } - ], - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - }, - { - "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 **15 days**. It will be closed if no further activity occurs **within 30 days of this comment**." - } - } - ] - }, - "id": "7RFazEvfUl" - }, - { - "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": "duplicate :busts_in_silhouette:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 1 - } - } - ], - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "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": "p6t3pVDqNP" - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "RKZiW8qGn", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "opened" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isPartOfProject", - "parameters": {} - } - ] - }, - { - "operator": "not", - "operands": [ - { - "name": "isAssignedToSomeone", - "parameters": {} - } - ] - }, - { - "name": "hasLabel", - "parameters": { - "titlePattern": "Feature", - "label": "feature request :mailbox_with_mail:" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Add Voting to new Feature Requests", - "actions": [ - { - "name": "addReactionToIssue", - "parameters": { - "reaction": "+1" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "Hello, '${issueAuthor}! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future!" - } - } - ] - } - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "id": "UKDU95B_x", - "config": { - "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": "isOpen", - "parameters": {} - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 15 - } - } - ], - "taskName": "Issue needs attention ", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "needs attention :wave:" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "This issue has been marked as \"needs attention 👋\" due to no activity for **15 days**. Please triage the issue so the fix can be established. " - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestResponder", - "version": "1.0", - "id": "aA0KsNooK", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "opened" - } - } - ] - }, - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ], - "taskName": "Opened Pull Request", - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "Thanks ${issueAuthor} for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌" - } - }, - { - "name": "requestReviewer", - "parameters": { - "reviewer": "michael-hawker" - } - }, - { - "name": "requestReviewer", - "parameters": { - "reviewer": "azchohfi" - } - }, - { - "name": "requestReviewer", - "parameters": { - "reviewer": "Kyaa-dost" - } - }, - { - "name": "requestReviewer", - "parameters": { - "reviewer": "RosarioPulella" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "InPrLabel", - "subCapability": "InPrLabel", - "version": "1.0", - "id": "xlu4qgLuj", - "config": { - "label_inPr": "In-PR :rocket:", - "fixedLabelEnabled": true, - "label_fixed": "Completed :fire:", - "taskName": "Issues labeled as \"In-PR\" and \"Fixed\" when the merge is in-progress and completes " - } - }, - { - "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 :memo:" - } - } - ], - "eventType": "pull_request", - "eventNames": [ - "pull_request_review" - ] - }, - "id": "FYIoG0Npxh" - }, - { - "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 :memo:" - } - } - ] - }, - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "needs author feedback :memo:" - } - }, - { - "name": "addLabel", - "parameters": { - "groupId": "5dd873e390bf2e113c0e8866", - "skipOpener": true, - "label": "needs attention :wave:" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "This PR has been marked as \"needs attention 👋\" and awaiting a response from the team. " - } - } - ], - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ] - }, - "id": "oW7hAFZ8gs" - }, - { - "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 :chart_with_downwards_trend:" - } - } - ] - }, - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - } - ], - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ] - }, - "id": "-uRU3429nG" - }, - { - "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 :chart_with_downwards_trend:" - } - } - ] - }, - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - } - ], - "eventType": "pull_request", - "eventNames": [ - "issue_comment" - ] - }, - "id": "sM14ilohf5" - }, - { - "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 :chart_with_downwards_trend:" - } - } - ] - }, - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - } - ], - "eventType": "pull_request", - "eventNames": [ - "pull_request_review" - ] - }, - "id": "DfEiarIuNP" - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "taskName": "Close Stale pull requests", - "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": "isPr", - "parameters": {} - }, - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs author feedback :memo:" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 45 - } - } - ], - "actions": [ - { - "name": "closeIssue", - "parameters": {} - } - ] - }, - "id": "v7Xw5uy5r2" - }, - { - "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 :memo:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 15 - } - }, - { - "name": "noLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - } - ], - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "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 **15 days**. It will be closed if no further activity occurs **within 30 days of this comment**." - } - } - ] - }, - "id": "m0PTbzkc0_" - }, - { - "taskType": "trigger", - "capabilityId": "AutoMerge", - "subCapability": "AutoMerge", - "version": "1.0", - "config": { - "taskName": "Automatically merge pull requests", - "label": "auto merge :zap:", - "silentMode": false, - "minMinutesOpen": "480", - "mergeType": "merge", - "allowAutoMergeInstructionsWithoutLabel": false, - "deleteBranches": true, - "enforceDMPAsStatus": true, - "requireAllStatuses": false, - "requireAllStatuses_exemptList": [], - "removeLabelOnPush": true, - "conditionalMergeTypes": [], - "requireSpecificCheckRuns": false, - "usePrDescriptionAsCommitMessage": true, - "requireSpecificCheckRunsList": [ - "Toolkit-CI", - "WIP", - "license/cla" - ] - }, - "id": "NWRMh_TRrV", - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "operator": "not", - "operands": [ - { - "name": "isOpen", - "parameters": {} - } - ] - }, - { - "name": "isAction", - "parameters": { - "action": "created" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs author feedback :memo:" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "noActivitySince", - "parameters": { - "days": 7 - } - } - ] - }, - { - "operator": "not", - "operands": [ - { - "name": "isCloseAndComment", - "parameters": {} - } - ] - }, - { - "name": "isActivitySender", - "parameters": { - "user": { - "type": "author" - } - } - }, - { - "operator": "not", - "operands": [ - { - "name": "activitySenderHasPermissions", - "parameters": { - "permissions": "none" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issue_comment" - ], - "taskName": "For issues closed due to inactivity, re-open an issue if issue author posts a reply within 7 days.", - "actions": [ - { - "name": "reopenIssue", - "parameters": {} - }, - { - "name": "removeLabel", - "parameters": { - "label": "no-recent-activity :chart_with_downwards_trend:" - } - }, - { - "name": "removeLabel", - "parameters": { - "label": "needs author feedback :memo:" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "needs attention :wave:" - } - } - ] - }, - "id": "_q3fIc02A" - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "created" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isOpen", - "parameters": {} - } - ] - }, - { - "name": "activitySenderHasPermissions", - "parameters": { - "permissions": "none" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 7 - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isCloseAndComment", - "parameters": {} - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issue_comment" - ], - "taskName": "For issues closed with no activity over 7 days, ask non-contributor to consider opening a new issue instead.", - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you!" - } - } - ] - }, - "id": "-ChxjXKlVc" - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "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": "isClosed", - "parameters": {} - }, - { - "name": "noActivitySince", - "parameters": { - "days": 60 - } - }, - { - "name": "isUnlocked", - "parameters": {} - }, - { - "name": "isIssue", - "parameters": {} - } - ], - "taskName": "Lock issues closed without activity for over 60 days", - "actions": [ - { - "name": "lockIssue", - "parameters": { - "reason": "resolved" - } - } - ] - }, - "id": "wWxYItL3hl" - }, - { - "taskType": "trigger", - "capabilityId": "EmailCleanser", - "subCapability": "EmailCleanser", - "version": "1.0", - "id": "vlRSU7Suz", - "config": { - "taskName": "Remove Quoted Email Content " - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "NEOXUiMV8", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "labelAdded", - "parameters": { - "label": "In-PR :rocket:" - } - }, - { - "name": "isPartOfProject", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "isAssignedToSomeone", - "parameters": {} - }, - { - "name": "isPartOfProject", - "parameters": {} - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Remove needs triage label", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "needs triage :mag:" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "-1mJNNyj7", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "opened" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isPartOfProject", - "parameters": {} - } - ] - }, - { - "operator": "not", - "operands": [ - { - "name": "isAssignedToSomeone", - "parameters": {} - } - ] - }, - { - "name": "hasLabel", - "parameters": { - "label": "question :grey_question:" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Add Question Label ", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "Hello ${issueAuthor}, thank you for your interest in Windows Community Toolkit!\n\nI have automatically added a \"needs triage\" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible.. Other community members may also answer the question and provide feedback 🙌" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "DCNi3QnmT", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "opened" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isPartOfProject", - "parameters": {} - } - ] - }, - { - "operator": "not", - "operands": [ - { - "name": "isAssignedToSomeone", - "parameters": {} - } - ] - }, - { - "operator": "not", - "operands": [ - { - "name": "isLabeled", - "parameters": {} - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Add \"needs triage\" label to empty template", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "Hello ${issueAuthor}, thank you for opening an issue with us! \n\nI have automatically added a \"needs triage\" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "2oQJkyLzq", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "addedToProjectColumn", - "parameters": { - "label": "for-review :book:", - "projectName": "Bugs 7.1", - "columnName": "In progress" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Technical 7.1", - "columnName": "In progress" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Features 7.1", - "columnName": "In progress" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Samples 7.1", - "columnName": "In progress" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Add \"In progress\" label when moved to In progress column in the project", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "Completed :fire:" - } - }, - { - "name": "removeLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "in progress :construction:" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "dhIp1pFim", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Bugs 7.1", - "columnName": "Done" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Technical 7.1", - "columnName": "Done" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Features 7.1", - "columnName": "Done" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Samples 7.1", - "columnName": "Done" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Add \"Completed\" label when moved to Done column in the project", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "in progress :construction:" - } - }, - { - "name": "removeLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "Completed :fire:" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "xB212GPFx", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Bugs 7.1", - "columnName": "To do" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Technical 7.1", - "columnName": "To do" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Features 7.1", - "columnName": "To do" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Samples 7.1", - "columnName": "To do" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Remove labels when moved to 'To do' column in the project", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "in progress :construction:" - } - }, - { - "name": "removeLabel", - "parameters": { - "label": "Completed :fire:" - } - } - ] - } - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "id": "1TuSEcCua", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 13, - 14, - 15, - 16, - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 1, - "hours": [ - 13, - 14, - 15, - 16, - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 2, - "hours": [ - 13, - 14, - 15, - 16, - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 3, - "hours": [ - 13, - 14, - 15, - 16, - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 4, - "hours": [ - 13, - 14, - 15, - 16, - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 5, - "hours": [ - 13, - 14, - 15, - 16, - 17 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 6, - "hours": [ - 13, - 14, - 15, - 16, - 17 - ], - "timezoneOffset": -7 - } - ], - "searchTerms": [ - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "by design :art:" - } - }, - { - "name": "created", - "parameters": { - "operator": "<", - "days": 1 - } - } - ], - "taskName": "Test", - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "Test purposes only" - } - } - ] - }, - "disabled": true - }, - { - "taskType": "trigger", - "capabilityId": "ReleaseAnnouncement", - "subCapability": "ReleaseAnnouncement", - "version": "1.0", - "id": "uFM0vTFhb", - "config": { - "taskName": "Announce a release regarding fix", - "prReply": ":tada::tada:`${pkgName} ${version}` has been released which incorporates this pull request:tada::tada:\n\n\n* [Release Notes](https://github.com/${owner}/${repo}/releases/tag/${version})\n", - "issueReply": ":tada::tada:This issue was addressed in #${prNumber}, which has been released as `${pkgName} ${version}`:tada::tada:\n\n* [Release Notes](https://github.com/${owner}/${repo}/releases/tag/${version})\n", - "referencedPrsRegex": "\\#([0-9]+)\\s*\\)", - "conditionalPrReplies": [], - "packageRegex": "(v.*)", - "packageVersionGroup": 1 - }, - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "rk_usYpO0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "operator": "or", - "operands": [ - { - "name": "hasLabel", - "parameters": { - "label": "bug :bug:" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "question :grey_question:" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "feature request :mailbox_with_mail:" - } - } - ] - }, - { - "operator": "or", - "operands": [ - { - "name": "isActivitySender", - "parameters": { - "user": "Kyaa-dost" - } - }, - { - "name": "isActivitySender", - "parameters": { - "user": "michael-hawker" - } - }, - { - "name": "isActivitySender", - "parameters": { - "user": "azchohfi" - } - }, - { - "name": "isActivitySender", - "parameters": { - "user": "RosarioPulella" - } - } - ] - }, - { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "reopened" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isPartOfProject", - "parameters": {} - } - ] - }, - { - "operator": "not", - "operands": [ - { - "name": "isAssignedToSomeone", - "parameters": {} - } - ] - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Add Need Triage label when opening issue by certain activity sender", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "help wanted :raising_hand:" - } - } - ] - }, - "disabled": true - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestCommentResponder", - "version": "1.0", - "id": "IsGnVmgLb", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "created" - } - }, - { - "operator": "not", - "operands": [ - { - "name": "isActivitySender", - "parameters": { - "user": { - "type": "author" - } - } - } - ] - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs attention :wave:" - } - }, - { - "name": "isOpen", - "parameters": {} - } - ] - }, - "eventType": "pull_request", - "eventNames": [ - "issue_comment" - ], - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "needs attention :wave:" - } - } - ], - "taskName": "Remove Needs Attention label" - } - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "id": "jc1ups-1u", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 0, - 3, - 6, - 9, - 12, - 15, - 18, - 21 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 1, - "hours": [ - 0, - 3, - 6, - 9, - 12, - 15, - 18, - 21 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 2, - "hours": [ - 0, - 3, - 6, - 9, - 12, - 15, - 18, - 21 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 3, - "hours": [ - 0, - 3, - 6, - 9, - 12, - 15, - 18, - 21 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 4, - "hours": [ - 0, - 3, - 6, - 9, - 12, - 15, - 18, - 21 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 5, - "hours": [ - 0, - 3, - 6, - 9, - 12, - 15, - 18, - 21 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 6, - "hours": [ - 0, - 3, - 6, - 9, - 12, - 15, - 18, - 21 - ], - "timezoneOffset": -7 - } - ], - "searchTerms": [ - { - "name": "hasLabel", - "parameters": { - "label": "not an issue :x:" - } - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "noActivitySince", - "parameters": { - "days": 1 - } - } - ], - "taskName": "Close \"Not an issue\" issues", - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "This issue has been marked as being beyond the support scope of Windows Community Toolkit. It will now be closed automatically for house-keeping purposes. " - } - }, - { - "name": "closeIssue", - "parameters": {} - } - ] - } - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "id": "z8n6cOfx_", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 2, - 5, - 8, - 11, - 14, - 17, - 20, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 1, - "hours": [ - 2, - 5, - 8, - 11, - 14, - 17, - 20, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 2, - "hours": [ - 2, - 5, - 8, - 11, - 14, - 17, - 20, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 3, - "hours": [ - 2, - 5, - 8, - 11, - 14, - 17, - 20, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 4, - "hours": [ - 2, - 5, - 8, - 11, - 14, - 17, - 20, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 5, - "hours": [ - 2, - 5, - 8, - 11, - 14, - 17, - 20, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 6, - "hours": [ - 2, - 5, - 8, - 11, - 14, - 17, - 20, - 23 - ], - "timezoneOffset": -7 - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "wontfix :x:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 3 - } - } - ], - "taskName": "Close issues that marked as won't fix", - "actions": [ - { - "name": "closeIssue", - "parameters": {} - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "LabelSync", - "subCapability": "LabelSync", - "version": "1.0", - "id": "zCjqQfQz-", - "config": { - "taskName": "Sync Issues Label to PR's", - "labelPatterns": [ - { - "pattern": "bug" - }, - { - "pattern": "bulb" - }, - { - "pattern": "document" - }, - { - "pattern": "sample" - }, - { - "pattern": "improvements " - }, - { - "pattern": "DataGrid" - }, - { - "pattern": "accessibility " - }, - { - "pattern": "breaking change" - }, - { - "pattern": "controls" - }, - { - "pattern": "markdown" - }, - { - "pattern": "parsers" - }, - { - "pattern": "extensions" - }, - { - "pattern": "nuget" - }, - { - "pattern": "UI" - }, - { - "pattern": "hacktoberfest" - }, - { - "pattern": "fix" - }, - { - "pattern": "priority" - }, - { - "pattern": "feature" - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "pkn6z17_K", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "hasLabel", - "parameters": { - "label": "In-PR :rocket:" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "help wanted :raising_hand:" - } - }, - { - "name": "isLabeled", - "parameters": {} - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Remove Help Wanted label from issues if the PR is created", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "help wanted :raising_hand:" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "QAtzSTPDd", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "hasLabel", - "parameters": { - "label": "In-PR :rocket:" - } - }, - { - "name": "hasLabel", - "parameters": { - "label": "needs triage :mag:" - } - }, - { - "name": "isLabeled", - "parameters": {} - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Remove Need Triage label from issues if the PR is created", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "needs triage :mag:" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestResponder", - "version": "1.0", - "id": "dHVPYmZZR", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isAction", - "parameters": { - "action": "opened" - } - }, - { - "name": "activitySenderHasAssociation", - "parameters": { - "association": "FIRST_TIME_CONTRIBUTOR" - } - } - ] - }, - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ], - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "First Time Contributor :wave:" - } - }, - { - "name": "addReactionToIssue", - "parameters": { - "reaction": "heart" - } - }, - { - "name": "addReactionToIssue", - "parameters": { - "reaction": "hooray" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "${issueAuthor} Welcome to the Windows Community Toolkit 💙💙💙\n\nWe always love to see new contributors joining the community and taking initiatives to contribute and add value to the toolkit 🙌\n\nIf you haven't had a chance to explore our [Contribution Wiki page](https://github.com/windows-toolkit/WindowsCommunityToolkit/wiki) then please feel free to do as it will help you transition smoothly.\n\nOnce again Thank you so much for the contribution and we are certainly looking forward to working with you more in the future 🚀🚀" - } - } - ], - "taskName": "Welcome message to the first time Github Committer when opening a new PR" - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "E8apbGccM", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Bugs 7.1", - "columnName": "" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Features 7.1" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Technical 7.1" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Samples 7.1" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "actions": [ - { - "name": "addMilestone", - "parameters": { - "milestoneName": "7.1" - } - } - ], - "taskName": "Add milestone if the issue is added in the project column (7.1)" - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "fWjQeVQ87", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "removedFromProjectColumn", - "parameters": { - "projectName": "Samples 7.1" - } - }, - { - "name": "removedFromProjectColumn", - "parameters": { - "projectName": "Features 7.1" - } - }, - { - "name": "removedFromProjectColumn", - "parameters": { - "projectName": "Technical 7.1" - } - }, - { - "name": "removedFromProjectColumn", - "parameters": { - "milestoneName": "Technical 7.1", - "projectName": "Technical 7.1" - } - } - ] - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "actions": [ - { - "name": "removeMilestone", - "parameters": {} - } - ], - "taskName": "Remove milestone if the issue is removed from the project column" - }, - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestResponder", - "version": "1.0", - "id": "zyAjzhCuL", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Bugs 7.1" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Features 7.1" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Technical 7.1" - } - }, - { - "name": "addedToProjectColumn", - "parameters": { - "projectName": "Samples 7.1" - } - } - ] - } - ] - }, - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ], - "actions": [ - { - "name": "addMilestone", - "parameters": { - "milestoneName": "7.1" - } - } - ], - "taskName": "Add milestone if the PR is added in the project column (7.1)" - }, - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "PullRequestResponder", - "version": "1.0", - "id": "z5rYJXIDt", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "operator": "or", - "operands": [ - { - "name": "removedFromProjectColumn", - "parameters": { - "projectName": "Samples 7.1" - } - }, - { - "name": "removedFromProjectColumn", - "parameters": { - "projectName": "Features 7.1" - } - }, - { - "name": "removedFromProjectColumn", - "parameters": { - "projectName": "Features 7.1" - } - }, - { - "name": "removedFromProjectColumn", - "parameters": { - "projectName": "Technical 7.1" - } - } - ] - } - ] - }, - "eventType": "pull_request", - "eventNames": [ - "pull_request", - "issues", - "project_card" - ], - "taskName": "Remove milestone if the PR is removed from the project column", - "actions": [ - { - "name": "removeMilestone", - "parameters": {} - } - ] - }, - "disabled": false - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "-NV3BbbFn", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "labelAdded", - "parameters": { - "label": "In-PR :rocket:" - } - }, - { - "name": "isInProjectColumn", - "parameters": { - "projectName": "Bugs 7.1", - "columnName": "To do" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "actions": [ - { - "name": "moveToProjectColumn", - "parameters": { - "projectName": "Bugs 7.1", - "columnName": "In progress" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "in progress :construction:" - } - } - ], - "taskName": "Move to In-progress column in the project once In-PR label applied" - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "-wiOMu4Ut", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "labelAdded", - "parameters": { - "label": "In-PR :rocket:" - } - }, - { - "name": "isInProjectColumn", - "parameters": { - "projectName": "Features 7.1", - "columnName": "To do" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Move to In-progress column in the project once In-PR label applied", - "actions": [ - { - "name": "moveToProjectColumn", - "parameters": { - "projectName": "Features 7.1", - "columnName": "In progress" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "in progress :construction:" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "rgqvFjC3u", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "labelAdded", - "parameters": { - "label": "In-PR :rocket:" - } - }, - { - "name": "isInProjectColumn", - "parameters": { - "projectName": "Technical 7.1", - "columnName": "To do" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Move to In-progress column in the project once In-PR label applied", - "actions": [ - { - "name": "moveToProjectColumn", - "parameters": { - "projectName": "Technical 7.1", - "columnName": "In progress" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "in progress :construction:" - } - } - ] - } - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssuesOnlyResponder", - "version": "1.0", - "id": "P2PuVQ-EO", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "labelAdded", - "parameters": { - "label": "In-PR :rocket:" - } - }, - { - "name": "isInProjectColumn", - "parameters": { - "projectName": "Samples 7.1", - "columnName": "To do" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issues", - "project_card" - ], - "taskName": "Move to In-progress column in the project once In-PR label applied", - "actions": [ - { - "name": "moveToProjectColumn", - "parameters": { - "projectName": "Samples 7.1", - "columnName": "In progress" - } - }, - { - "name": "addLabel", - "parameters": { - "label": "in progress :construction:" - } - } - ] - } - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "id": "Zznnk72Pm", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 5, - 11, - 17, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 1, - "hours": [ - 5, - 11, - 17, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 2, - "hours": [ - 5, - 11, - 17, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 3, - "hours": [ - 5, - 11, - 17, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 4, - "hours": [ - 5, - 11, - 17, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 5, - "hours": [ - 5, - 11, - 17, - 23 - ], - "timezoneOffset": -7 - }, - { - "weekDay": 6, - "hours": [ - 5, - 11, - 17, - 23 - ], - "timezoneOffset": -7 - } - ], - "searchTerms": [ - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "DataGrid :capital_abcd:" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 45 - } - } - ], - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "Thanks ${issueAuthor} for patiently waiting while the team is still investigating the issue.\n\n@RBrid can we please have an update on this issue? Thanks " - } - } - ], - "taskName": "DataGrid notification to the team" - }, - "disabled": true - } - ], - "userGroups": [] -} diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 00000000000..4ca0d985a90 --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,370 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: Close stale issues + frequencies: + - hourly: + hour: 3 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'needs author feedback :memo:' + - hasLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + - noActivitySince: + days: 30 + actions: + - addReply: + reply: ${issueAuthor} This issue has been automatically closed because it was marked as requiring author feedback but has not had any activity for over **45 days**. + - closeIssue + - description: Add no recent activity label to issues + frequencies: + - hourly: + hour: 3 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'needs author feedback :memo:' + - noActivitySince: + days: 15 + - isNotLabeledWith: + label: 'no-recent-activity :chart_with_downwards_trend:' + actions: + - addLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + - 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 **15 days**. It will be closed if no further activity occurs **within 30 days of this comment**. + - description: Close duplicate issues + frequencies: + - hourly: + hour: 3 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'duplicate :busts_in_silhouette:' + - noActivitySince: + days: 1 + actions: + - addReply: + reply: 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: 'Issue needs attention ' + frequencies: + - hourly: + hour: 3 + filters: + - isOpen + - isIssue + - hasLabel: + label: 'needs triage :mag:' + - noActivitySince: + days: 15 + actions: + - addLabel: + label: 'needs attention :wave:' + - addReply: + reply: "This issue has been marked as \"needs attention \U0001F44B\" due to no activity for **15 days**. Please triage the issue so the fix can be established. " + - description: Close Stale pull requests + frequencies: + - hourly: + hour: 3 + filters: + - isPullRequest + - isOpen + - hasLabel: + label: 'needs author feedback :memo:' + - hasLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + - noActivitySince: + days: 45 + actions: + - closeIssue + - description: Add no recent activity label to pull requests + frequencies: + - hourly: + hour: 3 + filters: + - isPullRequest + - isOpen + - hasLabel: + label: 'needs author feedback :memo:' + - noActivitySince: + days: 15 + - isNotLabeledWith: + label: 'no-recent-activity :chart_with_downwards_trend:' + actions: + - addLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + - addReply: + reply: 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 **15 days**. It will be closed if no further activity occurs **within 30 days of this comment**. + - description: Close "Not an issue" issues + frequencies: + - hourly: + hour: 3 + filters: + - hasLabel: + label: 'not an issue :x:' + - isIssue + - isOpen + - noActivitySince: + days: 1 + actions: + - addReply: + reply: 'This issue has been marked as being beyond the support scope of Windows Community Toolkit. It will now be closed automatically for house-keeping purposes. ' + - closeIssue + - description: Close issues that marked as won't fix + frequencies: + - hourly: + hour: 3 + filters: + - isOpen + - isIssue + - hasLabel: + label: 'wontfix :x:' + - noActivitySince: + days: 3 + actions: + - closeIssue + eventResponderTasks: + - if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isActivitySender: + issueAuthor: True + - hasLabel: + label: 'needs author feedback :memo:' + - isOpen + then: + - addLabel: + label: 'needs attention :wave:' + - removeLabel: + label: 'needs author feedback :memo:' + description: Replace needs author feedback label with needs attention label when the author comments on an issue + - if: + - payloadType: Issues + - not: + isAction: + action: Closed + - hasLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + - isAction: + action: Edited + then: + - removeLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + description: Remove no recent activity label from issues + - if: + - payloadType: Issue_Comment + - hasLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + then: + - removeLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + description: Remove no recent activity label when an issue is commented on + - if: + - payloadType: Pull_Request + - isAction: + action: Opened + then: + - addReply: + reply: "Thanks ${issueAuthor} for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request \U0001F64C" + - requestReview: + reviewer: michael-hawker + - requestReview: + reviewer: azchohfi + - requestReview: + reviewer: Kyaa-dost + - requestReview: + reviewer: RosarioPulella + description: Opened Pull Request + - if: + - payloadType: Pull_Request + then: + - inPrLabel: + label: 'In-PR :rocket:' + description: 'Issues labeled as "In-PR" and "Fixed" when the merge is in-progress and completes ' + - if: + - payloadType: Pull_Request_Review + - isAction: + action: Submitted + - isReviewState: + reviewState: Changes_requested + then: + - addLabel: + label: 'needs author feedback :memo:' + description: Add "needs author feedback" label to pull requests when changes are requested + - if: + - payloadType: Pull_Request + - isActivitySender: + issueAuthor: True + - not: + isAction: + action: Closed + - hasLabel: + label: 'needs author feedback :memo:' + then: + - removeLabel: + label: 'needs author feedback :memo:' + - addLabel: + label: 'needs attention :wave:' + - addReply: + reply: "This PR has been marked as \"needs attention \U0001F44B\" and awaiting a response from the team. " + description: Remove needs author feedback label when the author responds to a pull request + - if: + - payloadType: Pull_Request + - not: + isAction: + action: Closed + - hasLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + then: + - removeLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + description: Remove no recent activity label from pull requests + - if: + - payloadType: Issue_Comment + - hasLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + then: + - removeLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + description: Remove no recent activity label when a pull request is commented on + - if: + - payloadType: Pull_Request_Review + - hasLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + then: + - removeLabel: + label: 'no-recent-activity :chart_with_downwards_trend:' + description: Remove no recent activity label when a pull request is reviewed + - if: + - payloadType: Pull_Request + - hasLabel: + label: 'auto merge :zap:' + then: + - enableAutoMerge: + mergeMethod: Merge + description: Automatically merge pull requests + - if: + - payloadType: Pull_Request + - labelRemoved: + label: 'auto merge :zap:' + then: + - disableAutoMerge + description: Automatically merge pull requests + - if: + - payloadType: Issue_Comment + then: + - cleanEmailReply + description: 'Remove Quoted Email Content ' + - if: + - payloadType: Issue_Comment + - isAction: + action: Created + - not: + isActivitySender: + issueAuthor: True + - hasLabel: + label: 'needs attention :wave:' + - isOpen + then: + - removeLabel: + label: 'needs attention :wave:' + description: Remove Needs Attention label + - if: + - payloadType: Pull_Request + then: + - labelSync: + pattern: bug + - labelSync: + pattern: bulb + - labelSync: + pattern: document + - labelSync: + pattern: sample + - labelSync: + pattern: 'improvements ' + - labelSync: + pattern: DataGrid + - labelSync: + pattern: 'accessibility ' + - labelSync: + pattern: breaking change + - labelSync: + pattern: controls + - labelSync: + pattern: markdown + - labelSync: + pattern: parsers + - labelSync: + pattern: extensions + - labelSync: + pattern: nuget + - labelSync: + pattern: UI + - labelSync: + pattern: hacktoberfest + - labelSync: + pattern: fix + - labelSync: + pattern: priority + - labelSync: + pattern: feature + description: Sync Issues Label to PR's + - if: + - payloadType: Issues + - hasLabel: + label: 'In-PR :rocket:' + - hasLabel: + label: 'help wanted :raising_hand:' + - isLabeled + then: + - removeLabel: + label: 'help wanted :raising_hand:' + description: Remove Help Wanted label from issues if the PR is created + - if: + - payloadType: Issues + - hasLabel: + label: 'In-PR :rocket:' + - hasLabel: + label: 'needs triage :mag:' + - isLabeled + then: + - removeLabel: + label: 'needs triage :mag:' + description: Remove Need Triage label from issues if the PR is created + - if: + - payloadType: Pull_Request + - isAction: + action: Opened + - activitySenderHasAssociation: + association: FirstTimeContributor + then: + - addLabel: + label: 'First Time Contributor :wave:' + - addReply: + reply: >- + ${issueAuthor} Welcome to the Windows Community Toolkit 💙💙💙 + + + We always love to see new contributors joining the community and taking initiatives to contribute and add value to the toolkit 🙌 + + + If you haven't had a chance to explore our [Contribution Wiki page](https://github.com/windows-toolkit/WindowsCommunityToolkit/wiki) then please feel free to do as it will help you transition smoothly. + + + Once again Thank you so much for the contribution and we are certainly looking forward to working with you more in the future 🚀🚀 + description: Welcome message to the first time Github Committer when opening a new PR +onFailure: +onSuccess: