From d3f2c83d0e2aea8c4e490e67c0c7af84335f7e8e Mon Sep 17 00:00:00 2001 From: Kenneth Enevoldsen Date: Tue, 19 Dec 2023 10:53:46 +0100 Subject: [PATCH] ci: added stalebot --- .github/workflows/stalebot.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/stalebot.yml diff --git a/.github/workflows/stalebot.yml b/.github/workflows/stalebot.yml new file mode 100644 index 00000000..abbc209d --- /dev/null +++ b/.github/workflows/stalebot.yml @@ -0,0 +1,24 @@ +name: "Close stale issues and PRs" +on: + schedule: + - cron: "0 13 * * 2-5" + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v6 + with: + days-before-issue-stale: 14 + days-before-issue-close: 7 + stale-issue-message: "This issue is stale because it has been open for 14 days with no activity. Feel free to either 1) remove the stale label or 2) comment. If nothing happens, this will be closed in 7 days." + close-issue-message: "This issue was closed automatically. Feel free to re-open it if it's important." + days-before-pr-stale: 2 + stale-pr-message: "This PR is stale because it has been open 1+ days with no activity. Feel free to either 1) remove the stale label or 2) comment. If nothing happens, this will be closed in 7 days." + days-before-pr-close: 7 + close-pr-message: "This PR was closed automatically. Feel free to re-open it if you still want to work on it." + close-pr-label: "closed-by-stalebot" + operations-per-run: 20 + exempt-pr-labels: "no-stale" + exempt-issue-labels: "no-stale" \ No newline at end of file