From b7d4c5a81f0a008524dcc5b4f286f0cf700013c0 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 18 Aug 2025 17:25:50 +0100 Subject: feat(list): add PR fetch and checkout support abstracted git remote helper fetch functions added support to `ngit list` to fetch PR data and checkout as proposal branch --- src/bin/git_remote_nostr/list.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/bin/git_remote_nostr/list.rs') diff --git a/src/bin/git_remote_nostr/list.rs b/src/bin/git_remote_nostr/list.rs index f5eaee4..be83991 100644 --- a/src/bin/git_remote_nostr/list.rs +++ b/src/bin/git_remote_nostr/list.rs @@ -5,6 +5,7 @@ use client::get_state_from_cache; use git::RepoActions; use ngit::{ client, + fetch::fetch_from_git_server, git::{self}, git_events::{KIND_PULL_REQUEST, KIND_PULL_REQUEST_UPDATE, event_to_cover_letter, tag_value}, list::{get_ahead_behind, list_from_remotes}, @@ -14,10 +15,7 @@ use ngit::{ }; use repo_ref::RepoRef; -use crate::{ - fetch::{fetch_from_git_server, make_commits_for_proposal}, - git::Repo, -}; +use crate::{fetch::make_commits_for_proposal, git::Repo}; pub async fn run_list( git_repo: &Repo, -- cgit v1.2.3