Skip to content

Commit

Permalink
(no merge) debugging git lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Feb 21, 2020
1 parent 269279f commit b05113a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ lint-go:
lint-git: fetch-git
@COMMIT_SHA=`git rev-parse $(OASIS_CORE_GIT_ORIGIN_REMOTE)/$(RELEASE_BRANCH)` && \
echo "Running gitlint for commits from $(OASIS_CORE_GIT_ORIGIN_REMOTE)/$(RELEASE_BRANCH) ($${COMMIT_SHA:0:7})..."; \
gitlint --commits $(OASIS_CORE_GIT_ORIGIN_REMOTE)/$(RELEASE_BRANCH)...HEAD
gitlint --debug --commits $(OASIS_CORE_GIT_ORIGIN_REMOTE)/$(RELEASE_BRANCH)...HEAD

lint-md:
@npx markdownlint-cli '**/*.md' --ignore .changelog/
Expand Down Expand Up @@ -134,8 +134,12 @@ clean: $(clean-targets)
# Fetch all the latest changes (including tags) from the canonical upstream git
# repository.
fetch-git:
git branch -a
@$(ECHO_STDERR) "Fetching the latest changes (including tags) from $(OASIS_CORE_GIT_ORIGIN_REMOTE) remote..."
@git fetch $(OASIS_CORE_GIT_ORIGIN_REMOTE) --tags
git branch -a
git fetch $(OASIS_CORE_GIT_ORIGIN_REMOTE) $(RELEASE_BRANCH)
git branch -a

# Assemble Change log.
changelog: fetch-git
Expand Down

0 comments on commit b05113a

Please sign in to comment.