From 4ab77afcfcf98c0c0efca72ed7bf29930b6c482a Mon Sep 17 00:00:00 2001 From: Erik Vroon Date: Sat, 4 May 2024 11:43:50 +0200 Subject: [PATCH] Add stale bot (#698) --- .github/workflows/stale.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 00000000..f165e011 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: 'stale' + +on: + schedule: + - cron: "0 8 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + # Issues + days-before-issue-stale: 60 + stale-issue-message: + "This issue is stale because it has been open for 60 days with no activity. + What is the action to take here?" + days-before-issue-close: -1 + + # Pull requests + delete-branch: true + days-before-pr-stale: 30 + stale-pr-message: + "This PR is stale because it has been open for 45 days with no activity. Remove + the `stale` label or comment or this will be closed in 30 days." + days-before-pr-close: 30 + close-pr-message: + "This PR was closed because it has been marked stale for 30 days with no activity."