Option to add conditions or payload to webhooks #2786
ewout opened 4 weeks ago

Hi Robin,

First of all: thanks for creating Onedev! It is a great project and I really enjoy it.

I am not sure if I am overlooking something, but I am missing one feature: the ability to add conditions to webhooks. I want to trigger a specific webhook when code is pushed to a specific branch. The code push trigger works fine, but it triggers the webhooks on every push on every branch. It would be great if you could optionally specify a specific branch per webhook.

Another improvement would be to add an option to replace/expand the payload sent to the webhook (with variables).

  • Robin Shen commented 4 weeks ago

    Thanks for using OneDev. Currently there is no conditional webhook. Will consider this in future versions.

  • ewout commented 2 weeks ago

    @robin thank you for your reply and considering implementing this feature.

    A small addition to my earlier proposal: when the "build" event type is used, the webhook is called immediately after the build starts. It would be useful to be able to select multiple conditions/options, such as: "when build starts", "when build is completed", "when build fails", "when build succeeds".

1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2786
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover