From 7ee69e12bc92de3b557289fc718c31c6d1b8cada Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 17 Apr 2019 10:09:37 +0200 Subject: [PATCH] Strip issues by just trimming after ending dot --- ci/commit-changelog.sh | 2 +- ci/strip-issues.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 ci/strip-issues.sh diff --git a/ci/commit-changelog.sh b/ci/commit-changelog.sh index cd5ef173..544ae8f8 100755 --- a/ci/commit-changelog.sh +++ b/ci/commit-changelog.sh @@ -7,7 +7,7 @@ RELEASE_NOTES="fastlane/metadata/en-US/release_notes.txt" sed "s/Unreleased/$VERSION Beta $BUILD ($DATE)/" $CHANGELOG >$CHANGELOG.tmp mv $CHANGELOG.tmp $CHANGELOG -ci/latest-changelog.sh | sed -E "s/^([^\[]*) \[.*#.*$/\1/" >ci/$CHANGELOG +ci/latest-changelog.sh | ci/strip-issues.sh >ci/$CHANGELOG cp ci/$CHANGELOG $RELEASE_NOTES git add $CHANGELOG $RELEASE_NOTES git commit -m "Set beta release" diff --git a/ci/strip-issues.sh b/ci/strip-issues.sh new file mode 100755 index 00000000..56dc8ef3 --- /dev/null +++ b/ci/strip-issues.sh @@ -0,0 +1,2 @@ +#!/bin/sh +sed -E "s/^(.*)\. .*$/\1./"