Skip to content

Commit b89a03f

Browse files
authored
Merge pull request #268 from Piinks/reviews
Add review information to PullRequest
2 parents 401c04f + 2d38dc5 commit b89a03f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/src/common/model/pulls.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class PullRequest {
3535
this.deletionsCount,
3636
this.changedFilesCount,
3737
this.labels,
38+
this.requestedReviewers,
39+
this.reviewCommentCount,
3840
});
3941

4042
/// Pull Request ID
@@ -113,6 +115,12 @@ class PullRequest {
113115
/// Pull Request Labels
114116
List<IssueLabel>? labels;
115117

118+
/// Reviewers requested for this Pull Request.
119+
List<User>? requestedReviewers;
120+
121+
/// The number of review comments on the Pull Request.
122+
int? reviewCommentCount;
123+
116124
factory PullRequest.fromJson(Map<String, dynamic> input) =>
117125
_$PullRequestFromJson(input);
118126
Map<String, dynamic> toJson() => _$PullRequestToJson(this);

lib/src/common/model/pulls.g.dart

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)