diff options
author | EuAndreh <eu@euandre.org> | 2021-06-16 13:19:15 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-16 13:19:15 -0300 |
commit | eaff13cbe0fadcd06598b363709de76edf8b5f62 (patch) | |
tree | 8a39ccdac6641a072aa2ac1784043e3ef7eb5bb2 /aux/workflow/assert-changelog.sh | |
parent | aux/workflow/preamble.md: Join first and second paragraphs (diff) | |
download | git-permalink-eaff13cbe0fadcd06598b363709de76edf8b5f62.tar.gz git-permalink-eaff13cbe0fadcd06598b363709de76edf8b5f62.tar.xz |
aux/workflow/assert-changelog.sh: Assert link exists in CHANGELOG
Diffstat (limited to 'aux/workflow/assert-changelog.sh')
-rwxr-xr-x | aux/workflow/assert-changelog.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/aux/workflow/assert-changelog.sh b/aux/workflow/assert-changelog.sh index bef610b..dc8867f 100755 --- a/aux/workflow/assert-changelog.sh +++ b/aux/workflow/assert-changelog.sh @@ -1,9 +1,18 @@ #!/bin/sh set -eu +TLD="$(cat aux/tld.txt)" PROJECT="$1" shift +HOMEPAGE_LINK="Changelog for [$PROJECT](https://$TLD/$PROJECT/)." + +if ! grep -qF "$HOMEPAGE_LINK" CHANGELOG.md; then + echo "Missing link to homepage in CHANGELOG.md:" >&2 + echo "$HOMEPAGE_LINK" + exit 1 +fi + assert() { DATE="$1" VVERSION="$2" |