diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-04 11:50:39 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-05 09:23:01 +0100 |
| commit | f48677bad3f3dabb80992806e0e4c8ad4d45c716 (patch) | |
| tree | 9d63debff0b602a15df56008cc739c087fbe8b26 /src/bin/git_remote_nostr/push.rs | |
| parent | f76fe63da5f2c2f85215e86c8ecc63eda7c93902 (diff) | |
feat(send): support PR and PR update events
send as a PR if the commit would make patches that are too big for
nostr events.
send as a PR update if the proposal is PR.
send as a PR, revising a patch root, if patches would be too big.
in tests `get_pretend_proposal_root_event` has to be a actual proposal
with a tip, rather than just a cover letter, so we have replaced it.
Diffstat (limited to 'src/bin/git_remote_nostr/push.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/push.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index e588a5a..3967699 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs | |||
| @@ -461,6 +461,7 @@ async fn generate_patches_or_pr_event_or_pr_updates( | |||
| 461 | ahead.first().context("no commits to push")?, | 461 | ahead.first().context("no commits to push")?, |
| 462 | user_ref, | 462 | user_ref, |
| 463 | root_proposal, | 463 | root_proposal, |
| 464 | &None, | ||
| 464 | signer, | 465 | signer, |
| 465 | term, | 466 | term, |
| 466 | ) | 467 | ) |