mirror of
https://git.alemi.dev/tci.git
synced 2024-11-23 16:44:48 +01:00
feat: allow customizing ci branch per repo
This commit is contained in:
parent
6ce590f95b
commit
e92baf174f
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ impl Tci {
|
||||||
return false; // we are in whitelist mode and this repo is not whitelisted
|
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() {
|
match self.cfg.branch.as_deref() {
|
||||||
None => self.repo.updated("tci"),
|
None => self.repo.updated("tci"),
|
||||||
Some("") => true,
|
Some("") => true,
|
||||||
|
|
Loading…
Reference in a new issue