Skip to content

Commit 4c2c39a

Browse files
committed
feat: delete-stale-branches, enable
1 parent 2489e74 commit 4c2c39a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.drone.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3663,7 +3663,7 @@ def deleteStaleBranches(ctx):
36633663
"name": "delete stale branches",
36643664
"image": OC_CI_ALPINE,
36653665
"commands": [
3666-
"./scripts/delete-stale-branches.sh",
3666+
"DRY_RUN=false ./scripts/delete-stale-branches.sh",
36673667
],
36683668
},
36693669
],

scripts/delete-stale-branches.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ VERBOSE="${VERBOSE:-false}"
77

88
DAYS_BEFORE_STALE="${DAYS_BEFORE_STALE:-90}"
99
IGNORE_BRANCHES_REGEX="^(main$|master$|stable-|release-|docs$|docs-stable-)"
10-
MAX_BRANCHES_PER_RUN="${MAX_BRANCHES_PER_RUN:-5}"
10+
MAX_BRANCHES_PER_RUN="${MAX_BRANCHES_PER_RUN:-10}"
1111

1212
# Global variables
1313
branch_info_file=""

0 commit comments

Comments
 (0)