Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
327a068
Adding release note behaviour
CoderDake Nov 15, 2022
3155fa0
unleash the PR
CoderDake Nov 15, 2022
a53ccea
Fix update version so we start with a dev version when bumping
CoderDake Nov 15, 2022
341b15a
trailing comma
CoderDake Nov 15, 2022
2ed1dfd
remove comments
CoderDake Nov 15, 2022
d814da0
fix lints
CoderDake Nov 15, 2022
54411ea
jsdoc. copyright. remove extra class
CoderDake Nov 16, 2022
88b1d72
Merge remote-tracking branch 'origin/master' into br-squashed-dake
CoderDake Dec 14, 2022
da9c23b
first cleanup
CoderDake Dec 14, 2022
d3a6341
Initial workflow changes for simplified release note process
CoderDake Dec 14, 2022
61b0537
move the template`
CoderDake Dec 14, 2022
edbf288
markdown release note behaviour
CoderDake Dec 15, 2022
faef478
gitkeep and small changes
CoderDake Dec 15, 2022
58f9f41
release note wipe
CoderDake Dec 15, 2022
0918ef6
Merge remote-tracking branch 'origin/master' into simple-release-notes
CoderDake Dec 15, 2022
46c55db
better image dir management.
CoderDake Dec 15, 2022
0634cb3
RN version
CoderDake Dec 15, 2022
aea5d79
better grep
CoderDake Dec 15, 2022
b0a588d
fix description
CoderDake Dec 15, 2022
4921025
making sure we use the repo the PR is in
CoderDake Dec 15, 2022
0ea9dce
oops this is an env var
CoderDake Dec 15, 2022
fed9ecd
update the RN file
CoderDake Dec 15, 2022
4f70111
make sure both api reqs are on the right branch
CoderDake Dec 15, 2022
4bcc3b3
remove validation
CoderDake Dec 15, 2022
18a37da
Single change
CoderDake Dec 15, 2022
5faf4b4
unused import
CoderDake Dec 15, 2022
e264f19
Merge branch 'simple-release-notes' into simple-release-notes-test
CoderDake Dec 15, 2022
41d06fe
an release note change
Dec 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
jsdoc. copyright. remove extra class
  • Loading branch information
CoderDake committed Nov 16, 2022
commit 54411eabe1b167a69a5fd5aa8386ae6bdcc38db2
35 changes: 13 additions & 22 deletions tool/lib/release_note_classes.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:io';

import 'package:devtools_shared/devtools_shared.dart';
Expand All @@ -6,29 +10,8 @@ import 'package:json_annotation/json_annotation.dart';
part 'release_note_classes.g.dart';

@JsonSerializable()
class ReleaseNotes {
ReleaseNotes({
required this.releases,
});

List<Release> releases;

String toMarkdown() {
String markdown = '';
for (var release in releases) {
markdown += release.toMarkdown();
markdown += '\n';
}
return markdown;
}

factory ReleaseNotes.fromJson(Map<String, dynamic> json) =>
_$ReleaseNotesFromJson(json);

Map<String, dynamic> toJson() => _$ReleaseNotesToJson(this);
}

@JsonSerializable()
/// Stores all of the release note [sections] for a given [version].
class Release {
Release({
required this.version,
Expand Down Expand Up @@ -67,6 +50,8 @@ class Release {
}

@JsonSerializable()

/// Represents a section of release [notes] with a given [name].
class ReleaseSection {
ReleaseSection({
required this.name,
Expand All @@ -87,6 +72,12 @@ class ReleaseSection {
}

@JsonSerializable()

/// An individual release note entry, with a given [message].
///
/// The names of images relating to the releaseNote can be passed
/// in [imageNames]. WThe GitHub pull request url that the message is added to,
/// can be reflected through [githubPullRequestUrls].
class ReleaseNote {
ReleaseNote({
required this.message,
Expand Down
11 changes: 0 additions & 11 deletions tool/lib/release_note_classes.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tool/release_note_helper.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env dart
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:convert';
import 'dart:io';
Expand Down