EffectiveBranch returns the branch, defaulting to "main".
()
| 92 | |
| 93 | // EffectiveBranch returns the branch, defaulting to "main". |
| 94 | func (r RepoEntry) EffectiveBranch() string { |
| 95 | if r.RepoBranch != "" { |
| 96 | return r.RepoBranch |
| 97 | } |
| 98 | if r.Branch != "" { |
| 99 | return r.Branch |
| 100 | } |
| 101 | return "main" |
| 102 | } |
| 103 | |
| 104 | // SubPath returns the sub-directory inside the repo where entities live |
| 105 | // (e.g. skillsPath or agentsPath). |
no outgoing calls