Skip to content

Commit 466bb19

Browse files
authored
run CI on all PR branches (#282)
This is a follow-up to #280 (comment). In summary, we only run CI checks on PRs against the main branch. However, in cases where an older major version of a package needs to be patched, it doesn't make sense to PR against main. CI won't run for these PRs, but it probably should. This updates our GitHub CI configs to run checks against PRs against any branch. --- <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Most changes should add an entry to the changelog and may need to [rev the pubspec package version](https://github.com/dart-lang/sdk/blob/main/docs/External-Package-Maintenance.md#making-a-change). - Changes to packages require [corresponding tests](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md#Testing). Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback. </details>
1 parent c4793ce commit 466bb19

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

.github/workflows/cli_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ permissions: read-all
33

44
on:
55
pull_request:
6-
branches: [main]
76
paths:
87
- ".github/workflows/cli_config.yml"
98
- "pkgs/cli_config/**"

.github/workflows/extension_discovery.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ permissions: read-all
33

44
on:
55
pull_request:
6-
branches: [ main ]
76
paths:
87
- '.github/workflows/unified_analytics.yml'
98
- 'pkgs/extension_discovery/**'

.github/workflows/graphs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ name: package:graphs
33
permissions: read-all
44

55
on:
6-
# Run CI on pushes to the main branch, and on PRs against main.
7-
push:
8-
branches: [ main ]
6+
# Run CI on all PRs (against any branch) and on pushes to the main branch.
7+
pull_request:
98
paths:
109
- '.github/workflows/graphs.yml'
1110
- 'pkgs/graphs/**'
12-
pull_request:
11+
push:
1312
branches: [ main ]
1413
paths:
1514
- '.github/workflows/graphs.yml'

.github/workflows/unified_analytics.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ permissions: read-all
33

44
on:
55
pull_request:
6-
branches: [ main ]
76
paths:
87
- '.github/workflows/unified_analytics.yml'
98
- 'pkgs/unified_analytics/**'

0 commit comments

Comments
 (0)