From 8870e35d7dd75bbf9361d9a7e942929f1cd6dba9 Mon Sep 17 00:00:00 2001 From: clime Date: Nov 06 2017 09:01:54 +0000 Subject: [frontend] Bug 1508888 - Webhook triggered from GitHub does not start the build Tag-create events do not take into account what's in committish field for a package because the event does not contain the branch name on which the tag was created anyway. --- diff --git a/frontend/coprs_frontend/coprs/logic/packages_logic.py b/frontend/coprs_frontend/coprs/logic/packages_logic.py index d48ba23..1fb062a 100644 --- a/frontend/coprs_frontend/coprs/logic/packages_logic.py +++ b/frontend/coprs_frontend/coprs/logic/packages_logic.py @@ -123,6 +123,8 @@ WHERE package.copr_id = :copr_id; matches = re.search(r'(.*)-[^-]+-[^-]+$', ref) if matches and package.name != matches.group(1): return False + else: + return True committish = package.source_json_dict.get("committish") or '' if committish and not ref.endswith("/"+committish):