Skip to content

Commit a4a3ba5

Browse files
authored
Update bot configuration to support "bot: do not close" (#8968)
* Update bot configuration to support "bot: do not close" Update bot configuration to support the "bot: do not close" label. * Update fabricbot.json
1 parent f0db459 commit a4a3ba5

File tree

1 file changed

+88
-50
lines changed

1 file changed

+88
-50
lines changed

.github/fabricbot.json

Lines changed: 88 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
"issues",
5757
"project_card"
5858
]
59-
},
60-
"id": "KH5N8Ky2K"
59+
}
6160
},
6261
{
6362
"taskType": "trigger",
@@ -114,8 +113,7 @@
114113
"eventNames": [
115114
"issue_comment"
116115
]
117-
},
118-
"id": "O649JwbnjS"
116+
}
119117
},
120118
{
121119
"taskType": "trigger",
@@ -159,8 +157,7 @@
159157
"issues",
160158
"project_card"
161159
]
162-
},
163-
"id": "aQwjCUekCh"
160+
}
164161
},
165162
{
166163
"taskType": "scheduled",
@@ -295,6 +292,12 @@
295292
"parameters": {
296293
"days": 3
297294
}
295+
},
296+
{
297+
"name": "noLabel",
298+
"parameters": {
299+
"label": "bot: do not close"
300+
}
298301
}
299302
],
300303
"actions": [
@@ -303,8 +306,7 @@
303306
"parameters": {}
304307
}
305308
]
306-
},
307-
"id": "906mdH_oG9"
309+
}
308310
},
309311
{
310312
"taskType": "scheduled",
@@ -451,12 +453,11 @@
451453
{
452454
"name": "addReply",
453455
"parameters": {
454-
"comment": "This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**."
456+
"comment": "This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.\n\nIf you are not the original author (${issueAuthor}) and believe this issue is not stale, please comment with `/bot not-stale` and I will not close it."
455457
}
456458
}
457459
]
458-
},
459-
"id": "5EeMtqNGSF"
460+
}
460461
},
461462
{
462463
"taskType": "scheduled",
@@ -599,15 +600,13 @@
599600
"parameters": {}
600601
}
601602
]
602-
},
603-
"id": "quJmRsbw6h"
603+
}
604604
},
605605
{
606606
"taskType": "trigger",
607607
"capabilityId": "IssueResponder",
608608
"subCapability": "IssuesOnlyResponder",
609609
"version": "1.0",
610-
"id": "BpBMtKkYx",
611610
"config": {
612611
"eventType": "issue",
613612
"eventNames": [
@@ -672,8 +671,7 @@
672671
}
673672
}
674673
]
675-
},
676-
"id": "z2NE_n38v"
674+
}
677675
},
678676
{
679677
"taskType": "trigger",
@@ -711,8 +709,7 @@
711709
"eventNames": [
712710
"pull_request_review"
713711
]
714-
},
715-
"id": "yGuNfEN7VJ"
712+
}
716713
},
717714
{
718715
"taskType": "trigger",
@@ -765,8 +762,7 @@
765762
"issues",
766763
"project_card"
767764
]
768-
},
769-
"id": "HdQJmGS2xL"
765+
}
770766
},
771767
{
772768
"taskType": "trigger",
@@ -806,8 +802,7 @@
806802
"eventNames": [
807803
"issue_comment"
808804
]
809-
},
810-
"id": "QqzKjJVwV6"
805+
}
811806
},
812807
{
813808
"taskType": "trigger",
@@ -847,8 +842,7 @@
847842
"eventNames": [
848843
"pull_request_review"
849844
]
850-
},
851-
"id": "mZCPURCvuh"
845+
}
852846
},
853847
{
854848
"taskType": "trigger",
@@ -893,8 +887,7 @@
893887
"issues",
894888
"project_card"
895889
]
896-
},
897-
"id": "BDPyRz8pa-"
890+
}
898891
},
899892
{
900893
"taskType": "trigger",
@@ -926,8 +919,7 @@
926919
"eventNames": [
927920
"issue_comment"
928921
]
929-
},
930-
"id": "oPXnMxM1ki"
922+
}
931923
},
932924
{
933925
"taskType": "trigger",
@@ -959,8 +951,7 @@
959951
"eventNames": [
960952
"pull_request_review"
961953
]
962-
},
963-
"id": "o3DSMGH_gv"
954+
}
964955
},
965956
{
966957
"taskType": "scheduled",
@@ -1103,8 +1094,7 @@
11031094
"parameters": {}
11041095
}
11051096
]
1106-
},
1107-
"id": "g6oRU1qghc"
1097+
}
11081098
},
11091099
{
11101100
"taskType": "scheduled",
@@ -1255,8 +1245,7 @@
12551245
}
12561246
}
12571247
]
1258-
},
1259-
"id": "G_Vu__RzBi"
1248+
}
12601249
},
12611250
{
12621251
"taskType": "trigger",
@@ -1271,8 +1260,7 @@
12711260
"mergeType": "squash",
12721261
"deleteBranches": true,
12731262
"requireAllStatuses": true
1274-
},
1275-
"id": "Q5a2tbJDNL"
1263+
}
12761264
},
12771265
{
12781266
"taskType": "trigger",
@@ -1375,8 +1363,7 @@
13751363
}
13761364
}
13771365
]
1378-
},
1379-
"id": "64wtBgyCS"
1366+
}
13801367
},
13811368
{
13821369
"taskType": "trigger",
@@ -1438,8 +1425,7 @@
14381425
}
14391426
}
14401427
]
1441-
},
1442-
"id": "Ox-fHQqjt3"
1428+
}
14431429
},
14441430
{
14451431
"taskType": "scheduled",
@@ -1576,15 +1562,13 @@
15761562
}
15771563
}
15781564
]
1579-
},
1580-
"id": "uV_zJiQ2cp"
1565+
}
15811566
},
15821567
{
15831568
"taskType": "scheduled",
15841569
"capabilityId": "ScheduledSearch",
15851570
"subCapability": "ScheduledSearch",
15861571
"version": "1.1",
1587-
"id": "jESOVaOAa8X8U8OF30lh2",
15881572
"config": {
15891573
"frequency": [
15901574
{
@@ -1840,7 +1824,6 @@
18401824
"capabilityId": "ScheduledSearch",
18411825
"subCapability": "ScheduledSearch",
18421826
"version": "1.1",
1843-
"id": "G_2BB5u1hWtFkHooWjmNU",
18441827
"config": {
18451828
"frequency": [
18461829
{
@@ -1988,7 +1971,6 @@
19881971
"capabilityId": "ScheduledSearch",
19891972
"subCapability": "ScheduledSearch",
19901973
"version": "1.1",
1991-
"id": "pTrZ-9agMkYmbC0XZ_LbV",
19921974
"config": {
19931975
"frequency": [
19941976
{
@@ -2112,7 +2094,6 @@
21122094
"capabilityId": "IssueResponder",
21132095
"subCapability": "PullRequestResponder",
21142096
"version": "1.0",
2115-
"id": "yNhUVQMpShZbTZo9YWysI",
21162097
"config": {
21172098
"conditions": {
21182099
"operator": "and",
@@ -2159,6 +2140,67 @@
21592140
}
21602141
]
21612142
}
2143+
},
2144+
{
2145+
"taskType": "trigger",
2146+
"capabilityId": "IssueResponder",
2147+
"subCapability": "IssueCommentResponder",
2148+
"version": "1.0",
2149+
"config": {
2150+
"conditions": {
2151+
"operator": "and",
2152+
"operands": [
2153+
{
2154+
"name": "commentContains",
2155+
"parameters": {
2156+
"commentPattern": "/bot not-stale"
2157+
}
2158+
},
2159+
{
2160+
"operator": "and",
2161+
"operands": [
2162+
{
2163+
"name": "hasLabel",
2164+
"parameters": {
2165+
"label": "Needs: Author Feedback"
2166+
}
2167+
},
2168+
{
2169+
"name": "hasLabel",
2170+
"parameters": {
2171+
"label": "no-recent-activity"
2172+
}
2173+
}
2174+
]
2175+
}
2176+
]
2177+
},
2178+
"eventType": "issue",
2179+
"eventNames": [
2180+
"issue_comment"
2181+
],
2182+
"taskName": "Test",
2183+
"actions": [
2184+
{
2185+
"name": "addLabel",
2186+
"parameters": {
2187+
"label": "bot: do not close"
2188+
}
2189+
},
2190+
{
2191+
"name": "addLabel",
2192+
"parameters": {
2193+
"label": "Needs: Attention :wave:"
2194+
}
2195+
},
2196+
{
2197+
"name": "addReply",
2198+
"parameters": {
2199+
"comment": "Thank you ${contextualAuthor}. This issue will not be automatically closed and a member of the team will review it soon."
2200+
}
2201+
}
2202+
]
2203+
}
21622204
}
21632205
],
21642206
"userGroups": [
@@ -2177,10 +2219,6 @@
21772219
"satvu",
21782220
"jviau"
21792221
],
2180-
"modifiedBy": {
2181-
2182-
"timestamp": "2022-05-18T21:00:09.818Z"
2183-
},
21842222
"assignmentSchemes": [
21852223
{
21862224
"target": "All",

0 commit comments

Comments
 (0)