pull project name from "project_name" when "project" doesn't exist
This commit is contained in:
parent
b713cf7659
commit
c0f5367d34
1 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,10 @@ class GitLab(object):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def names(self, data, headers):
|
def names(self, data, headers):
|
||||||
|
if "project" in data:
|
||||||
full_name = data["project"]["path_with_namespace"]
|
full_name = data["project"]["path_with_namespace"]
|
||||||
|
else:
|
||||||
|
full_name = data["project_name"].replace(" ", "")
|
||||||
repo_username, repo_name = full_name.split("/", 1)
|
repo_username, repo_name = full_name.split("/", 1)
|
||||||
|
|
||||||
organisation = None
|
organisation = None
|
||||||
|
|
Loading…
Reference in a new issue