origin
ModuleOrigin, Cursor's Git hosting, through an app installation.
Contents
Structs
BatchCheckRunOne run of `Origin::batch_upsert_check_runs`: a `CheckRun` (its annotations, images and actions unused) and an optional key of its own.OriginThe Origin adapter: an Ed25519-signed (EdDSA) app JWT is exchanged for a short-lived installation token, both cached under the installation id. Content writes (files, branches, tags) go over Git HTTPS with the `git` binary.use utopia_vcs::BatchCheckRun;Rust
pub struct BatchCheckRunOne run of [Origin::batch_upsert_check_runs]: a CheckRun (its
annotations, images and actions unused) and an optional key of its own.
use utopia_vcs::Origin;Rust
pub struct OriginThe Origin adapter: an Ed25519-signed (EdDSA) app JWT is exchanged for a
short-lived installation token, both cached under the installation id.
Content writes (files, branches, tags) go over Git HTTPS with the git
binary.
Rust
pub const APP_JWT_EXPIRY: i64 = 60 * 5App JWT lifetime in seconds: about five minutes, as Origin prescribes.
Rust
pub const EVENT_PUSH: &str = "repository.pushed"The webhook event type of a push.