phab-api/cd622cb9e445static-import
phab-api/
cd622cb9e445static-import
static-import vs master
static-import vs master
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
31bef4624bb9 | aubort | Always add the user to edit and view permissions. Also add him if no permission… | Jun 1 2017 | ||||
1d2677c22514 | aubort | Do not add tags to permissions | Jun 1 2017 | ||||
4ea055923266 | aubort | Check if group resolution worked | Jun 1 2017 | ||||
253e117cc0f8 | aubort | Check if default importer is set (when trying to import users) | Jun 1 2017 |
/
/
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/
- 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