<commit_before>NAME := dotfiles
VERSION := $(shell cat VERSION)
# Bump the version in the version file. Set BUMP to [ patch | minor | major ]
BUMP := patch
LATEST_TAG_HASH := $(shell git rev-list --tags --max-count=1)
ifdef LATEST_TAG_HASH
	LATEST_TAG := $(shell git describe --tags $(LATEST_TAG_HASH))
endif
ifdef LATEST_TAG
	REVISION_RANGE := "$(LATEST_TAG)..HEAD"
endif
CHANGELOG := $(shell git log $(REVISION_RANGE) --pretty=format:'%h - %s <br>' --no-merges)
release: 
	@#go get -u github.com/c4milo/github-release
	go get -u github.com/itchio/gothub
	#@go get -u github.com/deild/sembump
	$(eval NEW_VERSION = $(shell sembump -kind $(BUMP) $(VERSION)))
	@echo "Bumping version from $(VERSION) to $(NEW_VERSION)"
	@echo $(NEW_VERSION) > VERSION
	#@echo "Updating links to download binaries in README.md"
	#sed -i s/$(VERSION)/$(NEW_VERSION)/g README.md
	git add VERSION README.md
	git commit -vsam "bump: version to $(NEW_VERSION)"
	git push --set-upstream origin `git rev-parse --abbrev-ref HEAD`
	@echo "Release version $(NEW_VERSION)"
	@#github-release deild/$(NAME) v$(NEW_VERSION) "$$(git rev-parse --abbrev-ref HEAD)" "**Changelog**<br>$(CHANGELOG)" ''
	gothub release \
    --user deild \
    --repo $(NAME) \
    --tag v$(NEW_VERSION) \
    --name "v$(NEW_VERSION)" \
    --description "**Changelog**<br>$(CHANGELOG)"
	git pull --rebase --prune<commit_msg>docs : add target description in Makefile<commit_after>NAME := dotfiles
VERSION := $(shell cat VERSION)
# Bump the version in the version file. Set BUMP to [ patch | minor | major ]
BUMP := patch
LATEST_TAG_HASH := $(shell git rev-list --tags --max-count=1)
ifdef LATEST_TAG_HASH
	LATEST_TAG := $(shell git describe --tags $(LATEST_TAG_HASH))
endif
ifdef LATEST_TAG
	REVISION_RANGE := "$(LATEST_TAG)..HEAD"
endif
CHANGELOG := $(shell git log $(REVISION_RANGE) --pretty=format:'%h - %s <br>' --no-merges)

release: ## Bump the version, Commit the version, Push and Publish to GitHub
	@#go get -u github.com/c4milo/github-release
	go get -u github.com/itchio/gothub
	#@go get -u github.com/deild/sembump
	$(eval NEW_VERSION = $(shell sembump -kind $(BUMP) $(VERSION)))
	@echo "Bumping version from $(VERSION) to $(NEW_VERSION)"
	@echo $(NEW_VERSION) > VERSION
	git add VERSION
	git commit -vsam "bump: version to $(NEW_VERSION)"
	git push --set-upstream origin `git rev-parse --abbrev-ref HEAD`
	@echo "Release version $(NEW_VERSION)"
	@#github-release deild/$(NAME) v$(NEW_VERSION) "$$(git rev-parse --abbrev-ref HEAD)" "**Changelog**<br>$(CHANGELOG)" ''
	gothub release \
    --user deild \
    --repo $(NAME) \
    --tag v$(NEW_VERSION) \
    --name "v$(NEW_VERSION)" \
    --description "**Changelog**<br>$(CHANGELOG)"
	git pull --rebase --prune

help: ## Displays the description of each target (Default)
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.DEFAULT_GOAL := help
{'fraction_non_alphanumeric': 0.175366769020812, 'fraction_numerical': 0.005800068236096895, 'mean_word_length': 4.081455805892547, 'pattern_counts': {'":': 1, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '577416', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1092, 'n_words': 302}