Skip to content

Commit 401c04f

Browse files
committed
Prep 8.1.3
- up version and changelog - tweak CI - dart format
1 parent c0a7adf commit 401c04f

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

.github/workflows/dart.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
container:
11-
image: google/dart:2.12
11+
image: dart:2.13
1212

1313
steps:
1414
- uses: actions/checkout@v1
1515
- name: Install dependencies
1616
run: pub get
1717
- name: Dart Analyzer
18-
run: dartanalyzer .
18+
run: dart analyze
1919
- name: Check Dart Format
20-
run: dartfmt -n --set-exit-if-changed .
20+
run: dart format --set-exit-if-changed -o none lib test tool example && echo Dart Format 👍 || echo Files needed Dart formatting 😢
21+
- name: Check if Publishable
22+
run: dart pub publish --dry-run

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 8.1.3
2+
- Add per page parameter to stars related activities https://github.com/SpinlockLabs/github.dart/pull/265
3+
14
## 8.1.2
25
- Fixes `RateLimit.fromRateLimitResponse` to not double cast int
36

example/common.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ Future<void> initViewSourceButton(String script) async {
1414
// query the DOM for the view source button, handle clicks
1515
document.querySelector('#view-source')?.onClick.listen((_) {
1616
// ignore: unsafe_html
17-
final popup = window.open('https://github.com/SpinlockLabs/github.dart/blob/master/example/$script', 'View Source');
17+
final popup = window.open(
18+
'https://github.com/SpinlockLabs/github.dart/blob/master/example/$script',
19+
'View Source');
1820
String? code;
1921

2022
var fetched = false;

lib/src/common/model/checks.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class CheckRunAction {
312312
required this.label,
313313
required this.description,
314314
required this.identifier,
315-
}) : assert(label.length <= 20),
315+
}) : assert(label.length <= 20),
316316
assert(description.length <= 40),
317317
assert(identifier.length <= 20);
318318

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: github
2-
version: 8.1.2
2+
version: 8.1.3
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/unit/common/model/misc_test.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ void main() {
1616
"used": 1
1717
}
1818
}''';
19-
final rateLimit = RateLimit.fromRateLimitResponse(jsonDecode(rateLimitJson));
19+
final rateLimit =
20+
RateLimit.fromRateLimitResponse(jsonDecode(rateLimitJson));
2021

2122
expect(rateLimit.limit, 5000);
2223
expect(rateLimit.remaining, 4999);

0 commit comments

Comments
 (0)