From f7c8c0a7a7b6819390049d8b1acdf24dbad42b2a Mon Sep 17 00:00:00 2001 From: Korbinian Stoemmer Date: Thu, 7 Mar 2024 14:37:43 +0100 Subject: [PATCH] add stale action --- .github/workflows/stale.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..1d415fed --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,31 @@ +name: 'Manage Stale Issues and Pull Requests' + +on: + schedule: + - cron: '0 0 * * *' # Runs daily at midnight + workflow_dispatch: # Allows manual triggering of the workflow + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 60 + days-before-close: 7 + stale-issue-label: 'lifecycle/stale' + stale-pr-label: 'lifecycle/stale' + exempt-issue-labels: 'lifecycle/frozen,lifecycle/active' + exempt-pr-labels: 'lifecycle/frozen,lifecycle/active' + stale-issue-message: | + This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. + Thank you for your contributions. + stale-pr-message: | + This pull request has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. + Thank you for your contributions. + close-issue-message: | + This issue has been automatically closed due to the lack of recent activity. + /lifecycle rotten + close-pr-message: | + This pull request has been automatically closed due to the lack of recent activity. + /lifecycle rotten