Add -AzureDevOps switch for ADO-compatible mermaid output#9
Merged
Conversation
Co-authored-by: mariussm <426202+mariussm@users.noreply.github.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for output to Azure DevOps
Add -AzureDevOps switch for ADO-compatible mermaid output
Mar 17, 2026
There was a problem hiding this comment.
Pull request overview
Adds an -AzureDevOps switch to the report generator so Markdown output can be rendered in Azure DevOps Wiki (which requires :::mermaid fenced blocks instead of standard backtick mermaid fences).
Changes:
- Expose
-AzureDevOpsonInvoke-LCWMermaidGeneratorand forward it into markdown generation. - Update
ConvertTo-WorkflowMarkdownto emit either:::mermaid/:::ormermaid/fences depending on the switch. - Update generated module documentation syntax to include the new switch.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| LCWMermaidGenerator/Public/Invoke-LCWMermaidGenerator.ps1 | Adds -AzureDevOps switch and forwards it to markdown conversion. |
| LCWMermaidGenerator/Private/ConvertTo-WorkflowMarkdown.ps1 | Switches Mermaid fence format based on -AzureDevOps. |
| Documentation.md | Documents the new public switch in cmdlet syntax/parameters. |
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+62
to
+71
| if ($AzureDevOps) { | ||
| $lines.Add(':::mermaid') | ||
| $lines.Add((ConvertTo-WorkflowMermaid -WorkflowRecord $WorkflowRecord)) | ||
| $lines.Add(':::') | ||
| } | ||
| else { | ||
| $lines.Add('```mermaid') | ||
| $lines.Add((ConvertTo-WorkflowMermaid -WorkflowRecord $WorkflowRecord)) | ||
| $lines.Add('```') | ||
| } |
Comment on lines
+39
to
+40
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Azure DevOps wikis require
:::mermaid/:::fenced blocks instead of the standard```mermaid ```syntax. This adds an-AzureDevOpsswitch to opt into ADO-compatible output.Changes
ConvertTo-WorkflowMarkdown— accepts new[switch] $AzureDevOps; emits:::mermaid/:::when set, backtick fences otherwiseInvoke-LCWMermaidGenerator— exposes[switch] $AzureDevOpspublicly and passes it through toConvertTo-WorkflowMarkdownUsage
Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.