Skip to content

Commit

Permalink
QuickFix - card should wrap text.
Browse files Browse the repository at this point in the history
QuickFix - Options added under subscommand
  • Loading branch information
janstaelensskyline committed Jul 24, 2024
1 parent 7a44dba commit 184b937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions CICD.Tools.MSTeamsWorkflowWebhookCard/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ public static async Task<int> Main(string[] args)
IsRequired = false,
};

var rootCommand = new RootCommand("Sends an adaptive card to an MS Teams workflow.")
{
httpPostUrl,
isDebug
};
isDebug.SetDefaultValue(false);

var name = new Option<string>("--name")
{
Expand Down Expand Up @@ -77,13 +73,16 @@ public static async Task<int> Main(string[] args)

var fromCicd = new Command("from-cicd", "Sends a card formatted as results from a CICD pipeline or workflow.")
{
isDebug,
name,
httpPostUrl,
result,
details,
pathToBuild,
pathToServiceIcon
};

var rootCommand = new RootCommand("Sends an adaptive card to an MS Teams workflow.");
rootCommand.AddCommand(fromCicd);

fromCicd.SetHandler(ProcessFromCicd, isDebug, name, httpPostUrl, result, details, pathToBuild, pathToServiceIcon);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void ApplyConfiguration(string nameOfPipeline, CicdResult result, string
cardElements.Add(new AdaptiveTextBlock
{
Text = formatedDetails,
Wrap = false,
Wrap = true,
IsSubtle = false,
Separator = true
});
Expand Down

0 comments on commit 184b937

Please sign in to comment.