Hello
For advice and feedback before triggering it.
I intend to add an auto-closing feature to the Github project ‘issues’. There are more than 900 issues, a number of them of not much use because the original poster has not provided enough info and lost interest.
The approach is to add (manually) a tag when the information given is not really enough to reproduce the problem reliably. At this moment a timer is triggered on the issue, and if there is no activity in a 2 weeks period, the issue is tagged as ‘stale’. At this point all participants are warned by a mail. If a comment is added to the issue, the timer is reset and the ‘stale’ tag is removed.
After 2 weeks of an issue being stale, the issue is closed.
If the issue has been tagged with another tag (except a few tags such as ‘duplicate’…), it is not tagged ‘stale’. This is to avoid issues tagged ‘bug’ for example to be closed automatically.
For people interested in details, here is the Github script:
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 14
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 14 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
exempt-all-assignees: true
exempt-milestones: true
only-labels: "pending user feedback"
exempt-issue-labels: "bug,enhancement,good first issue,backend enhancement,backend issue,backup corruption,bounty,bugreport attached,core logic,docker,filters,help wanted,linux,localization,MacOS,mono,performance issue,reproduced,server side,ssl/tls issue,Synology,tests,translation,UI,windows"
repo-token: ${{ secrets.GITHUB_TOKEN }}