Skip to content

Commit

Permalink
Allow stale PR workflow to delete branches (#15219)
Browse files Browse the repository at this point in the history
  • Loading branch information
chainchad authored Feb 10, 2025
1 parent 2496391 commit b6ee1aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
stale:
runs-on: ubuntu-latest
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write

Expand All @@ -23,5 +24,6 @@ jobs:
exempt-all-pr-assignees: true
stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days."
days-before-issue-stale: -1 # disables marking issues as stale automatically. Issues can still be marked as stale manually, in which the closure policy applies.
delete-branch: true
# Comma separated list of labels that exempt issues from being considered stale.
exempt-pr-labels: "stale-exempt"

0 comments on commit b6ee1aa

Please sign in to comment.