diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-10-17 09:30:35 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-10-17 10:20:43 +0100 |
| commit | 2bf98e91e5b5a7d1b18557e65711b5ef3d1a54a3 (patch) | |
| tree | 0a7726ee5a6344bae6dea0f8c784548bb75b622f /src/bin/ngit/sub_commands/send.rs | |
| parent | 0e8fcc743b343c620a6723f5ad517ab98f140401 (diff) | |
feat(send): add `merge-base` tag to PR (Update)
following its inclusion in the NIP-34 spec
Diffstat (limited to 'src/bin/ngit/sub_commands/send.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/send.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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 | |||
| 206 | commits.reverse(); | 206 | commits.reverse(); |
| 207 | 207 | ||
| 208 | let events = if as_pr { | 208 | let events = if as_pr { |
| 209 | let tip = commits.last().context("no commits")?; // commits has been reversed to oldest first | ||
| 210 | let first_commit = commits.first().context("no commits")?; | ||
| 209 | select_servers_push_refs_and_generate_pr_or_pr_update_event( | 211 | select_servers_push_refs_and_generate_pr_or_pr_update_event( |
| 210 | &client, | 212 | &client, |
| 211 | &git_repo, | 213 | &git_repo, |
| 212 | &repo_ref, | 214 | &repo_ref, |
| 213 | commits.last().context("no commits")?, | 215 | tip, |
| 216 | first_commit, | ||
| 217 | git_repo.get_commit_parent(first_commit).ok().as_ref(), | ||
| 214 | &mut user_ref, | 218 | &mut user_ref, |
| 215 | root_proposal.as_ref(), | 219 | root_proposal.as_ref(), |
| 216 | &cover_letter_title_description, | 220 | &cover_letter_title_description, |