Linkify changelog issues

This commit is contained in:
Preetha Appan 2017-12-12 15:52:58 -06:00
parent 309cd31d57
commit c674d7de28
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,10 @@ vendorfmt:
@echo "--> Formatting vendor/vendor.json"
test -x $(GOPATH)/bin/vendorfmt || go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt
vendorfmt
changelogfmt:
@echo "--> Making [GH-xxxx] references clickable..."
@sed -E 's|([^\[])\[GH-([0-9]+)\]|\1[[GH-\2](https://github.com/hashicorp/nomad/issues/\2)]|g' CHANGELOG.md > changelog.tmp && mv changelog.tmp CHANGELOG.md
.PHONY: dev
dev: GOOS=$(shell go env GOOS)