Skip to content

Commit 38a53e2

Browse files
authored
[fabricbot] Do not add needs-further-triage to issues still marked as untriaged (dotnet#87160)
1 parent 8a5ae8b commit 38a53e2

File tree

1 file changed

+69
-1
lines changed

1 file changed

+69
-1
lines changed

.github/fabricbot.json

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,7 @@
25952595
"subCapability": "IssueCommentResponder",
25962596
"version": "1.0",
25972597
"config": {
2598-
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue",
2598+
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue that is not still untriaged",
25992599
"actions": [
26002600
{
26012601
"name": "addLabel",
@@ -2637,6 +2637,74 @@
26372637
"label": "needs-author-action"
26382638
}
26392639
},
2640+
{
2641+
"operator": "not",
2642+
"operands": [
2643+
{
2644+
"name": "hasLabel",
2645+
"parameters": {
2646+
"label": "untriaged"
2647+
}
2648+
}
2649+
]
2650+
},
2651+
{
2652+
"name": "isOpen",
2653+
"parameters": {}
2654+
}
2655+
]
2656+
}
2657+
}
2658+
},
2659+
{
2660+
"taskSource": "fabricbot-config",
2661+
"taskType": "trigger",
2662+
"capabilityId": "IssueResponder",
2663+
"subCapability": "IssueCommentResponder",
2664+
"version": "1.0",
2665+
"config": {
2666+
"taskName": "Remove `needs-author-action` label when the author comments on an `untriaged` issue",
2667+
"actions": [
2668+
{
2669+
"name": "removeLabel",
2670+
"parameters": {
2671+
"label": "needs-author-action"
2672+
}
2673+
}
2674+
],
2675+
"eventType": "issue",
2676+
"eventNames": [
2677+
"issue_comment"
2678+
],
2679+
"conditions": {
2680+
"operator": "and",
2681+
"operands": [
2682+
{
2683+
"name": "isAction",
2684+
"parameters": {
2685+
"action": "created"
2686+
}
2687+
},
2688+
{
2689+
"name": "isActivitySender",
2690+
"parameters": {
2691+
"user": {
2692+
"type": "author"
2693+
}
2694+
}
2695+
},
2696+
{
2697+
"name": "hasLabel",
2698+
"parameters": {
2699+
"label": "needs-author-action"
2700+
}
2701+
},
2702+
{
2703+
"name": "hasLabel",
2704+
"parameters": {
2705+
"label": "untriaged"
2706+
}
2707+
},
26402708
{
26412709
"name": "isOpen",
26422710
"parameters": {}

0 commit comments

Comments
 (0)