From 62b1cae0abdcd4cd4b90e273968227c479b047e0 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 25 Jan 2020 01:31:39 +0000 Subject: [PATCH] Fix automatic creation of tag webhooks --- app/blueprints/github/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/blueprints/github/__init__.py b/app/blueprints/github/__init__.py index 8c6aaa8..9d73716 100644 --- a/app/blueprints/github/__init__.py +++ b/app/blueprints/github/__init__.py @@ -141,7 +141,7 @@ def webhook(): class SetupWebhookForm(FlaskForm): - event = SelectField("Event Type", choices=[('push', 'Push'), ('tag', 'New tag')]) + event = SelectField("Event Type", choices=[('create', 'New tag'), ('push', 'Push')]) submit = SubmitField("Save") @@ -191,7 +191,7 @@ def setup_webhook(): token.package = package event = form.event.data - if event != "push" and event != "tag": + if event != "push" and event != "create": abort(500) # Create webhook