Gitlab python-based job to remove stale branches
Artem Ptushkin
Posted on July 15, 2024
Problem
GitLab has a concept of stale branches, where they defined all the branches updated more than 3 months ago as stale.
However, it's not possible to do a bulk removal or have a more sophisticated control of these branches.
Here is a full example of how you can set this up. As for scheduled tasks you can use Gitlab scheduled jobs.
Code
💖 💪 🙅 🚩
Artem Ptushkin
Posted on July 15, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
career How to Improve Our GitHub? How to Prepare a Profile? How to Write a README?
November 29, 2024