Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into pr…
Browse files Browse the repository at this point in the history
…/Pranavchiku/2716
  • Loading branch information
kgryte committed Jul 31, 2024
2 parents 6da31f2 + 6ab8f80 commit da5f855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/make/lib/lint/git/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ endif
# @param {string} GIT_COMMIT_MESSAGE - Git commit message text
#
# @example
# make lint-commit-message GIT_COMMIT_MESSAGE="feat: add `foo/bar`"
# make lint-commit-message GIT_COMMIT_MESSAGE='feat: add `foo/bar`'
#/
lint-commit-message:
ifeq ($(GIT_COMMIT_LINTER), commitlint)
$(QUIET) NODE_ENV="$(NODE_ENV)" NODE_PATH="$(NODE_PATH)" GIT_COMMIT_MESSAGE="$(GIT_COMMIT_MESSAGE)" $(MAKE) -f $(this_file) commitlint-message
$(QUIET) NODE_ENV="$(NODE_ENV)" NODE_PATH="$(NODE_PATH)" GIT_COMMIT_MESSAGE='$(GIT_COMMIT_MESSAGE)' $(MAKE) -f $(this_file) commitlint-message
endif

.PHONY: lint-commit-message
Expand Down
4 changes: 2 additions & 2 deletions tools/make/lib/lint/git/commitlint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ commitlint: $(NODE_MODULES) commitlint-init
# @private
#
# @example
# make commitlint-message
# make commitlint-message GIT_COMMIT_MESSAGE='feat: add `foo/bar`'
#/
commitlint-message: $(NODE_MODULES) commitlint-init
$(QUIET) ( printf "$(GIT_COMMIT_MESSAGE)" | "$(COMMITLINT)" $(COMMITLINT_FLAGS) ) || ( $(MAKE) -f $(this_file) commitlint-cleanup && exit 1 )
$(QUIET) ( printf '$(GIT_COMMIT_MESSAGE)' | "$(COMMITLINT)" $(COMMITLINT_FLAGS) ) || ( $(MAKE) -f $(this_file) commitlint-cleanup && exit 1 )
$(QUIET) $(MAKE) -f $(this_file) commitlint-cleanup

.PHONY: commitlint-message
Expand Down

0 comments on commit da5f855

Please sign in to comment.