Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-03-10 06:34:14 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-03-10 06:34:14 +0300
commit789cbeca36efcd135ec9ccb134d91d9487eeb034 (patch)
treede5a51c6b5310e1d0e214bdc696fc931c99cc43a /Makefile.util.mk
parenta7054c1ef71d0aad7c14d05bff3693c3485a6271 (diff)
Add changelog generation script
Changelog: other
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r--Makefile.util.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.util.mk b/Makefile.util.mk
index da29e0c8..2c139eba 100644
--- a/Makefile.util.mk
+++ b/Makefile.util.mk
@@ -1,6 +1,6 @@
GOLANGCI_LINT_IMAGE := golangci/golangci-lint:$(GOLANGCI_LINT_VERSION)
-.PHONY: lint test race acceptance bench cover list deps-check deps-download
+.PHONY: lint test race acceptance bench cover list deps-check deps-download changelog
OUT_FORMAT ?= colored-line-number
LINT_FLAGS ?= $(if $V,-v)
@@ -59,3 +59,9 @@ deps-download: .GOPATH/.ok
junit-report: .GOPATH/.ok bin/go-junit-report
cat tests.out | ./bin/go-junit-report -set-exit-code > junit-test-report.xml
+
+changelog:
+ TOKEN='$(GITLAB_PRIVATE_TOKEN)' bash ./.gitlab/scripts/changelog.sh
+ifndef GITLAB_PRIVATE_TOKEN
+ $(error GITLAB_PRIVATE_TOKEN is undefined)
+endif