Closed RickardCardell closed 1 year ago
This isn't an enhancement, this is a bug. Having multiple webhooks is already supported, but the code which invokes the templating engine does not seem to work correctly with multiple webhooks.
This doesn't have to do with just webhooks. The templating should support any yaml content since that is what Mustache would support if I understand it correctly.
I agree, the bug is very likely unrelated to webhooks.
After investigating some, it seems like Mustache doesn't support inserting arbitrary yaml terms. It can only insert strings {{ name }}
, booleans {{#name}} ... {{/name}}
, and lists {{#name}} ... {{item}} ... {{/name}}
.
I think the only way to have different set of webhooks is to use separate template files.
I would like to request support for more complex structures in the ymlv-config.
Currently the config in an ymlv-file may be a list of maps:
However, it's not uncommon to have a more nested structure. E.g one want to define multiple webhooks for a repo:
Current behavior: