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
6bc5782a
Commit
6bc5782a
authored
Oct 03, 2018
by
Guilhem Saurel
Browse files
update_github: dont try to look into repo_data if its not there
parent
cbccb2cc
Pipeline
#1549
passed with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
6bc5782a
...
...
@@ -943,7 +943,8 @@ def update_github(forge, namespace, data):
project
.
license
=
license
if
'source'
in
repo_data
:
repo
.
forked_from
=
repo_data
[
'source'
][
'id'
]
repo
.
open_issues
=
repo_data
[
'open_issues_count'
]
if
repo_data
:
repo
.
open_issues
=
repo_data
[
'open_issues_count'
]
repo
.
clone_url
=
data
[
'clone_url'
]
repo
.
open_pr
=
len
(
list
(
repo
.
api_list
(
'/pulls'
)))
repo
.
save
()
...
...
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