How to Trigger Webhook on Project Upon Repository Check-in

Hello,

I have a webhook that I would like to send a POST request to when a project has been checked in to a repository. The webhook is already created, but I have the following questions: From which flow should this webhook be called, so that it runs when a project is checked in? Where in the flow should the webhook be called, so that it only runs after successful check in?

Thanks!

Comments

  • Hello,

    Thank you for contacting Decisions Customer Support. To address your questions—since your webhooks have already been created:

    From which flow should this webhook be called, so that it runs when a project is checked in? 

     You would need to create a "Repository Action Flow" and change the flow behavior type to "After Checkin Flow" (also called "After Checkin Handler Flow"). This flow is triggered automatically after a project is successfully checked in to the repository. 


    Where in the flow should the webhook be called, so that it only runs after successful check in? 

    You would place your webhook POST request step within this flow—ideally right before the End step—so it only runs after a successful check-in.


    Hope this answered your questions and here are some documentation links you can use as a reference.

     https://documentation.decisions.com/docs/repository-action-flows 

    https://documentation.decisions.com/docs/about-flow-behaviors 

Sign In or Register to comment.