Skip to content

Commit

Permalink
Merge pull request #290 from sjhorn/master
Browse files Browse the repository at this point in the history
Added assignees to Issue model for #289
  • Loading branch information
robrbecker authored Apr 17, 2022
2 parents 950983a + 0a1db65 commit a22e71e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions lib/src/common/model/issues.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Issue {
this.user,
List<IssueLabel>? labels,
this.assignee,
this.assignees,
this.milestone,
this.commentsCount = 0,
this.pullRequest,
Expand Down Expand Up @@ -58,6 +59,9 @@ class Issue {
/// The User that the issue is assigned to
User? assignee;

/// The User that the issue is assigned to
List<User>? assignees;

/// The Milestone
Milestone? milestone;

Expand Down Expand Up @@ -97,12 +101,14 @@ class IssueRequest {
this.body,
this.labels,
this.assignee,
this.assignees,
this.state,
this.milestone});
String? title;
String? body;
List<String>? labels;
String? assignee;
List<String>? assignees;
String? state;
int? milestone;

Expand Down
8 changes: 8 additions & 0 deletions lib/src/common/model/issues.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
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
http: ^0.13.0
http_parser: ^4.0.0
json_annotation: ^4.3.0
json_annotation: ^4.4.0
meta: ^1.3.0

dev_dependencies:
Expand Down
5 changes: 2 additions & 3 deletions test/src/mocks.mocks.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.0.15 from annotations
// Mocks generated by Mockito 5.0.17 from annotations
// in github/test/src/mocks.dart.
// Do not manually edit this file.

Expand All @@ -17,6 +17,7 @@ import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_overrides
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types

class _FakeClient_0 extends _i1.Fake implements _i2.Client {}

Expand Down Expand Up @@ -259,6 +260,4 @@ class MockGitHub extends _i1.Mock implements _i3.GitHub {
@override
void dispose() => super.noSuchMethod(Invocation.method(#dispose, []),
returnValueForMissingStub: null);
@override
String toString() => super.toString();
}

0 comments on commit a22e71e

Please sign in to comment.