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
43636abb
Commit
43636abb
authored
Jul 22, 2022
by
Cyril Matthey-Doret
Browse files
fix duplicated function name
parent
022b8e70
Changes
1
Hide whitespace changes
Inline
Side-by-side
teach_auto/collect_forks.py
View file @
43636abb
...
...
@@ -28,7 +28,7 @@ def validate_iso_date(date: str) -> str:
raise
ValueError
(
"Deadline must be in ISO-8601 format."
)
def
collec
t_forks
(
project_url
:
str
,
header
=
Dict
[
str
,
str
])
->
List
[
Dict
]:
def
reques
t_forks
(
project_url
:
str
,
header
=
Dict
[
str
,
str
])
->
List
[
Dict
]:
"""Retrieve the metadata from all forks of input project"""
base
,
namespace
,
repo
=
parse_repo_url
(
project_url
)
upstream_id
=
get_project_id
(
project_url
,
header
)
...
...
@@ -153,7 +153,7 @@ def collect_forks(repo_url, token_path, deadline=None, group_only=False):
# Get metadata of all forks from input project
header
=
{
"PRIVATE-TOKEN"
:
token
}
forks
=
collec
t_forks
(
repo_url
,
header
)
forks
=
reques
t_forks
(
repo_url
,
header
)
# Only keep those which belong to a group
if
group_only
:
forks
=
filter_group_forks
(
forks
)
...
...
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