Add support to maintain service hooks (specifically webhooks)
I can see why this hasn't been done yet. All the various kinds of triggers each require a potentially different block (buildCompleted vs codePushed vs etc). I'm starting to put it together myself, using serviceendpoint as a model
azuredevops_servicehook_webhook XXX
{
trigger = "codePushed"
codePushedTrigger = {
repository = XXX
branchName = XXX
pushedBy = XXX
}
action = "HttpPost"
httpPost ={
url = ""
etc..
}
}
The trigger and the potential trigger block settings would be in the base, the other properties unique to the action would be in the each of the resource_servicehook_XXX resources (webhook vs slack vs etc, though I am only going to try and do webhook).
Most helpful comment
I can see why this hasn't been done yet. All the various kinds of triggers each require a potentially different block (buildCompleted vs codePushed vs etc). I'm starting to put it together myself, using serviceendpoint as a model
The trigger and the potential trigger block settings would be in the base, the other properties unique to the action would be in the each of the resource_servicehook_XXX resources (webhook vs slack vs etc, though I am only going to try and do webhook).