Skip to content

Commit

Permalink
Allow Mods to tag Installer-Issue (microsoft#87704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly authored Nov 10, 2022
1 parent 9fc96df commit 12dc999
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 0 deletions.
198 changes: 198 additions & 0 deletions .github/fabricbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -1979,6 +1979,204 @@
]
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssueCommentResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "commentContains",
"parameters": {
"bodyPattern": "/ssue",
"isRegex": true,
"commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[iI]nstaller[\\s-][iI]ssue"
}
},
{
"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": "quhxl"
}
},
{
"name": "isActivitySender",
"parameters": {
"user": "Trenly"
}
}
]
}
]
},
"eventType": "issue",
"eventNames": [
"issue_comment"
],
"taskName": "Helper to add Installer-Issue to Issue",
"actions": [
{
"name": "addLabel",
"parameters": {
"label": "Installer-Issue"
}
}
]
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "PullRequestCommentResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "commentContains",
"parameters": {
"bodyPattern": "/ssue",
"isRegex": true,
"commentPattern": "@[mM][sS][fF][tT][bB][oO][tT]\\s+[iI]nstaller[\\s-][iI]ssue"
}
},
{
"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": "quhxl"
}
},
{
"name": "isActivitySender",
"parameters": {
"user": "Trenly"
}
}
]
}
]
},
"eventType": "pull_request",
"eventNames": [
"issue_comment"
],
"taskName": "Helper to add Installer-Issue to PR",
"actions": [
{
"name": "addLabel",
"parameters": {
"label": "Needs-Author-Feedback"
}
},
{
"name": "removeLabel",
"parameters": {
"label": "Needs-Attention"
}
},
{
"name": "addLabel",
"parameters": {
"label": "Installer-Issue"
}
}
]
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
Expand Down
1 change: 1 addition & 0 deletions Moderation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ When duplicate issues are raised, moderators are able to use this special variat
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`
* `Installer-Issue`
* `Blocking-Issue`
* `Interactive-Only-Installer`
* `Dependencies`
Expand Down

0 comments on commit 12dc999

Please sign in to comment.