6a2b5ffbee38e16d1b3a75c53c0cf1ed1708d196
[it/test.git] / XTesting / kubespray / scripts / gitlab-branch-cleanup / README.md
1 # gitlab-branch-cleanup
2
3 Cleanup old branches in a GitLab project
4
5 ## Installation
6
7 ```shell
8 pip install -r requirements.txt
9 python main.py --help
10 ```
11
12 ## Usage
13
14 ```console
15 $ export GITLAB_API_TOKEN=foobar
16 $ python main.py kargo-ci/kubernetes-sigs-kubespray
17 Deleting branch pr-5220-containerd-systemd from 2020-02-17 ...
18 Deleting branch pr-5561-feature/cinder_csi_fixes from 2020-02-17 ...
19 Deleting branch pr-5607-add-flatcar from 2020-02-17 ...
20 Deleting branch pr-5616-fix-typo from 2020-02-17 ...
21 Deleting branch pr-5634-helm_310 from 2020-02-18 ...
22 Deleting branch pr-5644-patch-1 from 2020-02-15 ...
23 Deleting branch pr-5647-master from 2020-02-17 ...
24 ```