Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
890ef0ce
Commit
890ef0ce
authored
May 25, 2020
by
Guilhem Saurel
Browse files
gitlab may not have open_issues_count
parent
72a32712
Pipeline
#9677
passed with stage
in 3 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
890ef0ce
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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