mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Fix automatic creation of tag webhooks
This commit is contained in:
parent
933a23c9c7
commit
62b1cae0ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user