Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added assignees to Issue model for #289 #290

Merged
merged 1 commit into from
Apr 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -10,7 +10,7 @@ dependencies:
collection: ^1.15.0
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 @@ -15,6 +15,7 @@ import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types

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

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