mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 18:36:21 +03:00
Automated changelog: just link to github for automated builds
Change-Id: I5aa98f07a6c2053fe263d26f9d2265fb2193afef
This commit is contained in:
parent
9687bacd9a
commit
92d799ea5a
1 changed files with 16 additions and 9 deletions
|
@ -128,6 +128,12 @@ set_prop "versionName" "\"$version\""
|
||||||
changelog_dir=fastlane/metadata/android/en-US/changelogs
|
changelog_dir=fastlane/metadata/android/en-US/changelogs
|
||||||
changelog_file="$changelog_dir/$versionCode.txt"
|
changelog_file="$changelog_dir/$versionCode.txt"
|
||||||
mkdir -p "$changelog_dir"
|
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)" \
|
git log --reverse --pretty=format:"- %s" "$last_tag".. --committer="$(git config user.name)" \
|
||||||
| grep -v 'Automatic revert to unchanged upstream strings' \
|
| grep -v 'Automatic revert to unchanged upstream strings' \
|
||||||
| grep -v 'Automatic upstream merge preparation' \
|
| 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 "Automatic SchildiChat string correction" \
|
||||||
| grep -v 'merge_helpers\|README\|increment_version' \
|
| grep -v 'merge_helpers\|README\|increment_version' \
|
||||||
> "$changelog_file"
|
> "$changelog_file"
|
||||||
|
fi
|
||||||
if [ "$release_type" != "test" ]; then
|
if [ "$release_type" != "test" ]; then
|
||||||
$EDITOR "$changelog_file" || true
|
$EDITOR "$changelog_file" || true
|
||||||
read -p "Press enter when changelog is done"
|
read -p "Press enter when changelog is done"
|
||||||
|
|
Loading…
Reference in a new issue