diff --git a/bin/nix-flake-update-pr b/bin/nix-flake-update-pr index c7dd718..dc01ca4 100755 --- a/bin/nix-flake-update-pr +++ b/bin/nix-flake-update-pr @@ -13,6 +13,21 @@ nfup_setup_credentials() { nfup_update() { nix flake update --commit-lock-file + + subject="$(git show -s --format=format:%s)" + message="$(git show -s --format=format:%b)" + + preamble="$(echo "${message}" | head -n 1)" + update="$(echo "${message}" | tail -n +3)" + + git commit --amend --message="${subject} + +${preamble} + +\`\`\` +${update} +\`\`\` +" } nfup_push() {