Automated changelog: just link to github for automated builds

Change-Id: I5aa98f07a6c2053fe263d26f9d2265fb2193afef
This commit is contained in:
SpiritCroc 2021-01-16 18:59:42 +01:00
parent 9687bacd9a
commit 92d799ea5a

View file

@ -128,6 +128,12 @@ set_prop "versionName" "\"$version\""
changelog_dir=fastlane/metadata/android/en-US/changelogs
changelog_file="$changelog_dir/$versionCode.txt"
mkdir -p "$changelog_dir"
if [ "$release_type" = "test" ]; then
# Automated changelog is usually too long for F-Droid changelog
current_commit="$(git rev-parse HEAD)"
echo "Full changelog: https://github.com/SchildiChat/SchildiChat-android/commits/$current_commit" \
> "$changelog_file"
else
git log --reverse --pretty=format:"- %s" "$last_tag".. --committer="$(git config user.name)" \
| grep -v 'Automatic revert to unchanged upstream strings' \
| grep -v 'Automatic upstream merge preparation' \
@ -137,6 +143,7 @@ git log --reverse --pretty=format:"- %s" "$last_tag".. --committer="$(git config
| grep -v "Automatic SchildiChat string correction" \
| grep -v 'merge_helpers\|README\|increment_version' \
> "$changelog_file"
fi
if [ "$release_type" != "test" ]; then
$EDITOR "$changelog_file" || true
read -p "Press enter when changelog is done"