Skip to content

Commit

Permalink
build: bump git-cliff to 2.4 and remove history before 1.0 from chang…
Browse files Browse the repository at this point in the history
…elog
  • Loading branch information
lklimek committed Aug 15, 2024
1 parent eac51c1 commit 7089486
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 65 deletions.
61 changes: 0 additions & 61 deletions scripts/release/cliff-pre.toml

This file was deleted.

6 changes: 5 additions & 1 deletion scripts/release/cliff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# configuration file for git-cliff (0.1.0)
# configuration file for git-cliff (2.4.0)

[changelog]
# changelog header
Expand Down Expand Up @@ -59,3 +59,7 @@ ignore_tags = 'v[0-9]\.[0-9]+\.[0-9]+-[a-z]+\.[0-9]+'
topo_order = true
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"

[remote.github]
owner = "dashpay"
repo = "tenderdash"
12 changes: 9 additions & 3 deletions scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ function generateChangelog {
debug Generating CHANGELOG

CLIFF_CONFIG="${REPO_DIR}/scripts/release/cliff.toml"
CLIFF_ARGS=
if [[ "${RELEASE_TYPE}" = "prerelease" ]]; then
CLIFF_CONFIG="${REPO_DIR}/scripts/release/cliff-pre.toml"
CLIFF_ARGS="--ignore-tags='v[0-9]\.[0-9]+\.[0-9]+-[a-z]+\.[0-9]+'"
fi

echo 2>"${REPO_DIR}/CHANGELOG.md"
Expand All @@ -172,12 +173,14 @@ function generateChangelog {
-v "${REPO_DIR}/.git":/app/.git:ro \
-v "${CLIFF_CONFIG}":/cliff.toml:ro \
-v "${REPO_DIR}/CHANGELOG.md":/CHANGELOG.md \
orhunp/git-cliff:0.10.0 \
orhunp/git-cliff:2.4.0 \
--config /cliff.toml \
--output /CHANGELOG.md \
--tag "v${NEW_PACKAGE_VERSION}" \
${CLIFF_ARGS} \
--strip all \
--verbose
--verbose \
'v1.0.0-dev.1..HEAD'
}

function updateVersionGo {
Expand Down Expand Up @@ -376,6 +379,9 @@ configureDefaults
parseArgs "$@"
configureFinal

generateChangelog
exit 0

if [[ -n "${CLEANUP}" ]]; then
cleanup
deleteRelease
Expand Down

0 comments on commit 7089486

Please sign in to comment.