Skip to content
GitLab
Menu
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
f8a9d7bf
Commit
f8a9d7bf
authored
Nov 23, 2021
by
Guilhem Saurel
Browse files
fix CI on projects with _
parent
0a4f5e8f
Pipeline
#16964
passed with stage
in 6 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gh/views.py
View file @
f8a9d7bf
...
...
@@ -57,7 +57,7 @@ async def pull_request(request: HttpRequest, rep: str) -> HttpResponse:
slug_github
=
slugify
(
data
[
'repository'
][
'owner'
][
'login'
]))
project
=
await
sync_to_async
(
get_object_or_404
)(
Project
,
main_namespace
=
namespace
,
slug
=
slugify
(
data
[
'repository'
][
'name'
]))
slug
=
slugify
(
data
[
'repository'
][
'name'
])
.
replace
(
'_'
,
'-'
)
)
git_repo
=
await
sync_to_async
(
project
.
git
)()
logger
.
debug
(
f
'
{
namespace
.
slug
}
/
{
project
.
slug
}
: Pull request on
{
branch
}
:
{
event
}
'
)
...
...
Guilhem Saurel
@gsaurel
mentioned in commit
c71c7832
·
Nov 23, 2021
mentioned in commit
c71c7832
mentioned in commit c71c78325338c66168257a62c38f801c539018f2
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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