From 976428fa4778faa3257b9cd7d6d3ea76a43410a0 Mon Sep 17 00:00:00 2001 From: Eirik Tsarpalis Date: Tue, 22 Feb 2022 10:22:29 +0000 Subject: [PATCH] Roll out automated issue cleanup (#65576) * Roll out automated issue cleanup * Update .github/fabricbot.json * Update .github/fabricbot.json --- .github/fabricbot.json | 100 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 97 insertions(+), 3 deletions(-) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index bb429f3..e27d410 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -5384,7 +5384,7 @@ { "name": "labelAdded", "parameters": { - "label": "no-recent-activity" + "label": "backlog-cleanup-candidate" } } ] @@ -5394,12 +5394,106 @@ "issues", "project_card" ], - "taskName": "Issue cleanup notification", + "taskName": "Manual Issue Cleanup", "actions": [ { "name": "addReply", "parameters": { - "comment": "Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.\n\nThis process is part of the experimental [issue cleanup initiative](https://github.com/dotnet/runtime/issues/60288) we are currently trialing in a limited number of areas. Please share any feedback you might have in the linked issue." + "comment": "Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.\n\nThis process is part of the experimental [issue cleanup initiative](https://github.com/dotnet/runtime/issues/60288) we are currently trialing. Please share any feedback you might have in the linked issue." + } + }, + { + "name": "addLabel", + "parameters": { + "label": "no-recent-activity" + } + } + ] + } + }, + { + "taskType": "scheduled", + "capabilityId": "ScheduledSearch", + "subCapability": "ScheduledSearch", + "version": "1.1", + "config": { + "frequency": [ + { + "weekDay": 0, + "hours": [], + "timezoneOffset": 0 + }, + { + "weekDay": 1, + "hours": [], + "timezoneOffset": 0 + }, + { + "weekDay": 2, + "hours": [], + "timezoneOffset": 0 + }, + { + "weekDay": 3, + "hours": [], + "timezoneOffset": 0 + }, + { + "weekDay": 4, + "hours": [], + "timezoneOffset": 0 + }, + { + "weekDay": 5, + "hours": [], + "timezoneOffset": 0 + }, + { + "weekDay": 6, + "hours": [], + "timezoneOffset": 0 + } + ], + "searchTerms": [ + { + "name": "noActivitySince", + "parameters": { + "days": 1827 + } + }, + { + "name": "isIssue", + "parameters": {} + }, + { + "name": "isOpen", + "parameters": {} + }, + { + "name": "noLabel", + "parameters": { + "label": "backlog-cleanup-candidate" + } + } + ], + "taskName": "Automated Issue cleanup", + "actions": [ + { + "name": "addLabel", + "parameters": { + "label": "backlog-cleanup-candidate" + } + }, + { + "name": "addReply", + "parameters": { + "comment": "Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.\n\nThis process is part of the experimental [issue cleanup initiative](https://github.com/dotnet/runtime/issues/60288) we are currently trialing. Please share any feedback you might have in the linked issue." + } + }, + { + "name": "addLabel", + "parameters": { + "label": "no-recent-activity" } } ] -- 2.7.4