Skip to content

Commit c428db4

Browse files
tparnellclaude
andcommitted
fix: exclude release branches from stale branch cleanup
Release branches are protected by repository rules and cannot be deleted by the action, causing RequestError 422. Remove release/* from the restrict-branches-regex to prevent the action from targeting them. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 74349d5 commit c428db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/stale-branches.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
days-before-branch-stale: 30
2626
days-before-branch-delete: 7
27-
# Only target conventional branch prefixes
28-
restrict-branches-regex: '^(feature|fix|release)/'
27+
# Only target conventional branch prefixes (release/* excluded - protected by repo rules)
28+
restrict-branches-regex: '^(feature|fix)/'
2929
ignore-branches-with-open-prs: true
3030
operations-per-run: 100

0 commit comments

Comments
 (0)