Skip to content

Commit 761602d

Browse files
committed
ci: only validate PR commit messages and remove do not submit check
1 parent 11af900 commit 761602d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.circleci/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ jobs:
167167
- custom_attach_workspace
168168
- run:
169169
name: Validate Commit Messages
170-
command: yarn -s admin validate-commits
171-
- run:
172-
name: Validate "do not submit" Commits
173-
command: yarn -s admin validate-do-not-submit
170+
command: >
171+
if [[ -n "${CIRCLE_PR_NUMBER}" ]]; then
172+
yarn -s admin validate-commits
173+
else
174+
echo "This build is not over a PR, nothing to do."
175+
fi
174176
- run:
175177
command: yarn -s admin validate --ci
176178

0 commit comments

Comments
 (0)