Skip to content

Commit

Permalink
Merge pull request #268 from Piinks/reviews
Browse files Browse the repository at this point in the history
Add review information to PullRequest
  • Loading branch information
robrbecker authored Oct 11, 2021
2 parents 401c04f + 2d38dc5 commit b89a03f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/common/model/pulls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class PullRequest {
this.deletionsCount,
this.changedFilesCount,
this.labels,
this.requestedReviewers,
this.reviewCommentCount,
});

/// Pull Request ID
Expand Down Expand Up @@ -113,6 +115,12 @@ class PullRequest {
/// Pull Request Labels
List<IssueLabel>? labels;

/// Reviewers requested for this Pull Request.
List<User>? requestedReviewers;

/// The number of review comments on the Pull Request.
int? reviewCommentCount;

factory PullRequest.fromJson(Map<String, dynamic> input) =>
_$PullRequestFromJson(input);
Map<String, dynamic> toJson() => _$PullRequestToJson(this);
Expand Down
6 changes: 6 additions & 0 deletions lib/src/common/model/pulls.g.dart

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

0 comments on commit b89a03f

Please sign in to comment.