Skip to content

Commit a4f0751

Browse files
authored
Merge pull request #198 from SpinlockLabs/fix_bugs
Addresses #196
2 parents c28cb7c + 745bec7 commit a4f0751

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
## v6.0.3
1+
## 6.0.4
2+
- This fixes #196 (https://github.com/SpinlockLabs/github.dart/issues/196)
3+
4+
## 6.0.3
25
- Add archived and disabled fields to the Repository class
36

4-
## v6.0.2
7+
## 6.0.2
58
- Fixed `GitHubFile.text` to properly decode `content`.
69

7-
## v6.0.1
10+
## 6.0.1
811
- Fix https://github.com/SpinlockLabs/github.dart/issues/190
912

10-
## v6.0.0
13+
## 6.0.0
1114

1215
- There's a single entrypoint now: `package:github/github.dart`
1316
- For web: browser specific helper methods have moved. use import `package:github/browser_helper.dart` (renderMarkdown, and createAvatorImage)

lib/src/common/github.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class GitHub {
387387
if (response.headers['content-type'].contains('application/json')) {
388388
final json = jsonDecode(response.body);
389389
message = json['message'];
390-
errors = json['errors'] as List<Map<String, String>>;
390+
errors = List<Map<String, String>>.from(json['errors']);
391391
}
392392
switch (response.statusCode) {
393393
case 404:

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: 6.0.3
2+
version: 6.0.4
33
description: A high-level GitHub API Client Library that uses Github's v3 API
44
homepage: https://github.com/SpinlockLabs/github.dart
55

0 commit comments

Comments
 (0)