diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-01-25 01:31:39 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-01-25 01:35:05 +0000 |
| commit | 62b1cae0abdcd4cd4b90e273968227c479b047e0 (patch) | |
| tree | b43f43a0239550314a07c803f63faace3db1ff0b | |
| parent | 933a23c9c7eee3bfe13d8af4a3d109deced7b7fc (diff) | |
| download | cheatdb-62b1cae0abdcd4cd4b90e273968227c479b047e0.tar.xz | |
Fix automatic creation of tag webhooks
| -rw-r--r-- | app/blueprints/github/__init__.py | 4 |
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 |
