diff options
Diffstat (limited to 'src/sub_commands/prs')
| -rw-r--r-- | src/sub_commands/prs/create.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sub_commands/prs/create.rs b/src/sub_commands/prs/create.rs index ced1edd..ad6a61a 100644 --- a/src/sub_commands/prs/create.rs +++ b/src/sub_commands/prs/create.rs | |||
| @@ -329,7 +329,7 @@ pub fn generate_pr_and_patch_events( | |||
| 329 | let pr_event = EventBuilder::new( | 329 | let pr_event = EventBuilder::new( |
| 330 | nostr::event::Kind::Custom(PR_KIND), | 330 | nostr::event::Kind::Custom(PR_KIND), |
| 331 | format!("{title}\r\n\r\n{description}"), | 331 | format!("{title}\r\n\r\n{description}"), |
| 332 | &pr_tags, | 332 | pr_tags, |
| 333 | // TODO: add Repo event as root | 333 | // TODO: add Repo event as root |
| 334 | // TODO: people tag maintainers | 334 | // TODO: people tag maintainers |
| 335 | // TODO: add relay tags | 335 | // TODO: add relay tags |
| @@ -364,15 +364,15 @@ pub fn generate_patch_event( | |||
| 364 | git_repo | 364 | git_repo |
| 365 | .make_patch_from_commit(commit) | 365 | .make_patch_from_commit(commit) |
| 366 | .context(format!("cannot make patch for commit {commit}"))?, | 366 | .context(format!("cannot make patch for commit {commit}"))?, |
| 367 | &[ | 367 | [ |
| 368 | Tag::Reference(format!("r-{root_commit}")), | 368 | Tag::Reference(format!("r-{root_commit}")), |
| 369 | Tag::Reference(commit.to_string()), | 369 | Tag::Reference(commit.to_string()), |
| 370 | Tag::Reference(commit_parent.to_string()), | 370 | Tag::Reference(commit_parent.to_string()), |
| 371 | Tag::Event( | 371 | Tag::Event { |
| 372 | pr_event_id, | 372 | event_id: pr_event_id, |
| 373 | None, // TODO: add relay | 373 | relay_url: None, // TODO: add relay |
| 374 | Some(Marker::Root), | 374 | marker: Some(Marker::Root), |
| 375 | ), | 375 | }, |
| 376 | Tag::Generic( | 376 | Tag::Generic( |
| 377 | TagKind::Custom("commit".to_string()), | 377 | TagKind::Custom("commit".to_string()), |
| 378 | vec![commit.to_string()], | 378 | vec![commit.to_string()], |