microsoft / azure-pipelines-extensions

Collection of all RM and deployment extensions
http://www.visualstudio.com/explore/release-management-vs
MIT License
276 stars 424 forks source link

Add documentation for mustache helpers supported in endpoint queries #451

Open GitHubSriramB opened 6 years ago

GitHubSriramB commented 6 years ago

Refer to following issue: https://github.com/Microsoft/vsts-tasks/issues/7263

mmajcica commented 5 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?

Lovakumar commented 5 years ago

@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.

Lovakumar commented 4 years ago

@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.

abbottbd commented 4 years ago

@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.

omeshp commented 4 years ago

@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