From 34f2159188f18a1a95c610d4fdb91b70f08ef3de Mon Sep 17 00:00:00 2001 From: sisco0 Date: Wed, 5 Jun 2024 10:03:44 -0600 Subject: [PATCH 1/2] Add stale issues Github Actions Workflow --- .github/workflows/close-stale-issues.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/close-stale-issues.yml diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml new file mode 100644 index 0000000000..479134e9f3 --- /dev/null +++ b/.github/workflows/close-stale-issues.yml @@ -0,0 +1,21 @@ +name: Close Stale Issues + +on: + schedule: + - cron: '0 0 * * *' # Runs daily at midnight UTC + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - name: Close stale issues + uses: actions/stale@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been automatically closed due to inactivity. If you still need help, please reopen the issue and provide the requested information.' + days-before-stale: 7 + days-before-close: 7 + only-labels: 'status:needs-more-info' + exempt-issue-labels: 'status:do-not-close' + From 3bb637636c10ae3b6c1673a52bd2ad9b2f01a7ed Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Wed, 5 Jun 2024 19:43:55 +0000 Subject: [PATCH 2/2] Fix linter errors --- .github/workflows/close-stale-issues.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 479134e9f3..9d84321d06 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -2,7 +2,7 @@ name: Close Stale Issues on: schedule: - - cron: '0 0 * * *' # Runs daily at midnight UTC + - cron: "0 0 * * *" # Runs daily at midnight UTC workflow_dispatch: jobs: @@ -13,9 +13,8 @@ jobs: uses: actions/stale@v8 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue has been automatically closed due to inactivity. If you still need help, please reopen the issue and provide the requested information.' + stale-issue-message: "This issue has been automatically closed due to inactivity. If you still need help, please reopen the issue and provide the requested information." days-before-stale: 7 days-before-close: 7 - only-labels: 'status:needs-more-info' - exempt-issue-labels: 'status:do-not-close' - + only-labels: "status:needs-more-info" + exempt-issue-labels: "status:do-not-close"