Skip to content

Commit

Permalink
Allow overriding the base commit for template linting when running lo…
Browse files Browse the repository at this point in the history
…cally
  • Loading branch information
JoelSpeed committed Aug 11, 2021
1 parent 0e3c3a3 commit c58d43d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##@ General

RUNTIME ?= podman # container command for linter and report-upload
PULL_BASE_SHA ?= origin/master # Allow the template check base ref to be overriden

.PHONY: help
help: ## Display this help
Expand All @@ -17,6 +18,7 @@ lint: ## run the markdown linter
--rm=true \
--env RUN_LOCAL=true \
--env VALIDATE_MARKDOWN=true \
--env PULL_BASE_SHA=$(PULL_BASE_SHA) \
-v $$(pwd):/workdir:Z \
enhancements-markdownlint:latest

Expand Down

0 comments on commit c58d43d

Please sign in to comment.