Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
21 results

gitlab-branch-cleanup

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Victor Morales authored
    c2d47005
    History
    Name Last commit Last update
    ..
    .gitignore
    README.md
    main.py
    requirements.txt

    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 ...