diff options
Diffstat (limited to 'app/blueprints/gitlab/__init__.py')
-rw-r--r-- | app/blueprints/gitlab/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/blueprints/gitlab/__init__.py b/app/blueprints/gitlab/__init__.py index 18ce8c2..aaccf74 100644 --- a/app/blueprints/gitlab/__init__.py +++ b/app/blueprints/gitlab/__init__.py @@ -29,7 +29,7 @@ def webhook(): json = request.json # Get package - gitlab_url = "gitlab.com/{}/{}".format(json["project"]["namespace"], json["project"]["name"]) + gitlab_url = json["project"]["web_url"].replace("https://", "").replace("http://", "") package = Package.query.filter(Package.repo.ilike("%{}%".format(gitlab_url))).first() if package is None: return error(400, "Could not find package, did you set the VCS repo in CDB correctly? Expected {}".format(gitlab_url)) |