Fix automatic creation of tag webhooks

This commit is contained in:
rubenwardy 2020-01-25 01:31:39 +00:00
parent 933a23c9c7
commit 62b1cae0ab
1 changed files with 2 additions and 2 deletions

View File

@ -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