From 861b108ecd0b82d78ccbed2a64c9370e7a568aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=20=E9=A7=BF=E7=94=AB=20=28Shunsuke=20Hayashi=29?= Date: Fri, 10 Apr 2026 15:12:08 +0900 Subject: [PATCH] fix: update doctests for mergegate_core rename --- crates/mergegate-core/src/agent/approval.rs | 4 ++-- crates/mergegate-core/src/feature_flags.rs | 2 +- crates/mergegate-core/src/git.rs | 4 ++-- crates/mergegate-core/src/plugin.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/mergegate-core/src/agent/approval.rs b/crates/mergegate-core/src/agent/approval.rs index 12f6946..46f5cce 100644 --- a/crates/mergegate-core/src/agent/approval.rs +++ b/crates/mergegate-core/src/agent/approval.rs @@ -39,7 +39,7 @@ pub struct ApprovalRequest { /// # Example /// /// ```rust -/// use miyabi_core::agent::{ApprovalCallback, ApprovalRequest, ApprovalDecision}; +/// use mergegate_core::agent::{ApprovalCallback, ApprovalRequest, ApprovalDecision}; /// use async_trait::async_trait; /// /// struct AutoApprover; @@ -49,7 +49,7 @@ pub struct ApprovalRequest { /// async fn request_approval(&self, request: &ApprovalRequest) -> ApprovalDecision { /// // Auto-approve low risk tools /// match request.risk_level { -/// miyabi_core::agent::RiskLevel::Low => ApprovalDecision::Approved, +/// mergegate_core::agent::RiskLevel::Low => ApprovalDecision::Approved, /// _ => ApprovalDecision::Rejected(Some("Manual approval required".to_string())), /// } /// } diff --git a/crates/mergegate-core/src/feature_flags.rs b/crates/mergegate-core/src/feature_flags.rs index 734bd08..73e00f0 100644 --- a/crates/mergegate-core/src/feature_flags.rs +++ b/crates/mergegate-core/src/feature_flags.rs @@ -5,7 +5,7 @@ //! # Examples //! //! ```rust -//! use miyabi_core::feature_flags::FeatureFlagManager; +//! use mergegate_core::feature_flags::FeatureFlagManager; //! //! let manager = FeatureFlagManager::new(); //! manager.set_flag("new_architecture", true); diff --git a/crates/mergegate-core/src/git.rs b/crates/mergegate-core/src/git.rs index a942275..8dba6a1 100644 --- a/crates/mergegate-core/src/git.rs +++ b/crates/mergegate-core/src/git.rs @@ -16,11 +16,11 @@ use std::path::{Path, PathBuf}; /// # Examples /// /// ```no_run -/// use miyabi_core::git::find_git_root; +/// use mergegate_core::git::find_git_root; /// /// let root = find_git_root(None)?; /// println!("Git root: {:?}", root); -/// # Ok::<(), miyabi_core::error::Error>(()) +/// # Ok::<(), mergegate_core::error::Error>(()) /// ``` pub fn find_git_root(start_path: Option<&Path>) -> Result { let search_path = match start_path { diff --git a/crates/mergegate-core/src/plugin.rs b/crates/mergegate-core/src/plugin.rs index 1c07dd7..00b5e20 100644 --- a/crates/mergegate-core/src/plugin.rs +++ b/crates/mergegate-core/src/plugin.rs @@ -5,7 +5,7 @@ //! # Example //! //! ```rust -//! use miyabi_core::plugin::{Plugin, PluginManager, PluginMetadata, PluginContext, PluginResult}; +//! use mergegate_core::plugin::{Plugin, PluginManager, PluginMetadata, PluginContext, PluginResult}; //! use anyhow::Result; //! //! struct MyPlugin;