diff options
author | Cyborus <cyborus@noreply.codeberg.org> | 2024-09-05 20:22:55 +0200 |
---|---|---|
committer | Cyborus <cyborus@noreply.codeberg.org> | 2024-09-05 20:22:55 +0200 |
commit | 74d3748fa87bd25228f2b0b3d6f1976e1d22114d (patch) | |
tree | 1634bf460aeea7c7469354a7c192304cd8f6430c /src/issues.rs | |
parent | Merge pull request 'improve host name consistency' (#124) from host-consisten... (diff) | |
parent | feat: automatically add ssh url as alias if it is different (diff) | |
download | forgejo-cli-74d3748fa87bd25228f2b0b3d6f1976e1d22114d.tar.xz forgejo-cli-74d3748fa87bd25228f2b0b3d6f1976e1d22114d.zip |
Merge pull request 'host aliases' (#125) from alias-host into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/125
Diffstat (limited to 'src/issues.rs')
-rw-r--r-- | src/issues.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/issues.rs b/src/issues.rs index de8822a..091f221 100644 --- a/src/issues.rs +++ b/src/issues.rs @@ -168,7 +168,7 @@ pub enum ViewCommand { impl IssueCommand { pub async fn run(self, keys: &mut crate::KeyInfo, host_name: Option<&str>) -> eyre::Result<()> { use IssueSubcommand::*; - let repo = RepoInfo::get_current(host_name, self.repo(), self.remote.as_deref())?; + let repo = RepoInfo::get_current(host_name, self.repo(), self.remote.as_deref(), &keys)?; let api = keys.get_api(repo.host_url()).await?; let repo = repo.name().ok_or_else(|| self.no_repo_error())?; match self.command { |