From 9466279deb1ed1344acf999929e429a71c9d3ba3 Mon Sep 17 00:00:00 2001 From: Ivan Santos <301291+pragmaticivan@users.noreply.github.com> Date: Sun, 17 Nov 2024 09:36:22 -0600 Subject: [PATCH] build: close slate prs --- .github/workflows/close-stale.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/close-stale.yml diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml new file mode 100644 index 0000000..781ecba --- /dev/null +++ b/.github/workflows/close-stale.yml @@ -0,0 +1,31 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: "40 3 * * *" # Run daily 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 + + operations-per-run: 500 + + stale-issue-label: stale + stale-pr-label: stale + exempt-issue-labels: never-stale,bug + exempt-pr-labels: never-stale,bug