From f661d9a6bc99ffacc798066520635acb674026f4 Mon Sep 17 00:00:00 2001 From: Jeff Mesnil Date: Thu, 4 Jul 2024 09:41:13 +0200 Subject: [PATCH] Add GitHub action to detect staled PRs Signed-off-by: Jeff Mesnil --- .github/workflows/stale.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..c7beac28 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,21 @@ + +name: "Close stale pull requests" +on: + schedule: + - cron: "0 0 * * *" + +# see: https://github.com/actions/stale +jobs: + stale: + permissions: + contents: write # only for delete-branch option + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: 'There has been no activity on this PR for 90 days. It will be auto-closed after 120 days.' + close-pr-message: 'There has been no activity on this PR for 120 days and it has been closed automatically.' + days-before-stale: 90 + days-before-close: 120 \ No newline at end of file