Skip to content

Commit 27da1f2

Browse files
committed
Add archived and disabled fields to the Repository class
1 parent 728d013 commit 27da1f2

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v6.0.3
2+
- Add archived and disabled fields to the Repository class
3+
14
## v6.0.2
25
- Fixed `GitHubFile.text` to properly decode `content`.
36

lib/src/common/model/repos.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class Repository {
6464
this.updatedAt,
6565
this.pushedAt,
6666
this.license,
67+
this.archived,
68+
this.disabled,
6769
});
6870

6971
/// Repository Name
@@ -160,6 +162,9 @@ class Repository {
160162

161163
final LicenseKind license;
162164

165+
final bool archived;
166+
final bool disabled;
167+
163168
factory Repository.fromJson(Map<String, dynamic> input) =>
164169
_$RepositoryFromJson(input);
165170
Map<String, dynamic> toJson() => _$RepositoryToJson(this);

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

Lines changed: 4 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)