Skip to content

Commit

Permalink
Make User field nullable in PullRequestReview (#383)
Browse files Browse the repository at this point in the history
* Make `User` field nullable in `PullRequestReview`

* Rev version
  • Loading branch information
mosuem authored Jan 3, 2024
1 parent 741c26d commit 6b9678e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 9.22.0

* Add support for the `Ghost` user when the Github user is deleted.

## 9.21.0

* Update MiscService.getApiStatus() to use the v2 API
Expand Down
4 changes: 2 additions & 2 deletions lib/src/common/model/pulls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,14 @@ class PullRequestFile {
class PullRequestReview {
PullRequestReview(
{required this.id,
required this.user,
this.user,
this.body,
this.state,
this.htmlUrl,
this.pullRequestUrl});

int id;
User user;
User? user;
String? body;
String? state;
String? htmlUrl;
Expand Down
4 changes: 3 additions & 1 deletion lib/src/common/model/pulls.g.dart

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

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: github
version: 9.21.0
version: 9.22.0
description: A high-level GitHub API Client Library that uses Github's v3 API
homepage: https://github.com/SpinlockLabs/github.dart

Expand Down

0 comments on commit 6b9678e

Please sign in to comment.