Skip to content

Add -AzureDevOps switch for ADO-compatible mermaid output#9

Merged
mariussm merged 3 commits intomainfrom
copilot/add-support-for-output-to-azure-devops
Mar 17, 2026
Merged

Add -AzureDevOps switch for ADO-compatible mermaid output#9
mariussm merged 3 commits intomainfrom
copilot/add-support-for-output-to-azure-devops

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

Azure DevOps wikis require :::mermaid / ::: fenced blocks instead of the standard ```mermaid ``` syntax. This adds an -AzureDevOps switch to opt into ADO-compatible output.

Changes

  • ConvertTo-WorkflowMarkdown — accepts new [switch] $AzureDevOps; emits :::mermaid/::: when set, backtick fences otherwise
  • Invoke-LCWMermaidGenerator — exposes [switch] $AzureDevOps publicly and passes it through to ConvertTo-WorkflowMarkdown

Usage

# Standard markdown (GitHub, etc.)
Invoke-LCWMermaidGenerator -ReportPath 'report.md'

# Azure DevOps wiki
Invoke-LCWMermaidGenerator -ReportPath 'report.md' -AzureDevOps
Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for output to Azure DevOps</issue_title>
<issue_description>ADO requires :::mermaid, not ```mermaid

ConvertTo-WorkflowMarkdown on line 61 and 63 needs fixing, and maybe invoke-lcwmermaidgenerator need a -AzureDevOps switch for output.</issue_description>

Comments on the Issue (you are @copilot in this section)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI and others added 2 commits March 17, 2026 10:16
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
Copilot AI requested a review from mariussm March 17, 2026 10:17
@mariussm mariussm marked this pull request as ready for review March 17, 2026 10:17
Copilot AI review requested due to automatic review settings March 17, 2026 10:17
@mariussm mariussm merged commit 5bbf311 into main Mar 17, 2026
1 check passed
@mariussm mariussm deleted the copilot/add-support-for-output-to-azure-devops branch March 17, 2026 10:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 -AzureDevOps on Invoke-LCWMermaidGenerator and forward it into markdown generation.
  • Update ConvertTo-WorkflowMarkdown to emit either :::mermaid/::: or mermaid/ 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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for output to Azure DevOps

3 participants