diff --git a/increment_version.sh b/increment_version.sh index 1acaeae6bb..3d124a17de 100755 --- a/increment_version.sh +++ b/increment_version.sh @@ -103,7 +103,16 @@ set_prop "versionName" "\"$version\"" changelog_dir=fastlane/metadata/android/en-US/changelogs changelog_file="$changelog_dir/$versionCode.txt" mkdir -p "$changelog_dir" -git log --reverse --pretty=format:"- %s" "$last_tag".. --committer="$(git config user.name)" > "$changelog_file" +echo "Automatic changelog from commit history:" > "$changelog_file" +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' \ + | sed "s|Merge tag '\\(.*\\)' into sc|Update codebase to Element \1|" \ + | grep -v "Automatic color correction" \ + | grep -v "Automatic upstream merge postprocessing" \ + | grep -v "Automatic SchildiChat string correction" \ + | grep -v 'merge_helpers\|README\|increment_version' \ + >> "$changelog_file" if [ "$release_type" != "test" ]; then $EDITOR "$changelog_file" || true read -p "Press enter when changelog is done"