Skip to content

Commit

Permalink
adjust the format of the github comment
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Jun 5, 2024
1 parent c090a5b commit f2c253d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/sdk_triage_bot/lib/triage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ Future<void> triage(
print('');
print('labels: $classification');

var comment = '"$summary"\n\n';
var comment = '';
if (classification.isNotEmpty) {
comment += 'labels: ${classification.map((l) => '`$l`').join(', ')}';
comment += classification.map((l) => '`$l`').join(', ');
comment += '\n';
}
comment += '> $summary\n';

// create github comment
await githubService.createComment(sdkSlug, issueNumber, comment);
Expand Down

0 comments on commit f2c253d

Please sign in to comment.