Skip to content

Commit

Permalink
chore: auto spell check and fix notes/changelog on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Thurman committed Sep 21, 2021
1 parent c5a49d0 commit 517b2c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/compile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ compile-all: deps-only
compile-only: deps-only
@echo "=== $(PROJECT_NAME) === [ compile ]: building commands:"
@mkdir -p $(BUILD_DIR)/$(GOOS)
echo "=== $(PROJECT_NAME) === [ compile ]: $(BUILD_DIR)$(GOOS)/$(BINARY)"; \
BUILD_FILES=`find $(SRCDIR)/newrelic -type f -name "*.go"` ; \
GOOS=$(GOOS) $(GO) build -ldflags=$(LDFLAGS) -o $(BUILD_DIR)/$(GOOS)/$(BINARY) $$BUILD_FILES ; \
@echo "=== $(PROJECT_NAME) === [ compile ]: $(BUILD_DIR)$(GOOS)/$(BINARY)"
@BUILD_FILES=`find $(SRCDIR)/newrelic -type f -name "*.go"` ; \
GOOS=$(GOOS) $(GO) build -ldflags=$(LDFLAGS) -o $(BUILD_DIR)/$(GOOS)/$(BINARY) $$BUILD_FILES ; \

# Override GOOS for these specific targets
compile-darwin: GOOS=darwin
Expand Down
2 changes: 2 additions & 0 deletions build/document.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ GODOC_HTTP ?= "localhost:6060"
CHANGELOG_CMD ?= git-chglog
CHANGELOG_FILE ?= CHANGELOG.md
RELEASE_NOTES_FILE ?= relnotes.md
MISSPELL ?= misspell

changelog: tools
@echo "=== $(PROJECT_NAME) === [ changelog ]: Generating changelog..."
Expand All @@ -26,5 +27,6 @@ release-notes: tools
@echo "=== $(PROJECT_NAME) === [ release-notes ]: Generating release notes..."
@mkdir -p $(SRCDIR)/tmp
@$(CHANGELOG_CMD) --silent -o $(SRCDIR)/tmp/$(RELEASE_NOTES_FILE) v$(PROJECT_VER_TAGGED)
@$(MISSPELL) -source text -w $(SRCDIR)/tmp/$(RELEASE_NOTES_FILE)

.PHONY: docs changelog release-notes
2 changes: 2 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ git checkout -b release/v${RELEASE_VERSION}

# Auto-generate CHANGELOG updates
git-chglog --next-tag v${RELEASE_VERSION} -o CHANGELOG.md --sort semver
# Fix any spelling issues in the CHANGELOG
misspell -source text -w CHANGELOG.md

# Commit CHANGELOG updates
git add CHANGELOG.md
Expand Down

0 comments on commit 517b2c8

Please sign in to comment.