diff options
Diffstat (limited to 'src/sub_commands/prs')
| -rw-r--r-- | src/sub_commands/prs/create.rs | 2 | ||||
| -rw-r--r-- | src/sub_commands/prs/list.rs | 1 |
2 files changed, 2 insertions, 1 deletions
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( | |||
| 100 | generate_pr_and_patch_events(&title, &description, &to_branch, &git_repo, &ahead, &keys)?; | 100 | generate_pr_and_patch_events(&title, &description, &to_branch, &git_repo, &ahead, &keys)?; |
| 101 | 101 | ||
| 102 | let repo_ref = repo_ref::fetch( | 102 | let repo_ref = repo_ref::fetch( |
| 103 | &git_repo, | ||
| 103 | git_repo | 104 | git_repo |
| 104 | .get_root_commit(&to_branch) | 105 | .get_root_commit(&to_branch) |
| 105 | .context("failed to get root commit of the repository")? | 106 | .context("failed to get root commit of the repository")? |
| 106 | .to_string(), | 107 | .to_string(), |
| 107 | &client, | 108 | &client, |
| 108 | // TODO: get relay list from local yaml file | ||
| 109 | user_ref.relays.write(), | 109 | user_ref.relays.write(), |
| 110 | ) | 110 | ) |
| 111 | .await?; | 111 | .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( | |||
| 45 | let client = <MockConnect as std::default::Default>::default(); | 45 | let client = <MockConnect as std::default::Default>::default(); |
| 46 | 46 | ||
| 47 | let repo_ref = repo_ref::fetch( | 47 | let repo_ref = repo_ref::fetch( |
| 48 | &git_repo, | ||
| 48 | root_commit.to_string(), | 49 | root_commit.to_string(), |
| 49 | &client, | 50 | &client, |
| 50 | client.get_more_fallback_relays().clone(), | 51 | client.get_more_fallback_relays().clone(), |