Skip to main content

Module pr

Module pr 

Source

Re-exports§

pub use super::gitea::pr::gitea_base_url;
pub use super::gitea::pr::resolve_gitea_token;

Structs§

CreatePrOptions
PullRequest
UpdatePrOptions

Enums§

MergeMethod

Traits§

PrClient

Functions§

detect_platform_from_remote
Detect platform + owner/repo from the origin remote URL. Convenience wrapper around detect_platform_from_remote_named for callers that don’t need to choose which remote to inspect.
detect_platform_from_remote_named
Same as detect_platform_from_remote but takes the remote name explicitly. Used by the platform-management commands (pipeline, job, package, release) to support managing a project mirrored across multiple platforms — e.g. gitorii itself has origin → gitlab and github-paskidev → github, and a user may want to query either via --remote NAME.
detect_platform_full
0.8.0 — fuller detect that also returns the API base URL the rest of torii should hit. Tries the platforms.toml registry first (so self-hosted instances get their custom URL); falls back to the builtin per-platform default. Returns None if the remote doesn’t resolve to any known platform.
get_pr_client