pub struct RepoInfo {Show 16 fields
pub name: String,
pub url: String,
pub path: String,
pub absolute_path: PathBuf,
pub revision: String,
pub target: String,
pub sync_remote: String,
pub push_remote: String,
pub owner: String,
pub repo: String,
pub platform_type: PlatformType,
pub platform_base_url: Option<String>,
pub project: Option<String>,
pub reference: bool,
pub groups: Vec<String>,
pub agent: Option<RepoAgentConfig>,
}Expand description
Extended repository information with computed fields
Fields§
§name: StringRepository name (from manifest key)
url: StringGit URL (resolved — explicit or derived from remote)
path: StringLocal path relative to manifest root
absolute_path: PathBufAbsolute path on disk
revision: StringUpstream revision (resolved: repo → settings → “main”)
target: StringWorkflow target branch name (resolved: repo → settings → revision)
sync_remote: StringRemote for fetch/rebase (resolved: repo → settings → “origin”)
push_remote: StringRemote for push (resolved: repo → settings → “origin”)
owner: StringOwner/namespace from git URL
repo: StringRepo name from git URL
platform_type: PlatformTypeDetected or configured platform type
platform_base_url: Option<String>Optional base URL for self-hosted platform instances
project: Option<String>Project name (Azure DevOps only)
reference: boolReference repo (read-only, excluded from branch/PR operations)
groups: Vec<String>Groups this repo belongs to (for selective operations)
agent: Option<RepoAgentConfig>Agent context metadata (build/test/lint commands for AI agents)
Implementations§
Source§impl RepoInfo
impl RepoInfo
Sourcepub fn from_config(
name: &str,
config: &RepoConfig,
workspace_root: &Path,
settings: &ManifestSettings,
remotes: Option<&HashMap<String, RemoteConfig>>,
) -> Option<Self>
pub fn from_config( name: &str, config: &RepoConfig, workspace_root: &Path, settings: &ManifestSettings, remotes: Option<&HashMap<String, RemoteConfig>>, ) -> Option<Self>
Create RepoInfo from a manifest RepoConfig
Sourcepub fn target_branch(&self) -> &str
pub fn target_branch(&self) -> &str
Get the workflow target branch name (for PR base, prune, etc.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoInfo
impl RefUnwindSafe for RepoInfo
impl Send for RepoInfo
impl Sync for RepoInfo
impl Unpin for RepoInfo
impl UnsafeUnpin for RepoInfo
impl UnwindSafe for RepoInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more