diff --git a/src/main.rs b/src/main.rs index 3abe8fe..f4cc468 100644 --- a/src/main.rs +++ b/src/main.rs @@ -193,19 +193,20 @@ fn find_values_yaml(workspace: String, base: &str, head: &str) -> Result, repo: &mut RepoChange) -> Result<(), anyhow::Error> { let (repo_owner, repo_name) = parse_remote(&repo.remote).context("while parsing remote")?; - let link_prefix = format!("https://github.com/{repo_owner}/{repo_name}"); - let compare = octocrab .commits(repo_owner.clone(), repo_name.clone()) .compare(&repo.base_commit, &repo.head_commit) .send() .await .context(format!( - "failed to compare {link_prefix}/compare/{}...{}", - &repo.base_commit, &repo.head_commit + "failed to compare {}/compare/{}...{}", + repo.remote.trim_end_matches(".git"), + &repo.base_commit, + &repo.head_commit ))?; for commit in &compare.commits {