From 5e57789325d862488de71e8d632348074d047bce Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Fri, 15 Nov 2024 13:24:12 +0100 Subject: [PATCH] workflows.stale - add workflow with action `crs-k/stale-branches@v6.0.2` to open issues for and delete stale branches --- .github/workflows/stale.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..d07ccc1 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: Stale Branches + +on: + schedule: + - cron: '0 8 * * *' + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - name: Stale Branches + uses: crs-k/stale-branches@v6.0.2 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + stale-branch-label: 'Stale Branch' + days-before-stale: 30 + days-before-delete: 730 + compare-branches: 'info' + comment-updates: true + tag-committer: true + max-issues: 50