From 7d503b74444dddf0cd8931c3d7bdceaf4ea42ac5 Mon Sep 17 00:00:00 2001 From: Damien Mathieu <42@dmathieu.com> Date: Mon, 10 Feb 2025 09:05:36 +0100 Subject: [PATCH] Close stale issues and PRs after 2 years of inactivity (#6284) Closes #6280 I will do the same PR in contrib once this one ships. --- .github/workflows/close-stale.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/close-stale.yml diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml new file mode 100644 index 000000000..b72718faf --- /dev/null +++ b/.github/workflows/close-stale.yml @@ -0,0 +1,25 @@ +name: "Close stale issues and pull requests" +on: + workflow_dispatch: + schedule: + - cron: "8 5 * * *" # arbitrary time not to DDOS GitHub + +permissions: + issues: write + pull-requests: write +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 14 days.' + close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.' + close-issue-message: 'This issue has been closed as inactive because it has been stale for 2 years with no activity.' + close-issue-label: 'closed as inactive' + days-before-pr-stale: 730 + days-before-issue-stale: 730 + days-before-pr-close: 744 + days-before-issue-close: 744 + exempt-issue-labels: 'never stale' + exempt-pr-labels: 'never stale'