Commit 2da2a4f7 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files


parent 7e5744da
Pipeline #3402 passed with stages
in 59 seconds
......@@ -14,9 +14,9 @@ from django.utils import timezone
from django.utils.dateparse import parse_datetime
from django.utils.safestring import mark_safe
import git
import requests
import git
from autoslug import AutoSlugField
from ndh.models import Links, NamedModel, TimeStampedModel
from ndh.utils import enum_to_choices, query_sum
......@@ -556,7 +556,7 @@ class Repo(TimeStampedModel):
def get_jobs_gitlab(self):
for data in self.api_list('/jobs'):
branch_name = f'{self.forge.slug}/{self.namespace.slug}/{ref}'
branch_name = f'{self.forge.slug}/{self.namespace.slug}/{data["ref"]}'
branch, created = Branch.objects.get_or_create(name=branch_name, project=self.project, repo=self)
if created:
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