c12s-kubespray/scripts/gitlab-branch-cleanup
2021-08-13 13:35:32 -07:00
..
.gitignore Add script to cleanup old gitlab branches (#5795) 2020-03-20 13:16:06 -07:00
main.py Remove unused python imports (#7859) 2021-08-13 13:35:32 -07:00
README.md Add script to cleanup old gitlab branches (#5795) 2020-03-20 13:16:06 -07:00
requirements.txt Add script to cleanup old gitlab branches (#5795) 2020-03-20 13:16:06 -07:00

gitlab-branch-cleanup

Cleanup old branches in a GitLab project

Installation

pip install -r requirements.txt
python main.py --help

Usage

$ export GITLAB_API_TOKEN=foobar
$ python main.py kargo-ci/kubernetes-sigs-kubespray
Deleting branch pr-5220-containerd-systemd from 2020-02-17 ...
Deleting branch pr-5561-feature/cinder_csi_fixes from 2020-02-17 ...
Deleting branch pr-5607-add-flatcar from 2020-02-17 ...
Deleting branch pr-5616-fix-typo from 2020-02-17 ...
Deleting branch pr-5634-helm_310 from 2020-02-18 ...
Deleting branch pr-5644-patch-1 from 2020-02-15 ...
Deleting branch pr-5647-master from 2020-02-17 ...