Skip to content

Commit 427615e

Browse files
authored
[fabricbot] Do not add needs-further-triage to issues still marked as untriaged (dotnet#6722)
1 parent d18676b commit 427615e

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
@@ -406,7 +406,7 @@
406406
"subCapability": "IssueCommentResponder",
407407
"version": "1.0",
408408
"config": {
409-
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue",
409+
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue that is not still untriaged",
410410
"actions": [
411411
{
412412
"name": "addLabel",
@@ -448,6 +448,74 @@
448448
"label": "needs-author-action"
449449
}
450450
},
451+
{
452+
"operator": "not",
453+
"operands": [
454+
{
455+
"name": "hasLabel",
456+
"parameters": {
457+
"label": "untriaged"
458+
}
459+
}
460+
]
461+
},
462+
{
463+
"name": "isOpen",
464+
"parameters": {}
465+
}
466+
]
467+
}
468+
}
469+
},
470+
{
471+
"taskSource": "fabricbot-config",
472+
"taskType": "trigger",
473+
"capabilityId": "IssueResponder",
474+
"subCapability": "IssueCommentResponder",
475+
"version": "1.0",
476+
"config": {
477+
"taskName": "Remove `needs-author-action` label when the author comments on an `untriaged` issue",
478+
"actions": [
479+
{
480+
"name": "removeLabel",
481+
"parameters": {
482+
"label": "needs-author-action"
483+
}
484+
}
485+
],
486+
"eventType": "issue",
487+
"eventNames": [
488+
"issue_comment"
489+
],
490+
"conditions": {
491+
"operator": "and",
492+
"operands": [
493+
{
494+
"name": "isAction",
495+
"parameters": {
496+
"action": "created"
497+
}
498+
},
499+
{
500+
"name": "isActivitySender",
501+
"parameters": {
502+
"user": {
503+
"type": "author"
504+
}
505+
}
506+
},
507+
{
508+
"name": "hasLabel",
509+
"parameters": {
510+
"label": "needs-author-action"
511+
}
512+
},
513+
{
514+
"name": "hasLabel",
515+
"parameters": {
516+
"label": "untriaged"
517+
}
518+
},
451519
{
452520
"name": "isOpen",
453521
"parameters": {}

0 commit comments

Comments
 (0)