From 24bc01946daff7f0338e21662209e11371f86a4b Mon Sep 17 00:00:00 2001 From: Jasem Mutlaq Date: Sun, 17 Mar 2024 16:54:41 +0300 Subject: [PATCH] Add a stale workflow --- .github/workflows/stale.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..8e61190142 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +name: 'Close Stale Issues' + +on: +schedule: +• cron: '30 1 * * *' # This will run the workflow daily at 1:30 UTC + + +jobs: +stale: +runs-on: ubuntu-latest +permissions: +issues: write +pull-requests: write + +steps: +• uses: actions/stale@v4 + +with: +repo-token: ${{ secrets.GITHUB_TOKEN }} +days-before-stale: 60 +days-before-close: 7 +stale-issue-message: 'This issue has been inactive for 60 days and is being marked as stale.' +close-issue-message: 'This issue has been closed due to inactivity.'