File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ ## 8.2.4
2
+ - Make CheckRunConclusion nullable
3
+
1
4
## 8.2.3
2
5
- Added ` generateReleaseNotes ` boolean to CreateRelase class to have github auto-create release notes
3
6
- Added ` generateReleaseNotes ` method to RepositoriesService to have github create release notes
Original file line number Diff line number Diff line change @@ -45,10 +45,14 @@ class CheckRunConclusion extends EnumWithValue {
45
45
static const cancelled = CheckRunConclusion ._('cancelled' );
46
46
static const timedOut = CheckRunConclusion ._('timed_out' );
47
47
static const actionRequired = CheckRunConclusion ._('action_required' );
48
+ static const empty = CheckRunConclusion ._(null );
48
49
49
- const CheckRunConclusion ._(String value) : super (value);
50
+ const CheckRunConclusion ._(String ? value) : super (value);
50
51
51
52
factory CheckRunConclusion ._fromValue (String ? value) {
53
+ if (value == null ) {
54
+ return empty;
55
+ }
52
56
for (final level in const [
53
57
success,
54
58
failure,
Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ import 'package:meta/meta.dart';
5
5
/// but with a String value that is used for serialization.
6
6
@immutable
7
7
abstract class EnumWithValue {
8
- final String value;
8
+ final String ? value;
9
9
10
10
/// The value will be used when [toJson] or [toString] will be called.
11
11
/// It will also be used to check if two [EnumWithValue] are equal.
12
12
const EnumWithValue (this .value);
13
13
14
14
@override
15
- String toString () => value;
15
+ String toString () => value ?? 'null' ;
16
16
17
17
/// Returns the String value of this.
18
- String toJson () => value;
18
+ String toJson () => value ?? 'null' ;
19
19
20
20
/// True iff [other] is an [EnumWithValue] with the same value as this object.
21
21
@override
Original file line number Diff line number Diff line change 1
1
name : github
2
- version : 8.2.3
2
+ version : 8.2.4
3
3
description : A high-level GitHub API Client Library that uses Github's v3 API
4
4
homepage : https://github.com/SpinlockLabs/github.dart
5
5
You can’t perform that action at this time.
0 commit comments