Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Learn Renku
Teaching on Renku
Advanced teaching automation
Commits
6f9ddd0a
Commit
6f9ddd0a
authored
Jul 22, 2022
by
Cyril Matthey-Doret
Browse files
fix shebangs
parent
5417c2b4
Pipeline
#388588
passed with stage
in 13 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
teach_auto/clone_forks.py
View file @
6f9ddd0a
#!/usr/bin/env python
#!/usr/bin/env python
3
# Reads JSON output from collect-forks (either as a file or in stdin)
# and clone all target forks into provided directory at the target commit.
# usage ./clone_forks
_from_json.sh
OUT_DIR forks.json
# ./collect_forks.py --token token.asc URL | ./clone_forks
_from_json.sh
OUT_DIR
# usage ./clone_forks
.py
OUT_DIR forks.json
# ./collect_forks.py --token token.asc URL | ./clone_forks
.py
OUT_DIR
import
sys
from
pathlib
import
Path
...
...
teach_auto/collect_forks.py
View file @
6f9ddd0a
#!/us
e
/bin/env python3
# Collect all
group-owned
forks of a given project using Gitlab API
#!/us
r
/bin/env python3
# Collect all forks of a given project using Gitlab API
# Forks metadata is sent to stdout and contains the following fields:
# - id (gitlab identifier)
# - url
...
...
teach_auto/create_groups.py
View file @
6f9ddd0a
#!/usr/bin/env python3
# Given an input csv file of course participants created from moodle,
# create corresponding groups in moodle.
...
...
teach_auto/invite_students.py
View file @
6f9ddd0a
#!/usr/bin/env python3
# Given an input csv file of course participants created from moodle,
# create corresponding groups in moodle.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment