From 445cea7e114715b92ce9dcb2bee6ca5ecd236420 Mon Sep 17 00:00:00 2001 From: Ilan Uzan Date: Sun, 31 Aug 2025 14:58:50 +0200 Subject: [PATCH 1/3] feat: add github action to delete stale branches --- .github/workflows/stale-branches.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/stale-branches.yml diff --git a/.github/workflows/stale-branches.yml b/.github/workflows/stale-branches.yml new file mode 100644 index 00000000..4540e5ad --- /dev/null +++ b/.github/workflows/stale-branches.yml @@ -0,0 +1,23 @@ +name: Remove Stale Branches + +on: + push: + branches: [ "256-clean-old-stale-branchs" ] + schedule: + - cron: '0 0 1 * *' + +permissions: + issues: write + contents: write + +jobs: + remove_stale_branches: + runs-on: ubuntu-latest + steps: + - name: Remove Stale Branches + uses: crs-k/stale-branches@v8.2.2 + with: + days-before-stale: 30 + days-before-delete: 90 + pr-check: true + dry-run: true \ No newline at end of file From 0280c60440d17abf17bfeb1c38128ecd4a5ea44a Mon Sep 17 00:00:00 2001 From: Ilan Uzan Date: Sun, 31 Aug 2025 15:07:54 +0200 Subject: [PATCH 2/3] fix: cron schedule and workflow_dispatch --- .github/workflows/stale-branches.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale-branches.yml b/.github/workflows/stale-branches.yml index 4540e5ad..91824cc2 100644 --- a/.github/workflows/stale-branches.yml +++ b/.github/workflows/stale-branches.yml @@ -1,8 +1,7 @@ name: Remove Stale Branches on: - push: - branches: [ "256-clean-old-stale-branchs" ] + workflow_dispatch: schedule: - cron: '0 0 1 * *' @@ -19,5 +18,5 @@ jobs: with: days-before-stale: 30 days-before-delete: 90 - pr-check: true - dry-run: true \ No newline at end of file + max-issues: 50 + pr-check: true \ No newline at end of file From 628f7bd2a59dc1f40a080bfe69316f213cf7c42e Mon Sep 17 00:00:00 2001 From: Ilan Uzan Date: Sun, 31 Aug 2025 15:39:27 +0200 Subject: [PATCH 3/3] fix: remove max issues param --- .github/workflows/stale-branches.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/stale-branches.yml b/.github/workflows/stale-branches.yml index 91824cc2..53bc7ced 100644 --- a/.github/workflows/stale-branches.yml +++ b/.github/workflows/stale-branches.yml @@ -18,5 +18,4 @@ jobs: with: days-before-stale: 30 days-before-delete: 90 - max-issues: 50 pr-check: true \ No newline at end of file