upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands/prs/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sub_commands/prs/list.rs')
-rw-r--r--src/sub_commands/prs/list.rs14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/sub_commands/prs/list.rs b/src/sub_commands/prs/list.rs
index 36cbd02..d4dcfec 100644
--- a/src/sub_commands/prs/list.rs
+++ b/src/sub_commands/prs/list.rs
@@ -10,9 +10,7 @@ use crate::{
10 client::Connect, 10 client::Connect,
11 git::{Repo, RepoActions}, 11 git::{Repo, RepoActions},
12 repo_ref::{self, RepoRef, REPO_REF_KIND}, 12 repo_ref::{self, RepoRef, REPO_REF_KIND},
13 sub_commands::prs::create::{ 13 sub_commands::prs::create::{event_is_cover_letter, event_to_cover_letter, PATCH_KIND},
14 event_is_cover_letter, event_to_cover_letter, PATCH_KIND, PR_KIND,
15 },
16 Cli, 14 Cli,
17}; 15};
18 16
@@ -195,10 +193,7 @@ pub async fn find_pr_events(
195 repo_ref.relays.clone(), 193 repo_ref.relays.clone(),
196 vec![ 194 vec![
197 nostr::Filter::default() 195 nostr::Filter::default()
198 .kinds(vec![ 196 .kind(nostr::Kind::Custom(PATCH_KIND))
199 nostr::Kind::Custom(PR_KIND),
200 nostr::Kind::Custom(PATCH_KIND),
201 ])
202 .custom_tag(nostr::Alphabet::T, vec!["root"]) 197 .custom_tag(nostr::Alphabet::T, vec!["root"])
203 .identifiers( 198 .identifiers(
204 repo_ref 199 repo_ref
@@ -208,10 +203,7 @@ pub async fn find_pr_events(
208 ), 203 ),
209 // also pick up prs from the same repo but no target at our maintainers repo events 204 // also pick up prs from the same repo but no target at our maintainers repo events
210 nostr::Filter::default() 205 nostr::Filter::default()
211 .kinds(vec![ 206 .kind(nostr::Kind::Custom(PATCH_KIND))
212 nostr::Kind::Custom(PR_KIND),
213 nostr::Kind::Custom(PATCH_KIND),
214 ])
215 .custom_tag(nostr::Alphabet::T, vec!["root"]) 207 .custom_tag(nostr::Alphabet::T, vec!["root"])
216 .reference(root_commit), 208 .reference(root_commit),
217 ], 209 ],