Skip to content

Commit 573a80c

Browse files
author
Casey Hillers
authored
Merge branch 'master' into state-only-once
2 parents d5ac9e2 + 2844616 commit 573a80c

File tree

91 files changed

+3703
-1728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3703
-1728
lines changed

.github/dependabot.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
- package-ecosystem: "pub"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Auto-Release on PR Merge
2+
3+
# Runs when a PR merges. See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-when-a-pull-request-merges
4+
on:
5+
pull_request:
6+
types:
7+
- closed
8+
9+
jobs:
10+
release:
11+
if: github.event.pull_request.merged == true
12+
permissions:
13+
contents: write
14+
runs-on: ubuntu-latest
15+
container: dart:2.14.4
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 2
22+
ref: master
23+
- name: Release
24+
run: |
25+
git config --global user.name ${{ secrets.USER_NAME }}
26+
git config --global user.email ${{ secrets.USER_EMAIL }}
27+
export PATH="$PATH":"$HOME/.pub-cache/bin"
28+
export GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}
29+
export MACHINE_GITHUB_API_TOKEN=${{secrets.MACHINE_GITHUB_API_TOKEN}}
30+
pub get
31+
pub global activate cider
32+
dart tool/auto_release_on_merge.dart ${{github.repository}} ${{github.event.pull_request.number}}
33+

.github/workflows/dart.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
name: Dart CI
1+
name: Dart Checks (analyze,format,publishable)
22

33
on: [push]
44

55
jobs:
66
build:
77

88
runs-on: ubuntu-latest
9-
9+
1010
container:
11-
image: google/dart:2.12
12-
11+
image: dart:2.14
12+
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

.github/workflows/publish_release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to pub
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Publish
16+
uses: sakebook/[email protected]
17+
with:
18+
credential: ${{ secrets.CREDENTIAL_JSON }}
19+
flutter_package: false
20+
skip_test: true
21+
dry_run: false
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Require Semver Pull Request Label
2+
on:
3+
pull_request:
4+
types: [opened, labeled, unlabeled, synchronize]
5+
jobs:
6+
label:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: mheap/github-action-required-labels@v1
10+
with:
11+
mode: exactly
12+
count: 1
13+
labels: "semver:patch, semver:minor, semver:major"

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: dart-lang/setup-dart@v1
13+
- name: Install dependencies
14+
run: dart pub get
15+
- name: Format
16+
run: dart format --output=none --set-exit-if-changed .
17+
- name: Analyze
18+
run: dart analyze
19+
# - name: Unit tests
20+
# run: dart test test
21+
# - name: Integration tests
22+
# run: dart test integration_test

.github/workflows/triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@master
12-
- name: Apply triage label
12+
- name: Apply untriaged label
1313
uses: actions/github-script@v3
1414
with:
1515
github-token: ${{secrets.GITHUB_TOKEN}}
@@ -18,7 +18,7 @@ jobs:
1818
issue_number: context.issue.number,
1919
owner: context.repo.owner,
2020
repo: context.repo.repo,
21-
labels: ['triage']
21+
labels: ['untriaged']
2222
})
2323
- name: Comment On New Issues
2424
uses: actions/github-script@v3

