From 57f5054ad5349ea39c7dbd3b0c6fce84f428515e Mon Sep 17 00:00:00 2001 From: Christian Lechner Date: Thu, 27 Jul 2023 14:04:10 +0200 Subject: [PATCH] chore: add stale handling for issues and prs (#340) --- .github/workflows/cleanup-action-caches.yml | 2 +- .github/workflows/stale-handling.yml | 22 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/stale-handling.yml diff --git a/.github/workflows/cleanup-action-caches.yml b/.github/workflows/cleanup-action-caches.yml index a98ad7c7..d8f5e0dc 100644 --- a/.github/workflows/cleanup-action-caches.yml +++ b/.github/workflows/cleanup-action-caches.yml @@ -1,4 +1,4 @@ -name: cleanup gh actions caches +name: Cleanup GH Actions Caches on: pull_request: types: diff --git a/.github/workflows/stale-handling.yml b/.github/workflows/stale-handling.yml new file mode 100644 index 00000000..d9bc4e9a --- /dev/null +++ b/.github/workflows/stale-handling.yml @@ -0,0 +1,22 @@ +name: Close Stale Issues and PRs +on: + schedule: + - cron: '30 2 * * *' + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + stale-issue-message: 'This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This pull request is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 5 days with no activity.' + days-before-stale: 15 + days-before-close: 5 + any-of-issue-labels: 'needs-author-feedback'