rochacbruno/python-project-template

HISTORY.md newest position is called (unreleased)

Open

#18 建立於 2022年2月18日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Makefile (184 fork)github user discovery
bughelp wanted

倉庫指標

Star
 (1,224 star)
PR 合併指標
 (PR 指標待抓取)

描述

When making a new release, HISTORY.md newest position is called (unreleased) instead of the newest version.

I've created a simple workaround by modifying release under Makefile.

Instead of calling:

@$(ENV_PREFIX)gitchangelog  > HISTORY.md

You could perhaps do something like:

@$(ENV_PREFIX)gitchangelog | sed "s/(unreleased)/$${TAG} ($$(date +%Y-%m-%d))/g" > HISTORY.md

Furthermore, you could get rid of all the release commits from changelog:

@$(ENV_PREFIX)gitchangelog | sed "s/(unreleased)/$${TAG} ($$(date +%Y-%m-%d))/g" | grep -v "Release: version" > HISTORY.md

This way HISTORY.md contains relevant commits only.

貢獻者指南