Skip to content
GitLab
Explore
Sign in
Learn Renku
Teaching on Renku
Advanced teaching automation
Compare revisions
b2e8b7301c15808eade8128f83a3ad7d24dd43d1 to bfb39a7beddb1e13155c52224f4e499a96e368af
Commits on Source (2)
doc: specify gitlab url in collect-forks help
· 811453d7
Cyril Matthey-Doret
authored
Mar 14, 2023
811453d7
Merge branch 'master' into 'custom-renku-url'
· bfb39a7b
Cyril Matthey-Doret
authored
Mar 14, 2023
# Conflicts: # teach_auto/collect_forks.py
bfb39a7b
Hide whitespace changes
Inline
Side-by-side
teach_auto/collect_forks.py
View file @
bfb39a7b
...
...
@@ -29,7 +29,7 @@ def validate_iso_date(date: str) -> str:
def
request_forks
(
project_url
:
str
,
header
=
Dict
[
str
,
str
])
->
List
[
Dict
]:
"""
Retrieve the metadata from all forks of input project
"""
"""
Retrieve the metadata from all forks of input
Gitlab
project
"""
base
,
namespace
,
repo
=
parse_repo_url
(
project_url
)
upstream_id
=
get_project_id
(
project_url
,
header
)
# Collect all forks
...
...
@@ -153,7 +153,9 @@ def format_fork_metadata(
help
=
"
If you are using a custom renku deployment, you can provide the base url here.
"
,
)
def
collect_forks
(
repo_url
,
token_path
,
deadline
=
None
,
group_only
=
False
,
custom_renku_url
=
None
):
"""
Gather metadata about all forks of input project into a JSON file.
"""
"""
Gather metadata about all forks of input project into a JSON file.
REPO_URL must be the URL to the Gitlab repository.
"""
token
=
ingest_token
(
token_path
)
# Check for valid deadline format
if
deadline
is
not
None
:
...
...