From 8c5773abc134e948d05421d2df4ead3eb46c6b2c Mon Sep 17 00:00:00 2001 From: mauwii Date: Sat, 25 Feb 2023 13:20:05 +0100 Subject: [PATCH] add a workflow to close stale issues with values set as discussed in discord --- .github/workflows/close-inactive-issues.yml | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/close-inactive-issues.yml diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml new file mode 100644 index 0000000000..dbb89cc8f2 --- /dev/null +++ b/.github/workflows/close-inactive-issues.yml @@ -0,0 +1,26 @@ +name: Close inactive issues +on: + schedule: + - cron: "00 6 * * *" + +env: + DAYS_BEFORE_ISSUE_STALE: 14 + DAYS_BEFORE_ISSUE_CLOSE: 28 + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }} + days-before-issue-close: ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} + stale-issue-label: "Inactive Issue" + stale-issue-message: "There has been no activity in this issue for ${{ env.DAYS_BEFORE_ISSUE_STALE }} days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release." + close-issue-message: "Due to inactivity, this issue was automatically closed. If you are still experiencing the issue, please recreate the issue." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }}