A utility for working with a group's gitlab and github repositories.
Activate an environment first if required.
python -m pip install git+https://github.com/ICR-RSE-Group/gitalma.git
# uninstall
python -m pip uninstall gitalmaThe alternative installation is as the single file gitlab.py, which can be done either by installing it and using the explicit path.
mkdir bcrbioinformatics
cd bcrbioinformatics
wget https://raw.githubusercontent.com/ICR-RSE-Group/gitalma/refs/heads/main/api/gitlab.py
python3 gitlab.py init -subgroup 2879
python3 gitlab.py update
rm gitlab.py
python3 Utils/gitlab.py status
python3 Utils/gitlab.py #no command defaults to update
Documentation from pydoctor is here
gitalma init -subgroup 1234
gitlab update
gitalma status
gitlab history
gitalma change -protocol pat For gitlab projects that enable a group repo to be built:
# Internal ICR
gitalma init -subgroup 1234 -protocol pat
# gitlab public, https://gitlab.com
gitalma init -subgroup 100000123 -protocol https -source gitlabFor github projects that need the structure to be built up:
gitalma init -protocol https -source github
and then edit the init.yml, e.g.
home: /home/ralcraft/dev/github-rse
path: /home/ralcraft/dev/github-rse
protocol: https
server: https://github.com
source: github
subgroup: '-1'
repos:
- SCRSE/LIBS: git@github.com:ICR-RSE-Group/pyalma.git
- SCRSE/LIBS: git@github.com:ICR-RSE-Group/gitalma.git
- SCRSE/APPS: git@github.com:ICR-RSE-Group/green-alma.git
- GENEVOD/HE: git@github.com:instituteofcancerresearch/he-class-app.git
- GENEVOD/HE: git@github.com:instituteofcancerresearch/he-class-pipeline.git