Skip to content

Commit

Permalink
[fabricbot] Do not add needs-further-triage to issues still marked as…
Browse files Browse the repository at this point in the history
… untriaged (dotnet#87160)
  • Loading branch information
jeffhandley authored Jun 6, 2023
1 parent 8a5ae8b commit 38a53e2
Showing 1 changed file with 69 additions and 1 deletion.
70 changes: 69 additions & 1 deletion .github/fabricbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -2595,7 +2595,7 @@
"subCapability": "IssueCommentResponder",
"version": "1.0",
"config": {
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue",
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue that is not still untriaged",
"actions": [
{
"name": "addLabel",
Expand Down Expand Up @@ -2637,6 +2637,74 @@
"label": "needs-author-action"
}
},
{
"operator": "not",
"operands": [
{
"name": "hasLabel",
"parameters": {
"label": "untriaged"
}
}
]
},
{
"name": "isOpen",
"parameters": {}
}
]
}
}
},
{
"taskSource": "fabricbot-config",
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssueCommentResponder",
"version": "1.0",
"config": {
"taskName": "Remove `needs-author-action` label when the author comments on an `untriaged` issue",
"actions": [
{
"name": "removeLabel",
"parameters": {
"label": "needs-author-action"
}
}
],
"eventType": "issue",
"eventNames": [
"issue_comment"
],
"conditions": {
"operator": "and",
"operands": [
{
"name": "isAction",
"parameters": {
"action": "created"
}
},
{
"name": "isActivitySender",
"parameters": {
"user": {
"type": "author"
}
}
},
{
"name": "hasLabel",
"parameters": {
"label": "needs-author-action"
}
},
{
"name": "hasLabel",
"parameters": {
"label": "untriaged"
}
},
{
"name": "isOpen",
"parameters": {}
Expand Down

0 comments on commit 38a53e2

Please sign in to comment.