hotosm / tasking-manager

Tasking Manager - The tool to team up for mapping in OpenStreetMap
https://wiki.openstreetmap.org/wiki/Tasking_Manager
BSD 2-Clause "Simplified" License
504 stars 270 forks source link

How to archive multiple issues via script or automated way #5369

Open petya-kangalova opened 1 year ago

petya-kangalova commented 1 year ago

I am adding this issue as a suggestion for Hacktoberfest as I wasn't able to find a solution easily..

Task: There are a lot of issues in our backlog going back to 2017. We want to archive issues from 2017 to Jan 2020. However, before archiving and closing the issue we want to contact users (tag on Github) and give them two weeks notice to respond if they have any objections. We no response/ objection, we'd like to close the issue automatically. If response is provided by the person who added the issues, we will follow-up/discuss and address accordingly before closing. We discussed in one of our Tasking Manager Meet Ups and the group was in agreement that as long as we notify the person who raised the issue and give them enough time to response, we can proceed with archiving and closing the issues.

Solution: Is there a way to automate the process vis script/another method so that we don't have to go to each issue one by one.

Thanks in advance!

kshitijrajsharma commented 1 year ago

Yes ! A github workflow will do the job ! We can mark the issue as stale issue if it remains inactive until 30 days and give notice to the issue ! if nothing comes back within 10 or 15 days bot will close the issue ! Here is the relavant documentation to go through : https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues