From 84695b55642032cfa4a8e4157d1822a4b864fd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 15 Aug 2024 13:23:21 +0200 Subject: [PATCH] Format --- src/main.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main.rs b/src/main.rs index f4cc468..65ce18f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,18 +90,18 @@ async fn main() -> Result<(), anyhow::Error> { match &cli.command { Commands::Repo { remote } => { let repo = &mut RepoChange { - name: parse_remote(remote).context("while parsing remote")?.1, - remote: remote.clone(), + name: parse_remote(remote).context("while parsing remote")?.1, + remote: remote.clone(), base_commit: cli.base, head_commit: cli.head, - changes: Vec::new(), + changes: Vec::new(), }; find_reviews(&octocrab, repo).await.context("while finding reviews")?; print_changes(&[repo.clone()]); }, Commands::HelmChart { workspace } => { - let mut changes = find_values_yaml(workspace.clone(), &cli.base, &cli.head) - .context("while finding values.yaml files")?; + let mut changes = + find_values_yaml(workspace.clone(), &cli.base, &cli.head).context("while finding values.yaml files")?; for repo in &mut changes { find_reviews(&octocrab, repo) @@ -177,11 +177,11 @@ fn find_values_yaml(workspace: String, base: &str, head: &str) -> Result, repo: &mut RepoChange) -> Result let change_commit = ChangeCommit { headline: commit.commit.message.split('\n').collect::>()[0].to_string(), - link: commit.html_url.clone(), + link: commit.html_url.clone(), }; if associated_prs.is_empty() { repo.changes.push(Change { - commits: vec![change_commit], - pr_link: None, + commits: vec![change_commit], + pr_link: None, approvals: Vec::new(), }); continue; @@ -271,8 +271,8 @@ async fn find_reviews(octocrab: &Arc, repo: &mut RepoChange) -> Result } let mut review = Change { - commits: vec![change_commit.clone()], - pr_link: Some( + commits: vec![change_commit.clone()], + pr_link: Some( associated_pr .html_url .as_ref()