aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints/github
diff options
context:
space:
mode:
Diffstat (limited to 'app/blueprints/github')
-rw-r--r--app/blueprints/github/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/blueprints/github/__init__.py b/app/blueprints/github/__init__.py
index 2eb4f64..bc83922 100644
--- a/app/blueprints/github/__init__.py
+++ b/app/blueprints/github/__init__.py
@@ -90,9 +90,9 @@ def webhook():
# Get package
github_url = "github.com/" + json["repository"]["full_name"]
- package = Package.query.filter(Package.repo.like("%{}%".format(github_url))).first()
+ package = Package.query.filter(Package.repo.ilike("%{}%".format(github_url))).first()
if package is None:
- return error(400, "Could not find package, did you set the VCS repo in CDB correctly?")
+ return error(400, "Could not find package, did you set the VCS repo in CDB correctly? Expected {}".format(github_url))
# Get all tokens for package
tokens_query = APIToken.query.filter(or_(APIToken.package==package,