From aadf5f874be3d1b77c0ec47c9fc3e52a4057ac7a Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Wed, 12 Mar 2025 03:14:53 -0700 Subject: [PATCH] Add stale bot for old PRs (#1186) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add stale bot for old PRs * Update message * Update .github/workflows/stale.yaml Co-authored-by: 罗泽轩 * Fix stale workflow * Update .github/workflows/stale.yaml Co-authored-by: 罗泽轩 --------- Co-authored-by: 罗泽轩 --- .github/workflows/stale.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/stale.yaml diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000..3c6a1d2 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,18 @@ +name: "Maintenance: Close Stale PRs" +on: + schedule: + - cron: "30 1 * * *" + +permissions: + pull-requests: "write" + +jobs: + stale: + runs-on: "ubuntu-latest" + if: github.repository_owner == 'tj' + steps: + - uses: "actions/stale@v9" + with: + close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue" + days-before-pr-stale: 350 + days-before-pr-close: 15