aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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