Commit 656fe26d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

id in data["forked_from_project"]

parent bf9f39be
Pipeline #1919 passed with stages
in 1 minute and 5 seconds
......@@ -898,7 +898,7 @@ def update_gitlab(forge, data):
repo.default_branch = data['default_branch']
repo.description = data['description']
# TODO license (, open_pr
if 'forked_from_project' in data:
if 'forked_from_project' in data and 'id' in data['forked_from_project']:
repo.forked_from = data['forked_from_project']['id']
elif created or project.main_namespace is None:
project.main_namespace = namespace
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment