aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-25 01:31:39 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-25 01:35:05 +0000
commit62b1cae0abdcd4cd4b90e273968227c479b047e0 (patch)
treeb43f43a0239550314a07c803f63faace3db1ff0b
parent933a23c9c7eee3bfe13d8af4a3d109deced7b7fc (diff)
downloadcheatdb-62b1cae0abdcd4cd4b90e273968227c479b047e0.tar.xz
Fix automatic creation of tag webhooks
-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