Commit f8a9d7bf authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix CI on projects with _

parent 0a4f5e8f
Pipeline #16964 passed with stage
in 6 minutes and 1 second
...@@ -57,7 +57,7 @@ async def pull_request(request: HttpRequest, rep: str) -> HttpResponse: ...@@ -57,7 +57,7 @@ async def pull_request(request: HttpRequest, rep: str) -> HttpResponse:
slug_github=slugify(data['repository']['owner']['login'])) slug_github=slugify(data['repository']['owner']['login']))
project = await sync_to_async(get_object_or_404)(Project, project = await sync_to_async(get_object_or_404)(Project,
main_namespace=namespace, main_namespace=namespace,
slug=slugify(data['repository']['name'])) slug=slugify(data['repository']['name']).replace('_', '-'))
git_repo = await sync_to_async(project.git)() git_repo = await sync_to_async(project.git)()
logger.debug(f'{namespace.slug}/{project.slug}: Pull request on {branch}: {event}') logger.debug(f'{namespace.slug}/{project.slug}: Pull request on {branch}: {event}')
......
Supports Markdown
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