adapter
ModuleThe adapter contract every provider implements.
Contents
1 submodule, and what the module defines itself.
use utopia_vcs::CheckRun;Rust
pub struct CheckRunA check run to create or update: the parameters of createCheckRun() and
updateCheckRun() after the repository and commit (or run id).
use utopia_vcs::VcsType;Rust
pub enum VcsTypeThe kind of version control system an adapter speaks.
use utopia_vcs::WebhookId;Rust
pub enum WebhookIdThe identifier a provider gives a webhook: a number, or a UUID string (Bitbucket).
use utopia_vcs::WebhookScope;Rust
pub enum WebhookScopeWhere a provider delivers webhooks from.
use utopia_vcs::Adapter;Rust
pub trait Adapter: Send + SyncA version control system provider.
use utopia_vcs::Git;Rust
pub trait Git: AdapterA Git provider: content writes, webhooks, capabilities and statuses on
top of the Adapter contract.
adapter::clone_type
Own pageHow a clone command checks out its version.
Rust
pub const BRANCH: &str = "branch"A branch (created locally when the remote has none of that name).
Rust
pub const COMMIT: &str = "commit"A commit hash.
Rust
pub const TAG: &str = "tag"A tag, or a glob matching tags (the last one git ls-remote lists).