Open GitHubSriramB opened 6 years ago
This will be very beneficial, especially to know what are the context available variables, as e.g. headers when it comes to fields in datasources callbackRequiredTemplate.
I need to evaluate a header in my callbackRequiredTemplate and in case there is a value, make sure that the callback is required, otherwise not.
Any idea?
@omeshp can you please update https://github.com/microsoft/azure-pipelines-extensions/blob/master/docs/authoring/endpoints/serviceEndpoints.md with mustache helpers supported in endpoint queries.
@omeshp can you please update https://github.com/microsoft/azure-pipelines-extensions/blob/master/docs/authoring/endpoints/serviceEndpoints.md with mustache helpers supported in endpoint queries.
@omeshp - I'm joining on this issue as I'd like better documentation on the helpers also. I'm working on a task that should allow a user to select a git repo + branch, however I'm having trouble because the rest API returns a string like 'refs/heads/master' but I need to someone split this so that I end up with just 'master' because the next data binding API requires just 'master' not the 'refs/heads/master'. Not sure if there is some way to do a string split, or regex match or something to get what I need.
@abbottbd I guess you can use regex helper like the one used at https://github.com/microsoft/azure-pipelines-extensions/blob/db0c1fe84bfe990a7478f0abf50444210c00fae9/Extensions/ExternalTfs/Src/vss-extension.json#L215
Refer to following issue: https://github.com/Microsoft/vsts-tasks/issues/7263