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
3b9b8613
Commit
3b9b8613
authored
Apr 30, 2021
by
Guilhem Saurel
Browse files
issue & PR titles may change
parent
57f19baa
Pipeline
#14262
passed with stage
in 1 minute and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/management/commands/update.py
View file @
3b9b8613
...
...
@@ -30,18 +30,18 @@ def update_issues_pr():
url
=
re
.
sub
(
'api
\\
.github
\\
.com/repos'
,
'github.com'
,
issue
.
url
)
if
issue
.
pull_request
is
None
:
IssuePr
.
objects
.
get_or_create
(
title
=
issue
.
title
,
repo
=
main_repo
,
IssuePr
.
objects
.
get_or_create
(
repo
=
main_repo
,
number
=
issue
.
number
,
url
=
url
,
is_issue
=
True
)
is_issue
=
True
,
defaults
=
{
'title'
:
issue
.
title
})
else
:
IssuePr
.
objects
.
get_or_create
(
title
=
issue
.
title
,
repo
=
main_repo
,
IssuePr
.
objects
.
get_or_create
(
repo
=
main_repo
,
number
=
issue
.
number
,
url
=
url
,
is_issue
=
False
)
is_issue
=
False
,
defaults
=
{
'title'
:
issue
.
title
})
except
github
.
UnknownObjectException
:
print
(
f
'Project not found:
{
project
.
main_namespace
.
slug
}
/
{
project
.
slug
}
'
)
...
...
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