aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/assert-changelog.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-15 17:31:16 -0300
committerEuAndreh <eu@euandre.org>2021-08-15 17:31:16 -0300
commit651bb5b3fb3a9b36599e1891efb22efb4bf34c3f (patch)
treeefbe3f44dccff3ed8eea651fed57c4ca937c03e9 /aux/workflow/assert-changelog.sh
parent_articles/2020-11-07-diy-an-offline-bug-tracker-with-text-files-git-and-email... (diff)
downloadeuandre.org-651bb5b3fb3a9b36599e1891efb22efb4bf34c3f.tar.gz
euandre.org-651bb5b3fb3a9b36599e1891efb22efb4bf34c3f.tar.xz
aux/: Update
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/assert-changelog.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/aux/workflow/assert-changelog.sh b/aux/workflow/assert-changelog.sh
index 7f9117f..ca86407 100755
--- a/aux/workflow/assert-changelog.sh
+++ b/aux/workflow/assert-changelog.sh
@@ -43,8 +43,9 @@ assert() {
DATE="$1"
VVERSION="$2"
VERSION="${2#v}"
- CHANGELOG_ENTRY="# [$VERSION](https://git.euandreh.xyz/$PROJECT/commit/?id=$VVERSION) - $DATE"
-
+ CHANGELOG_ENTRY="$(printf \
+ '# [%s](https://git.euandreh.xyz/%s/commit/?id=%s) - %s' \
+ "$VERSION" "$PROJECT" "$VVERSION" "$DATE")"
if ! grep -qF "$CHANGELOG_ENTRY" CHANGELOG.md; then
echo "Missing '$CHANGELOG_ENTRY' entry from CHANGELOG.md" >&2
exit 1