Skip to content

Commit 5876246

Browse files
mosuemdevoncarew
andauthored
Add PR health workflow (#133)
Co-authored-by: Devon Carew <[email protected]>
1 parent 30df831 commit 5876246

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.github/workflows/health.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Health
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
types: [opened, synchronize, reopened, labeled, unlabeled]
6+
7+
jobs:
8+
health:
9+
uses: dart-lang/ecosystem/.github/workflows/health.yaml@main
10+
with:
11+
ignore_coverage: "**.mock.dart,**.g.dart"
12+
ignore_license: "**.mock.dart,**.g.dart,**.mocks.dart"
13+
permissions:
14+
pull-requests: write

.github/workflows/post_summaries.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Comment on the pull request
2+
3+
on:
4+
# Trigger this workflow after the Health workflow completes. This workflow will have permissions to
5+
# do things like create comments on the PR, even if the original workflow couldn't.
6+
workflow_run:
7+
workflows:
8+
- Publish
9+
- Health
10+
types:
11+
- completed
12+
13+
jobs:
14+
upload:
15+
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main
16+
permissions:
17+
pull-requests: write

.github/workflows/publish.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ jobs:
1212
publish:
1313
if: ${{ github.repository_owner == 'dart-lang' }}
1414
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
15+
with:
16+
write-comments: false
17+

0 commit comments

Comments
 (0)