Skip to content

build: only run commit message checks on PRs #20698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,14 @@ jobs:
yarn check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json

- run: yarn ng-dev format changed --check << pipeline.git.base_revision >>
- run: yarn ng-dev commit-message validate-range --range << pipeline.git.base_revision >>...<<pipeline.git.revision>>
- run:
name: Check Commit Message (PR Only)
# Only run the commit message checks on pull requests since we can't do
# much about any failures that have made it into the main branch.
command: |
if [ -n "$CIRCLE_PR_NUMBER" ]; then
yarn ng-dev commit-message validate-range --range << pipeline.git.base_revision >>...<<pipeline.git.revision>>
fi
- run: yarn ownerslint
- run: yarn stylelint
- run: yarn tslint
Expand Down