Skip to content

Commit c563216

Browse files
authored
Fix release notes generator (#9671)
1 parent cbcf20b commit c563216

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tool/lib/commands/release_notes_helper.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,19 @@ class ReleaseNotesCommand extends Command {
141141
}
142142
}
143143

144-
releaseNotesMd.writeAsStringSync('''---
144+
final metadataHeader = '''---
145145
title: DevTools $releaseNotesVersion release notes
146146
shortTitle: $releaseNotesVersion release notes
147147
breadcrumb: $releaseNotesVersion
148148
showToc: false
149149
---
150150
151-
''');
151+
''';
152152

153153
// Write the contents of the 'release-notes-<x.y.z>.md' file,
154154
// including any updates for image paths.
155155
releaseNotesMd.writeAsStringSync(
156-
srcLines.joinWithNewLine().trimLeft(),
156+
metadataHeader + srcLines.joinWithNewLine().trimLeft(),
157157
flush: true,
158158
);
159159

0 commit comments

Comments
 (0)