Skip to content

Commit

Permalink
add remove stale branches ghaction
Browse files Browse the repository at this point in the history
will mark branches as stale after 30 days of inaction and remove them 7 days later unless action is taken.

Currently implemented as a dry-run so no deletions will be made until we are happy with the config.

Must be implemented in `main` branch.
  • Loading branch information
e-lo committed Dec 6, 2023
1 parent bb8de29 commit 35dc5e2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/remove-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
schedule:
- cron: "0 0 * * *" # Everday at midnight

jobs:
remove-stale-branches:
name: Remove Stale Branches
runs-on: ubuntu-latest
steps:
- uses: fpicalausa/remove-stale-branches@v1
with:
dry-run: true # Check out the console output before setting this to false
days-before-branch-stale: 30
days-before-branch-delete: 7

0 comments on commit 35dc5e2

Please sign in to comment.