From 1022344a0529b5f6b50f35d3030a528a1a5c6f91 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 13 Feb 2024 16:25:19 +0000 Subject: feat!: nip34 set pr kind to patch kind this enables consistancy of display with simple clients that are just taking the output of `git format-patch` --- src/sub_commands/prs/list.rs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/sub_commands/prs/list.rs') 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::{ client::Connect, git::{Repo, RepoActions}, repo_ref::{self, RepoRef, REPO_REF_KIND}, - sub_commands::prs::create::{ - event_is_cover_letter, event_to_cover_letter, PATCH_KIND, PR_KIND, - }, + sub_commands::prs::create::{event_is_cover_letter, event_to_cover_letter, PATCH_KIND}, Cli, }; @@ -195,10 +193,7 @@ pub async fn find_pr_events( repo_ref.relays.clone(), vec![ nostr::Filter::default() - .kinds(vec![ - nostr::Kind::Custom(PR_KIND), - nostr::Kind::Custom(PATCH_KIND), - ]) + .kind(nostr::Kind::Custom(PATCH_KIND)) .custom_tag(nostr::Alphabet::T, vec!["root"]) .identifiers( repo_ref @@ -208,10 +203,7 @@ pub async fn find_pr_events( ), // also pick up prs from the same repo but no target at our maintainers repo events nostr::Filter::default() - .kinds(vec![ - nostr::Kind::Custom(PR_KIND), - nostr::Kind::Custom(PATCH_KIND), - ]) + .kind(nostr::Kind::Custom(PATCH_KIND)) .custom_tag(nostr::Alphabet::T, vec!["root"]) .reference(root_commit), ], -- cgit v1.2.3