From 75efeb395e3f548ed7b06bbfa21d9de1680ca8c5 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 29 Nov 2023 10:37:11 +0000 Subject: [PATCH] DEV: Add stale PR workflow (#24625) - Mark stale after 60 days - Close 14 days later --- .github/workflows/stale-pr-closer.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/stale-pr-closer.yml diff --git a/.github/workflows/stale-pr-closer.yml b/.github/workflows/stale-pr-closer.yml new file mode 100644 index 00000000000..fa4b3bf363c --- /dev/null +++ b/.github/workflows/stale-pr-closer.yml @@ -0,0 +1,20 @@ +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@v8 + with: + days-before-stale: 60 + days-before-close: 14 + stale-pr-message: 'This pull request has been automatically marked as stale because it has been open for 60 days with no activity. To keep it open, remove the stale tag, push code, or add a comment. Otherwise, it will be closed in 14 days.' + exempt-pr-labels: dependencies + operations-per-run: 1 # for testing