From 3ef6942e5fff881700c99a3bf160b33c4b0d1f68 Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Thu, 9 May 2024 20:28:41 +0200 Subject: [PATCH] Add GitHub action to auto-close inactive issues --- .github/workflows/issue-management.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/issue-management.yml diff --git a/.github/workflows/issue-management.yml b/.github/workflows/issue-management.yml new file mode 100644 index 00000000..f390aba8 --- /dev/null +++ b/.github/workflows/issue-management.yml @@ -0,0 +1,20 @@ +name: 'Close Stale Issues' + +on: + schedule: + - cron: '0 10 * * 5' # Scheduled to run every Friday at 12pm CET + +jobs: + stale-issue-handler: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Mark and close stale issues + uses: actions/stale@v9 + with: + days-before-stale: 180 + days-before-close: 0 + stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions.' + close-issue-message: 'Closing this issue due to no activity for 6 months.' + stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions.' + close-pr-message: 'Closing this PR due to no activity for 6 months.'