Skip to content

Commit 45bbdf7

Browse files
StevenTCrameropencode
andcommitted
fix: resolve Roslynator analyzer warnings in ci-command
- Add cancellationToken.ThrowIfCancellationRequested() to use the parameter - Remove unnecessary $ from string without interpolation 🤖 Generated with opencode Co-Authored-By: opencode <noreply@opencode.ai>
1 parent 800ac0a commit 45bbdf7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tools/dev-cli/endpoints/ci-command.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ public async ValueTask<Unit> Handle(CiCommand command, CancellationToken ct)
4949
return Unit.Value;
5050
}
5151

52-
private async Task RunPrWorkflowAsync(string repoRoot, CancellationToken ct)
52+
private async Task RunPrWorkflowAsync(string repoRoot, CancellationToken cancellationToken)
5353
{
54+
cancellationToken.ThrowIfCancellationRequested();
5455
Terminal.WriteLine("CI Pipeline: clean -> build -> verify-samples -> test");
5556
Terminal.WriteLine("");
5657

@@ -187,7 +188,7 @@ private async Task RunReleaseWorkflowAsync(string repoRoot, string? apiKey, Canc
187188
throw new InvalidOperationException("Pack failed!");
188189
}
189190

190-
Terminal.WriteLine($"\n✓ Release Pipeline completed successfully");
191+
Terminal.WriteLine("\n✓ Release Pipeline completed successfully");
191192
Terminal.WriteLine($" Packages created in: {artifactsDir}");
192193

193194
// Push if api-key provided

0 commit comments

Comments
 (0)