File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,6 @@ jobs:
336
336
yarn check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
337
337
338
338
- run : yarn ng-dev format changed --check << pipeline.git.base_revision >>
339
- - run : yarn ng-dev commit-message validate-range --range << pipeline.git.base_revision >>...<<pipeline.git.revision>>
340
339
- run : yarn ownerslint
341
340
- run : yarn stylelint
342
341
- run : yarn tslint
@@ -345,6 +344,18 @@ jobs:
345
344
- *slack_notify_on_failure
346
345
- *save_cache
347
346
347
+ # -------------------------------------------------------------------------------------------
348
+ # Job to check that the commit message is formatted correctly.
349
+ # -------------------------------------------------------------------------------------------
350
+ check_commit_message :
351
+ << : *job_defaults
352
+ steps :
353
+ - *checkout_code
354
+ - *restore_cache
355
+ - *yarn_install
356
+
357
+ - run : yarn ng-dev commit-message validate-range --range << pipeline.git.base_revision >>...<<pipeline.git.revision>>
358
+
348
359
# -------------------------------------------------------------------------------------------
349
360
# Job that builds all release packages. The built packages can be then used in the same
350
361
# workflow to publish snapshot builds.
@@ -658,6 +669,10 @@ workflows:
658
669
filters : *only_on_pull_requests_filter
659
670
requires :
660
671
- build_release_packages
672
+ - check_commit_message :
673
+ # Only run the commit message check on PRs, because if the
674
+ # commit made it into the main branch, it's already too late.
675
+ filters : *only_on_pull_requests_filter
661
676
- lint :
662
677
filters : *ignore_presubmit_branch_filter
663
678
- ngcc_compatibility :
You can’t perform that action at this time.
0 commit comments