phab-api/0bbfcf541468master
phab-api/
0bbfcf541468master
/
/
README.md
README.md
Utilities scripts for c4science
GetMyStuph
- Clone the repository
git clone https://c4science.ch/source/phab-api.git c4science-scripts cd c4science-scripts
- Dependencies
pip3 install --user -r requirements.txt # OR, depending on your operating system configuration pip install --user -r requirements.txt
- Generate a cli token here: https://c4science.ch/conduit/login/
- Configure an SSH key in c4science, more information there: https://c4science.ch/w/c4science/sshkeys/
- Create a .yml file with the repositories and group you want to import, Take a look at the example .yml files for help. The script needs an explicit list of your repositories to import. You can set global options in the __all__ section and override it per repository.
- Be sure that all user in an epfl group you want to import already have an account on c4science. Otherwise you can also re-run the script after they created their account and they will be added to the Projects your set
- Run the script
./getmystuph_in_phab.py --config config.yml -v
- Before running the script for good you should use the --dry-run option, which is showing what actions it will do without modifying anything on c4science
./getmystuph_in_phab.py --config config.yml -v --dry-run
Windows users
- Follow the install above and run the script like this in CMD.exe
python getmystuph_in_phab.py --config config.yml
c4science · Help