From 2bf98e91e5b5a7d1b18557e65711b5ef3d1a54a3 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 17 Oct 2025 09:30:35 +0100 Subject: feat(send): add `merge-base` tag to PR (Update) following its inclusion in the NIP-34 spec --- src/bin/ngit/sub_commands/send.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/bin/ngit') diff --git a/src/bin/ngit/sub_commands/send.rs b/src/bin/ngit/sub_commands/send.rs index 0e4a572..6ae0cda 100644 --- a/src/bin/ngit/sub_commands/send.rs +++ b/src/bin/ngit/sub_commands/send.rs @@ -206,11 +206,15 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs, no_fetch: bool) -> Re commits.reverse(); let events = if as_pr { + let tip = commits.last().context("no commits")?; // commits has been reversed to oldest first + let first_commit = commits.first().context("no commits")?; select_servers_push_refs_and_generate_pr_or_pr_update_event( &client, &git_repo, &repo_ref, - commits.last().context("no commits")?, + tip, + first_commit, + git_repo.get_commit_parent(first_commit).ok().as_ref(), &mut user_ref, root_proposal.as_ref(), &cover_letter_title_description, -- cgit v1.2.3