Skip to content

Commit

Permalink
Fix minor formatting bug in update-changelog.p6
Browse files Browse the repository at this point in the history
[Why]
Git tags were being formatted with both commas and spaces. They should
only be separated by commas.
  • Loading branch information
samcv committed Jul 10, 2019
1 parent 6cecad7 commit 8196ea1
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tools/update-changelog.p6
Expand Up @@ -36,9 +36,9 @@ class ViewOptions {
method format-output ($thing) {
my @text;
if self.commit {
my @all = $thing<ID>;
@all.append: $thing{$merged-into} if $thing{$merged-into};
@text.push: '[' ~ @all».substr(0, 8).join(',') ~ ']';
my @all = $thing<ID>.list;
@all.append: $thing{$merged-into}.list if $thing{$merged-into};
@text.push: '[' ~ @all».substr(0, 8).join(',') ~ ']';
}
if self.dropped && $thing<dropped> {
@text.push: '<dropped>';
Expand All @@ -49,15 +49,9 @@ class ViewOptions {
@text.push: $cat;
}
if self.subject-origin {
if $thing<CustomSubject> {
@text.push: '(Custom)';
}
elsif $thing<AutoSubject> {
@text.push: '(Auto)';
}
else {
@text.push: '(Commit)';
}
@text.push:
$thing<CustomSubject> ?? '(Custom)' !!
$thing<AutoSubject> ?? '(Auto)' !! '(Commit)';
}
my $subj = ($thing<CustomSubject> // $thing<AutoSubject> // $thing<Subject>);
$subj = colored($subj, 'bold') if $!color;
Expand Down

0 comments on commit 8196ea1

Please sign in to comment.