From 227ff3f45508cbe478110dd77bf8b2d445a47e32 Mon Sep 17 00:00:00 2001 From: Nick Santamaria Date: Mon, 21 Oct 2024 17:32:15 +1100 Subject: [PATCH] Added stale PR workflow --- .github/workflows/stale-issue-schedule.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/stale-issue-schedule.yml diff --git a/.github/workflows/stale-issue-schedule.yml b/.github/workflows/stale-issue-schedule.yml new file mode 100644 index 0000000..924b52e --- /dev/null +++ b/.github/workflows/stale-issue-schedule.yml @@ -0,0 +1,21 @@ +name: 'Close stale issues and PRs' +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' + +permissions: + contents: write # only for delete-branch option + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + exempt-pr-labels: "DO NOT MERGE" + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.' + days-before-stale: 28 + days-before-close: 14