Creates a RepositoryOverride from an "owner/repository" string
(
repository_and_owner: String,
provider: Option<RepositoryProvider>,
)
| 196 | impl RepositoryOverride { |
| 197 | /// Creates a RepositoryOverride from an "owner/repository" string |
| 198 | pub fn from_arg( |
| 199 | repository_and_owner: String, |
| 200 | provider: Option<RepositoryProvider>, |
| 201 | ) -> Result<Self> { |
| 202 | let (owner, repository) = repository_and_owner |
| 203 | .split_once('/') |
| 204 | .context("Invalid owner/repository format")?; |
| 205 | Ok(Self { |
| 206 | owner: owner.to_string(), |
| 207 | repository: repository.to_string(), |
| 208 | repository_provider: provider.unwrap_or_default(), |
| 209 | }) |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | impl OrchestratorConfig { |
nothing calls this directly
no outgoing calls
no test coverage detected