From 392f00826e5cc7d2cc8fea26cf1673ee3abd147f Mon Sep 17 00:00:00 2001 From: David Konigsberg <72822263+davidkonigsberg@users.noreply.github.com> Date: Wed, 25 Jun 2025 09:34:19 -0400 Subject: [PATCH 1/2] Create stale-bot.yml --- .github/workflows/stale-bot.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/stale-bot.yml diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml new file mode 100644 index 000000000..20f2179fb --- /dev/null +++ b/.github/workflows/stale-bot.yml @@ -0,0 +1,22 @@ +name: 'Close stale PRs' +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +permissions: + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-pr-message: 'This PR is stale because it has been open 25 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-pr-message: 'This PR was closed because it has been inactive for 5 days after being marked stale.' + days-before-issue-stale: -1 + days-before-issue-close: -1 + days-before-pr-stale: 25 + days-before-pr-close: 5 + operations-per-run: 300 From 506df243f49588a5da0a7173cb8dcddcda8a7162 Mon Sep 17 00:00:00 2001 From: David Konigsberg <72822263+davidkonigsberg@users.noreply.github.com> Date: Thu, 26 Jun 2025 08:21:39 -0400 Subject: [PATCH 2/2] give read permissions for issues --- .github/workflows/stale-bot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 20f2179fb..986de6800 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -6,6 +6,7 @@ on: permissions: pull-requests: write + issues: read jobs: stale: