Skip to content

Commit 8a5ca9e

Browse files
authored
Add PR Health workflow (#3736)
* Add PR Health workflow * Ignore licenses for generated files
1 parent f394f26 commit 8a5ca9e

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-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: [ master ]
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_license: "**.g.dart"
12+
sdk: dev
13+
permissions:
14+
pull-requests: write
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+
- Health
9+
- Publish
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
if: ${{ github.repository_owner == 'dart-lang' }}
1515
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
1616
with:
17+
write-comments: false
1718
# Protected github deployment environment, requires approval to publish.
1819
environment: pub.dev
1920
sdk: dev

0 commit comments

Comments
 (0)