Commit 890ef0ce authored by Guilhem Saurel's avatar Guilhem Saurel

gitlab may not have open_issues_count

parent 72a32712
Pipeline #9677 passed with stage
in 3 minutes and 5 seconds
......@@ -1027,7 +1027,8 @@ def update_gitlab(forge, data):
repo.url = data['web_url']
repo.repo_id = data['id']
repo.clone_url = data['http_url_to_repo']
repo.open_issues = data['open_issues_count']
if 'open_issues_count' in data:
repo.open_issues = data['open_issues_count']
repo.default_branch = data['default_branch']
repo.description = data['description']
# TODO license (https://gitlab.com/gitlab-org/gitlab-ce/issues/28267), open_pr
......
Markdown is supported
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