Skip to content

Commit

Permalink
Require specifying the PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Mar 19, 2024
1 parent cb735e5 commit 71970a1
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,11 @@ changelog/new-entry:
ifeq (, $(shell which changelog-entry))
@go install github.com/hashicorp/go-changelog/cmd/changelog-entry@latest
endif
changelog-entry -dir .changelog -allowed-types-file .changelog/types.txt
ifeq (, $(CHANGELOG_PR))
@echo "Please set the CHANGELOG_PR environment variable to the PR number to associate with the changelog."
else
changelog-entry -dir .changelog -allowed-types-file .changelog/types.txt -pr ${CHANGELOG_PR}
endif

.PHONY: changelog/check
changelog/check:
Expand Down

0 comments on commit 71970a1

Please sign in to comment.