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
|
||||
|
||||
def names(self, data, headers):
|
||||
if "project" in data:
|
||||
full_name = data["project"]["path_with_namespace"]
|
||||
else:
|
||||
full_name = data["project_name"].replace(" ", "")
|
||||
repo_username, repo_name = full_name.split("/", 1)
|
||||
|
||||
organisation = None
|
||||
|
|
Loading…
Reference in a new issue