Skip to content

Commit e631e50

Browse files
authored
Add files field in Git commit comparison (#285)
1 parent 2afd0b3 commit e631e50

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 8.3.0
2+
- Support `files` field in class `GitHubComparison`
3+
14
## 8.2.5
25
- no library code changes
36
- Add auto pub publish on new releases

lib/src/common/model/repos.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ class GitHubComparison {
1212
final int? aheadBy;
1313
final int? behindBy;
1414
final int? totalCommits;
15+
final List<CommitFile>? files;
1516

16-
GitHubComparison(
17-
this.url, this.status, this.aheadBy, this.behindBy, this.totalCommits);
17+
GitHubComparison(this.url, this.status, this.aheadBy, this.behindBy,
18+
this.totalCommits, this.files);
1819

1920
factory GitHubComparison.fromJson(Map<String, dynamic> json) =>
2021
_$GitHubComparisonFromJson(json);

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

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

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: github
2-
version: 8.2.5
2+
version: 8.3.0
33
description: A high-level GitHub API Client Library that uses Github's v3 API
44
homepage: https://github.com/SpinlockLabs/github.dart
55

test/src/mocks.mocks.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import 'package:mockito/mockito.dart' as _i1;
1414
// ignore_for_file: implementation_imports
1515
// ignore_for_file: invalid_use_of_visible_for_testing_member
1616
// ignore_for_file: prefer_const_constructors
17-
// ignore_for_file: unnecessary_overrides
1817
// ignore_for_file: unnecessary_parenthesis
1918
// ignore_for_file: camel_case_types
2019

0 commit comments

Comments
 (0)