From 1114efe852e0c389cd12307f44e911d209d4f00e Mon Sep 17 00:00:00 2001 From: Yoni Date: Mon, 30 Oct 2023 10:46:05 +0200 Subject: [PATCH] Handle stale issues/PRs (#6899) --- .github/workflows/close-stale-issues.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/close-stale-issues.yaml diff --git a/.github/workflows/close-stale-issues.yaml b/.github/workflows/close-stale-issues.yaml new file mode 100644 index 00000000000..7d088d5089d --- /dev/null +++ b/.github/workflows/close-stale-issues.yaml @@ -0,0 +1,22 @@ +name: Close stale issues and PRs + +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: +jobs: + stale: + name: Close stale issues and PRs + runs-on: ubuntu-latest + steps: + - name: Close stale issues and PRs + uses: actions/stale@v8 + with: + stale-pr-message: 'Marking this pull request as stale after 30 days of inactivity, please comment or this will be closed.' + close-pr-message: 'This pull request was closed because it has been stale for 7 days with no activity.' + days-before-stale: -1 + days-before-close: -1 + days-before-pr-stale: 30 + days-before-pr-close: 7 + stale-pr-label: stale + repo-token: ${{ secrets.GITHUB_TOKEN }}