pub struct NoneAdapter;Expand description
Fallback adapter that performs no VCS operations
This adapter maintains backwards compatibility with workflows that don’t use version control integration. It’s selected automatically when no workflow config exists or when adapter = “none”.
Implementations§
Source§impl NoneAdapter
impl NoneAdapter
Trait Implementations§
Source§impl Default for NoneAdapter
impl Default for NoneAdapter
Source§impl SourceAdapter for NoneAdapter
impl SourceAdapter for NoneAdapter
Source§fn prepare(&self, _goal: &GoalRun, _config: &SubmitConfig) -> Result<()>
fn prepare(&self, _goal: &GoalRun, _config: &SubmitConfig) -> Result<()>
Create a working branch/changelist/workspace for this goal Read more
Source§fn commit(
&self,
goal: &GoalRun,
_pr: &DraftPackage,
message: &str,
) -> Result<CommitResult>
fn commit( &self, goal: &GoalRun, _pr: &DraftPackage, message: &str, ) -> Result<CommitResult>
Commit the approved changes from staging Read more
Source§fn open_review(
&self,
goal: &GoalRun,
_pr: &DraftPackage,
) -> Result<ReviewResult>
fn open_review( &self, goal: &GoalRun, _pr: &DraftPackage, ) -> Result<ReviewResult>
Open a review request Read more
Source§fn sync_upstream(&self) -> Result<SyncResult>
fn sync_upstream(&self) -> Result<SyncResult>
Sync the local workspace with upstream changes. Read more
Source§fn exclude_patterns(&self) -> Vec<String>
fn exclude_patterns(&self) -> Vec<String>
Patterns to exclude from staging copy (VCS metadata dirs, etc.) Read more
Source§fn save_state(&self) -> Result<Option<SavedVcsState>>
fn save_state(&self) -> Result<Option<SavedVcsState>>
Save working state before apply operations. Read more
Source§fn restore_state(&self, _state: Option<SavedVcsState>) -> Result<()>
fn restore_state(&self, _state: Option<SavedVcsState>) -> Result<()>
Restore working state after apply operations. Read more
Source§fn current_branch(&self) -> Result<String>
fn current_branch(&self) -> Result<String>
Get the current branch or workspace name. Read more
Source§fn revision_id(&self) -> Result<String>
fn revision_id(&self) -> Result<String>
Get the current revision identifier for the working directory. Read more
Source§fn check_review(&self, _review_id: &str) -> Result<Option<ReviewStatus>>
fn check_review(&self, _review_id: &str) -> Result<Option<ReviewStatus>>
Check the status of a review/PR by its review ID (e.g., PR number). Read more
Source§fn merge_review(&self, _review_id: &str) -> Result<MergeResult>
fn merge_review(&self, _review_id: &str) -> Result<MergeResult>
Merge a review/PR into the target branch and sync the local workspace. Read more
Source§fn detect(project_root: &Path) -> boolwhere
Self: Sized,
fn detect(project_root: &Path) -> boolwhere
Self: Sized,
Auto-detect whether this adapter applies to the given project root. Read more
Source§fn protected_submit_targets(&self) -> Vec<String>
fn protected_submit_targets(&self) -> Vec<String>
Protected submit targets for this adapter (§15 VCS Submit Invariant). Read more
Auto Trait Implementations§
impl Freeze for NoneAdapter
impl RefUnwindSafe for NoneAdapter
impl Send for NoneAdapter
impl Sync for NoneAdapter
impl Unpin for NoneAdapter
impl UnsafeUnpin for NoneAdapter
impl UnwindSafe for NoneAdapter
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
Mutably borrows from an owned value. Read more