summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar <oskar@mullvad.net>2025-10-27 12:00:34 +0100
committerOskar <oskar@mullvad.net>2025-10-28 09:50:35 +0100
commit79c2656ec0f163750bc3707310776224fcfaaa46 (patch)
tree2ea8051b40c8cf562c7fb15bbec840b925db5d3d
parent9e3e825e8c20870457410fd1a9568a4899ad93d8 (diff)
downloadmullvadvpn-79c2656ec0f163750bc3707310776224fcfaaa46.tar.xz
mullvadvpn-79c2656ec0f163750bc3707310776224fcfaaa46.zip
Open editor to finalize changelog in 4-make-release
-rwxr-xr-xdesktop/scripts/release/4-make-release16
1 files changed, 14 insertions, 2 deletions
diff --git a/desktop/scripts/release/4-make-release b/desktop/scripts/release/4-make-release
index 9766223ec0..051d8766a9 100755
--- a/desktop/scripts/release/4-make-release
+++ b/desktop/scripts/release/4-make-release
@@ -62,10 +62,22 @@ function publish_release {
body+="\n$changelog"
+ read -rp "The suggested changelog will be opened in an editor, please finalize and save it before exiting. Press enter to open changelog..."
+
+ tmp_changelog_file=$(mktemp)
+ {
+ printf "%b" "$body"
+ printf "%b" "\n\n<!--\nThe following artifacts will be included:\n"
+ # shellcheck disable=SC2012
+ ls -lh "$ARTIFACT_DIR" | tail -n +2 | awk '{print $9,"( Size:",$5,")"}'
+ echo "-->"
+ } > "$tmp_changelog_file"
+
+ "${EDITOR:-"vim"}" "$tmp_changelog_file"
+
log_header "Creating GitHub release"
- # shellcheck disable=SC2059
# shellcheck disable=SC2046
- printf "$body" | gh release create "${release_flags[@]}" "$PRODUCT_VERSION" $(printf "%s " "$ARTIFACT_DIR"/*)
+ gh release create "${release_flags[@]}" "$PRODUCT_VERSION" $(printf "%s " "$ARTIFACT_DIR"/*) < "$tmp_changelog_file"
log_success "\nThe above URL contains the text \"untagged\", but don't worry it is tagged properly and everything will look correct once it's published."
}