Skip to content

ci: add cron to auto remove stale branches #1348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 7, 2025
Merged

ci: add cron to auto remove stale branches #1348

merged 15 commits into from
May 7, 2025

Conversation

bowenli86
Copy link
Collaborator

@bowenli86 bowenli86 commented Apr 29, 2025

Motivation:

many stale branches lives in the repo and never got cleaned up. to balance dev convenience vs being organized/legible, this pr implements a CI workflow to identify and remove stable branches

Modifications:

add a ci workflow that

  • scan stale branches that not hv new commits since 90 days ago, and notify owner if there's one
  • if still no changes coming in, delete the stable branch 7 days later

following branches and regex are excluded

  • main
  • release-dev/*
  • v*.*.* (release branches)

and can be changed by modifying exempt-branches-regex config in the yml

Result:

successfully dry run
https://github.com/Layr-Labs/eigenlayer-contracts/actions/runs/14741452510/job/41380210924

@bowenli86 bowenli86 marked this pull request as ready for review April 30, 2025 16:52
@bowenli86 bowenli86 merged commit 7037554 into main May 7, 2025
12 checks passed
@bowenli86 bowenli86 deleted the removebranch branch May 7, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant