Creates a RepositoryOverride from an "owner/repository" string
(
repository_and_owner: String,
provider: Option<RepositoryProvider>,
)
| 140 | impl RepositoryOverride { |
| 141 | /// Creates a RepositoryOverride from an "owner/repository" string |
| 142 | pub fn from_arg( |
| 143 | repository_and_owner: String, |
| 144 | provider: Option<RepositoryProvider>, |
| 145 | ) -> Result<Self> { |
| 146 | let (owner, repository) = repository_and_owner |
| 147 | .split_once('/') |
| 148 | .context("Invalid owner/repository format")?; |
| 149 | Ok(Self { |
| 150 | owner: owner.to_string(), |
| 151 | repository: repository.to_string(), |
| 152 | repository_provider: provider.unwrap_or_default(), |
| 153 | }) |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | impl OrchestratorConfig { |
nothing calls this directly
no outgoing calls
no test coverage detected