Skip to content

Commit 4705ba4

Browse files
authored
[fabricbot] Do not add needs-further-triage to issues still marked as untriaged (dotnet#9047)
1 parent 217ec29 commit 4705ba4

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
@@ -920,7 +920,7 @@
920920
"subCapability": "IssueCommentResponder",
921921
"version": "1.0",
922922
"config": {
923-
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue",
923+
"taskName": "Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue that is not still untriaged",
924924
"actions": [
925925
{
926926
"name": "addLabel",
@@ -962,6 +962,74 @@
962962
"label": "needs-author-action"
963963
}
964964
},
965+
{
966+
"operator": "not",
967+
"operands": [
968+
{
969+
"name": "hasLabel",
970+
"parameters": {
971+
"label": "untriaged"
972+
}
973+
}
974+
]
975+
},
976+
{
977+
"name": "isOpen",
978+
"parameters": {}
979+
}
980+
]
981+
}
982+
}
983+
},
984+
{
985+
"taskSource": "fabricbot-config",
986+
"taskType": "trigger",
987+
"capabilityId": "IssueResponder",
988+
"subCapability": "IssueCommentResponder",
989+
"version": "1.0",
990+
"config": {
991+
"taskName": "Remove `needs-author-action` label when the author comments on an `untriaged` issue",
992+
"actions": [
993+
{
994+
"name": "removeLabel",
995+
"parameters": {
996+
"label": "needs-author-action"
997+
}
998+
}
999+
],
1000+
"eventType": "issue",
1001+
"eventNames": [
1002+
"issue_comment"
1003+
],
1004+
"conditions": {
1005+
"operator": "and",
1006+
"operands": [
1007+
{
1008+
"name": "isAction",
1009+
"parameters": {
1010+
"action": "created"
1011+
}
1012+
},
1013+
{
1014+
"name": "isActivitySender",
1015+
"parameters": {
1016+
"user": {
1017+
"type": "author"
1018+
}
1019+
}
1020+
},
1021+
{
1022+
"name": "hasLabel",
1023+
"parameters": {
1024+
"label": "needs-author-action"
1025+
}
1026+
},
1027+
{
1028+
"name": "hasLabel",
1029+
"parameters": {
1030+
"label": "untriaged"
1031+
}
1032+
},
9651033
{
9661034
"name": "isOpen",
9671035
"parameters": {}

0 commit comments

Comments
 (0)