pub fn repo_with(origin_url: impl FnOnce() -> Result<String>) -> Result<Repo>Expand description
Actions sets GITHUB_REPOSITORY. Locally, origin is the contract.
ยงErrors
Returns an error when GITHUB_REPOSITORY is set but is not owner/name,
or, without it, when the origin URL cannot be read or is not a GitHub
remote. Without GITHUB_REPOSITORY, the error is a
lookup::Unavailable: the repository names no GitHub repository to ask.
A malformed GITHUB_REPOSITORY is a setting to fix, so it stays unmarked.