EffectiveOwner returns the owner, preferring RepoOwner for plugin entries.
()
| 76 | |
| 77 | // EffectiveOwner returns the owner, preferring RepoOwner for plugin entries. |
| 78 | func (r RepoEntry) EffectiveOwner() string { |
| 79 | if r.RepoOwner != "" { |
| 80 | return r.RepoOwner |
| 81 | } |
| 82 | return r.Owner |
| 83 | } |
| 84 | |
| 85 | // EffectiveName returns the repo name, preferring RepoName for plugin entries. |
| 86 | func (r RepoEntry) EffectiveName() string { |
no outgoing calls