From 85db36a985be3fea70c23b5fb751e4011bc9233e Mon Sep 17 00:00:00 2001 From: Kaleb Luedtke Date: Fri, 3 Feb 2023 19:32:54 -0600 Subject: [PATCH] Change trigger for labels to [Policy] (#95557) --- .github/fabricbot.json | 22 +++++++++++----------- Moderation.md | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index 19c52a308ec..57b62a4eb91 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -1468,7 +1468,7 @@ "parameters": { "bodyPattern": "/block", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[bB]locking[\\s-][iI]ssue" + "commentPattern": "\\[[Pp]olicy\\]\\s+[bB]locking[\\s-][iI]ssue" } }, { @@ -1585,7 +1585,7 @@ "parameters": { "bodyPattern": "/block", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[bB]locking[\\s-][iI]ssue" + "commentPattern": "\\[[Pp]olicy\\]\\s+[bB]locking[\\s-][iI]ssue" } }, { @@ -1696,7 +1696,7 @@ "parameters": { "bodyPattern": "/dep", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[dD]ependencies" + "commentPattern": "\\[[Pp]olicy\\]\\s+[dD]ependencies" } }, { @@ -1819,7 +1819,7 @@ "parameters": { "bodyPattern": "/dep", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[dD]ependencies" + "commentPattern": "\\[[Pp]olicy\\]\\s+[dD]ependencies" } }, { @@ -1936,7 +1936,7 @@ "parameters": { "bodyPattern": "/ext", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[aA]rea[\\s-][eE]xternal" + "commentPattern": "\\[[Pp]olicy\\]\\s+[aA]rea[\\s-][eE]xternal" } }, { @@ -2053,7 +2053,7 @@ "parameters": { "bodyPattern": "/ssue", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[iI]nstaller[\\s-][iI]ssue" + "commentPattern": "\\[[Pp]olicy\\]\\s+[iI]nstaller[\\s-][iI]ssue" } }, { @@ -2164,7 +2164,7 @@ "parameters": { "bodyPattern": "/ssue", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[iI]nstaller[\\s-][iI]ssue" + "commentPattern": "\\[[Pp]olicy\\]\\s+[iI]nstaller[\\s-][iI]ssue" } }, { @@ -2281,7 +2281,7 @@ "parameters": { "bodyPattern": "/ext", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[aA]rea[\\s-][eE]xternal" + "commentPattern": "\\[[Pp]olicy\\]\\s+[aA]rea[\\s-][eE]xternal" } }, { @@ -2386,7 +2386,7 @@ "parameters": { "bodyPattern": "/inter", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[iI]nteractive[\\s-][oO]nly([\\s-][iI]nstaller)?" + "commentPattern": "\\[[Pp]olicy\\]\\s+[iI]nteractive[\\s-][oO]nly([\\s-][iI]nstaller)?" } }, { @@ -2509,7 +2509,7 @@ "parameters": { "bodyPattern": "/inter", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[iI]nteractive[\\s-][oO]nly([\\s-][iI]nstaller)?" + "commentPattern": "\\[[Pp]olicy\\]\\s+[iI]nteractive[\\s-][oO]nly([\\s-][iI]nstaller)?" } }, { @@ -2759,7 +2759,7 @@ "parameters": { "bodyPattern": "/feedback", "isRegex": true, - "commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[rR]eset\\s+[fF]eedback" + "commentPattern": "\\[[Pp]olicy\\]\\s+[rR]eset\\s+[fF]eedback" } }, { diff --git a/Moderation.md b/Moderation.md index ee0958ca1cd..9a36861ee80 100644 --- a/Moderation.md +++ b/Moderation.md @@ -49,7 +49,7 @@ Moderators are able to approve most pull requests for automatic merge. When a mo Occasionally the automatic validation runs into an issue which is transient, or may be solved by re-running the validation. This will remove most error labels and will cause the validation service to start a brand new validation instance. ### Removing Pull Request Feedback -> Trigger: Comment `@MSFTbot reset feedback` on a pull request +> Trigger: Comment `[Policy] reset feedback` on a pull request The bots which help keep the repository clean sometimes make mistakes or or sometimes a moderator misclicks and accidentally requests changes. This can add the `Needs-Author-Feedback` or `Needs-Attention` labels to pull requests that don't need them. Moderators can remove these labels without re-running the pipelines to allow for the PR to be re-reviewed and merged. ### Closing Pull Requests and Issues @@ -65,7 +65,7 @@ When duplicate issues are raised, moderators are able to use this special variat > Note: This does not work for cross-repository duplicates ### Tagging of Issues and Pull Requests -> Trigger: Comment `@MSFTbot ` +> Trigger: Comment `[Policy] ` Moderators are often the first to see and triage new issues, and so they have the ability to apply certain labels to pull requests and issues. Below is a list of labels that moderators can apply: * `Area-External`