From 3e52ecb609f8424cffb2e6398c599aa78224825a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 12 Dec 2023 00:00:00 +0000 Subject: feat(claim) create yaml add maintainers and relays - create yaml file with maintainers and relays - add maintainers to repo event - add current user as maintainer - custom repo relays from cli argument - save git-server in repo event --- src/sub_commands/prs/create.rs | 2 +- src/sub_commands/prs/list.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sub_commands/prs') diff --git a/src/sub_commands/prs/create.rs b/src/sub_commands/prs/create.rs index 5c4e578..5e41a56 100644 --- a/src/sub_commands/prs/create.rs +++ b/src/sub_commands/prs/create.rs @@ -100,12 +100,12 @@ pub async fn launch( generate_pr_and_patch_events(&title, &description, &to_branch, &git_repo, &ahead, &keys)?; let repo_ref = repo_ref::fetch( + &git_repo, git_repo .get_root_commit(&to_branch) .context("failed to get root commit of the repository")? .to_string(), &client, - // TODO: get relay list from local yaml file user_ref.relays.write(), ) .await?; diff --git a/src/sub_commands/prs/list.rs b/src/sub_commands/prs/list.rs index 13f29fd..a6aa8b7 100644 --- a/src/sub_commands/prs/list.rs +++ b/src/sub_commands/prs/list.rs @@ -45,6 +45,7 @@ pub async fn launch( let client = ::default(); let repo_ref = repo_ref::fetch( + &git_repo, root_commit.to_string(), &client, client.get_more_fallback_relays().clone(), -- cgit v1.2.3