From 568fb88de66abaf6cd1a6386ec05bed51f908704 Mon Sep 17 00:00:00 2001 From: Tyler Benson <734411+tylerbenson@users.noreply.github.com> Date: Fri, 3 May 2024 15:38:40 -0400 Subject: [PATCH] Add Stale Issue/PR closer (#1306) There are a lot of stale issues and PRs from folks that don't seem involved anymore. It's possible some are still relevant, so I set a pretty generous grace period: Mark anything older than a year as stale, and close after 30 days of marking as stale. Seeking feedback on thresholds and verbiage. --- .github/workflows/close-stale.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/close-stale.yaml diff --git a/.github/workflows/close-stale.yaml b/.github/workflows/close-stale.yaml new file mode 100644 index 0000000000..385733eaa5 --- /dev/null +++ b/.github/workflows/close-stale.yaml @@ -0,0 +1,24 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: "40 3 * * 0" # Run weekly on Sunday at 3:40 AM + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue was marked stale. It will be closed in 30 days without additional activity.' + close-issue-message: 'Closed as inactive. Feel free to reopen if this issue is still relevant.' + + stale-pr-message: 'This PR was marked stale. It will be closed in 30 days without additional activity.' + close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.' + + days-before-stale: 365 + days-before-close: 30