CHANGELOG.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,97 @@
1+
## 9.1.0
2+
3+
* add 'create' github webhook event to hooks.dart by @XilaiZhang in https://github.com/SpinlockLabs/github.dart/pull/304
4+
5+
## New Contributors
6+
* @XilaiZhang made their first contribution in https://github.com/SpinlockLabs/github.dart/pull/304
7+
8+
**Full Changelog**: https://github.com/SpinlockLabs/github.dart/compare/9.0.3...9.1.0
9+
10+
## 9.0.3
11+
12+
* Update Language Colors March 13th 2022 by @robrbecker in https://github.com/SpinlockLabs/github.dart/pull/302
13+
14+
15+
**Full Changelog**: https://github.com/SpinlockLabs/github.dart/compare/9.0.2...9.0.3
16+
17+
## 9.0.2
18+
- Switched to use the lints package instead of pedantic https://github.com/SpinlockLabs/github.dart/pull/301
19+
20+
## 9.0.1
21+
- Add `conclusion` property in class `CheckRun`
22+
23+
## 9.0.0
24+
25+
**Breaking change:** In the Gist class, the old type of files was
26+
```dart
27+
List<GistFile>? files;
28+
```
29+
and the new type is
30+
```dart
31+
Map<String, GistFile>? files;
32+
```
33+
34+
**Breaking change:** In the GistFile class, the name property is now filename
35+
36+
* Fix getting gists by @robrbecker in https://github.com/SpinlockLabs/github.dart/pull/294
37+
38+
**Full Changelog**: https://github.com/SpinlockLabs/github.dart/compare/8.5.0...9.0.0
39+
40+
## 8.5.0
41+
42+
* Adds listing and creating PR Reviews, listing users in an org by @robrbecker in https://github.com/SpinlockLabs/github.dart/pull/287
43+
44+
45+
**Full Changelog**: https://github.com/SpinlockLabs/github.dart/compare/8.4.0...8.5.0
46+
47+
## 8.4.0
48+
- added `updateComment` to update issue comments https://github.com/SpinlockLabs/github.dart/pull/286
49+
50+
## 8.3.0
51+
- Support `files` field in class `GitHubComparison`
52+
53+
## 8.2.5
54+
- no library code changes
55+
- Add auto pub publish on new releases
56+
57+
## 8.2.4
58+
- Make CheckRunConclusion nullable
59+
60+
## 8.2.3
61+
- Added `generateReleaseNotes` boolean to CreateRelase class to have github auto-create release notes
62+
- Added `generateReleaseNotes` method to RepositoriesService to have github create release notes
63+
between to tags (without creating a release) and return the name and body. This is helpful when you want to add the release notes to a CHANGELOG.md before making the actual release
64+
## 8.2.2
65+
- Up minimum json_serializable to ^6.0.0, json_annotation to ^4.3.0
66+
- Cleanup and regenerate generated files
67+
- Require Dart SDK 2.14
68+
69+
## 8.2.1
70+
- Add `CheckSuiteEvent` and `CheckRunEvent`
71+
72+
## 8.2.0
73+
- add more fields to the PullRequest class and fixed JSON naming bugs
74+
- Added:
75+
- requestedReviewers
76+
- reviewCommentCount
77+
- milestone
78+
- rebaseable
79+
- mergeableState
80+
- maintainerCanModify
81+
- authorAssociation
82+
- Fixed (these were previously always null)
83+
- commentsCount
84+
- commitsCount
85+
- additionsCount
86+
- deletionsCount
87+
- changedFilesCount
88+
89+
## 8.1.3
90+
- Add per page parameter to stars related activities https://github.com/SpinlockLabs/github.dart/pull/265
91+
92+
## 8.1.2
93+
- Fixes `RateLimit.fromRateLimitResponse` to not double cast int
94+
195
## 8.1.1
296
- Fix up examples and license file https://github.com/SpinlockLabs/github.dart/pull/255 https://github.com/SpinlockLabs/github.dart/pull/254 https://github.com/SpinlockLabs/github.dart/pull/253
397

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,12 @@ Pull Request rejections are not a bad thing. It just means you need to fix somet
3838
## Becoming a Committer
3939

4040
If you get on IRC and ask us, we can review your work and add you as a committer if we think you should have it.
41+
42+
## Releasing & Publishing
43+
44+
This repo is now configured to release after every PR merge. This means a couple things for PRs that are put up:
45+
46+
1. A semver label is required. A github check will remind you that you need one. Reviewers should check that it is correct.
47+
2. There is no need to modify the version in the pubspec.yaml in your PRs. The tooling will update the version according to the semver label applied to your PR.
48+
3. Same thing for the CHANGELOG.md. Tooling will update it automatically after merge.
49+
4. A github release will be created and published ot pub.dev for you.

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:pedantic/analysis_options.yaml
1+
include: package:lints/recommended.yaml
22

33
analyzer:
44
strong-mode:

0 commit comments

Comments
 (0)