From e3689270c8b61f33d02d176c5b3d5139eebc6445 Mon Sep 17 00:00:00 2001 From: Pavel Buchart Date: Tue, 27 Feb 2024 19:40:40 +0100 Subject: [PATCH 1/2] Add stale.yml config --- .github/workflows/stale.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000..173bc78 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,24 @@ +name: Bump/Close inactive PRs +on: + schedule: + - cron: "0 5 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-pr-stale: 30 + days-before-pr-close: 90 + + stale-pr-label: "stale" + stale-pr-message: "This PR is open and inactive for 30 days. Merging PRs open after a long time is error-prone. Please proceed to merging or make a comment to keep it open. You can also prevent PRs from being tagged stale ot closed with 'keep-open' tag. If there is no activity in 90 days, this PR will be closed" + close-pr-message: "This PR was closed because it has been inactive for 90 days since being marked as stale." + + exempt-pr-labels: "keep-open,dependabot,dependencies" + + repo-token: ${{ secrets.GITHUB_TOKEN }} From 858b1b3224e99793d77c372fc02fa6ea6b43b9a0 Mon Sep 17 00:00:00 2001 From: Pavel Buchart Date: Tue, 27 Feb 2024 19:46:47 +0100 Subject: [PATCH 2/2] Update stale.yml config --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 173bc78..db01c36 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -16,7 +16,7 @@ jobs: days-before-pr-close: 90 stale-pr-label: "stale" - stale-pr-message: "This PR is open and inactive for 30 days. Merging PRs open after a long time is error-prone. Please proceed to merging or make a comment to keep it open. You can also prevent PRs from being tagged stale ot closed with 'keep-open' tag. If there is no activity in 90 days, this PR will be closed" + stale-pr-message: "This PR is open and inactive for 30 days. Merging PRs open after a long time is error-prone. Please proceed to merging or make a comment to keep it open. You can also prevent PRs from being tagged stale or closed with 'keep-open' tag. If there is no activity in 90 days, this PR will be closed" close-pr-message: "This PR was closed because it has been inactive for 90 days since being marked as stale." exempt-pr-labels: "keep-open,dependabot,dependencies"