feat: allow customizing ci branch per repo

This commit is contained in:
əlemi 2024-05-09 19:26:12 +02:00
parent 6ce590f95b
commit e92baf174f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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,