From e92baf174f93eedbc3ccedf98fc8957121f7d123 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 9 May 2024 19:26:12 +0200 Subject: [PATCH] feat: allow customizing ci branch per repo --- src/tci.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tci.rs b/src/tci.rs index 1f4c747..809a8dd 100644 --- a/src/tci.rs +++ b/src/tci.rs @@ -24,6 +24,10 @@ impl Tci { return false; // we are in whitelist mode and this repo is not whitelisted } + if let Ok(repo_branch) = self.repo.cfg.get_str("tci.branch") { + return self.repo.updated(repo_branch); + } + match self.cfg.branch.as_deref() { None => self.repo.updated("tci"), Some("") => true,