-
|
Hello, I’m extremely excited about the potential of your extension for generating release notes! However, I’m currently facing a few issues and was hoping you could help me troubleshoot them.
🔧 included UserStories:Thank you very much for your guidance and help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Stage Names (environment variables)Using environment variables does not work e.g. If you using an inline handlebars template (in the YAML pipeline) you can use the The other option is to write a custom handlebars extension to get the environment variable Tag FilteringAgain a custom handlebars extension maybe the answer again here, sometime it is easier to sort the logic on JavaScript. That said, I can't see anything wrong with the Handlebars logic you have. In cases such as this I tend to output each value into the release notes to see what the values actually are. If you are not using it already use the ]local test console](https://github.com/rfennell/AzurePipelines/tree/main/Extensions/XplatGenerateReleaseNotes/XplatGenerateReleaseNotesTask/testconsole) to make repeated reruns much easier Sorry I don't have a better option Duplicate HandlingNo easy answer to this one, again a custom handlebars extension may hemp, but I am struggling to see how. The samples here might provide some ideas on array filtering |
Beta Was this translation helpful? Give feedback.
Stage Names (environment variables)
Using environment variables does not work e.g.
{{$env:RELEASE_ENVIRONMENTNAME}}it is all down to how Handlbars does the template expansion.If you using an inline handlebars template (in the YAML pipeline) you can use the
$(release.environmentname)syntax as this gets expanded before being passed into the Handlbars process.The other option is to write a custom handlebars extension to get the environment variable
Tag Filtering
Again a custom handlebars extension maybe the answer again here, sometime it is easier to sort the logic on JavaScript.
That said, I can't see anything wrong with the Handlebars logic you have. In cases such as this I tend to out…