File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8787 run : |
8888 echo "Pull request titles should follow stdlib's Git commit message conventions."
8989 echo "Linting pull request title..."
90- make lint-commit-message GIT_COMMIT_MESSAGE='${{ github.event.pull_request.title }}'
90+ make lint-commit-message GIT_COMMIT_MESSAGE=" '${{ github.event.pull_request.title }}'"
9191 timeout-minutes : 5
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ endif
4343# @param {string} GIT_COMMIT_MESSAGE - Git commit message text
4444#
4545# @example
46- # make lint-commit-message GIT_COMMIT_MESSAGE=" feat: add `foo/bar`"
46+ # make lint-commit-message GIT_COMMIT_MESSAGE=' feat: add `foo/bar`'
4747# /
4848lint-commit-message :
4949ifeq ($(GIT_COMMIT_LINTER ) , commitlint)
50- $(QUIET) NODE_ENV="$(NODE_ENV)" NODE_PATH="$(NODE_PATH)" GIT_COMMIT_MESSAGE=" $(GIT_COMMIT_MESSAGE)" $(MAKE) -f $(this_file) commitlint-message
50+ $(QUIET) NODE_ENV="$(NODE_ENV)" NODE_PATH="$(NODE_PATH)" GIT_COMMIT_MESSAGE=' $(GIT_COMMIT_MESSAGE)' $(MAKE) -f $(this_file) commitlint-message
5151endif
5252
5353.PHONY : lint-commit-message
Original file line number Diff line number Diff line change @@ -92,10 +92,10 @@ commitlint: $(NODE_MODULES) commitlint-init
9292# @private
9393#
9494# @example
95- # make commitlint-message
95+ # make commitlint-message GIT_COMMIT_MESSAGE='feat: add `foo/bar`'
9696# /
9797commitlint-message : $(NODE_MODULES ) commitlint-init
98- $(QUIET ) ( printf " $( GIT_COMMIT_MESSAGE) " | " $( COMMITLINT) " $( COMMITLINT_FLAGS) ) || ( $( MAKE) -f $( this_file) commitlint-cleanup && exit 1 )
98+ $(QUIET ) ( printf ' $(GIT_COMMIT_MESSAGE)' | " $( COMMITLINT) " $( COMMITLINT_FLAGS) ) || ( $( MAKE) -f $( this_file) commitlint-cleanup && exit 1 )
9999 $(QUIET ) $(MAKE ) -f $(this_file ) commitlint-cleanup
100100
101101.PHONY : commitlint-message
You can’t perform that action at this time.
0 commit comments