#[cfg(feature = "private")]
#[allow(unused)]
pub use crate::git_sync_ee::*;

#[cfg(not(feature = "private"))]
use windmill_common::error::Result;

#[cfg(not(feature = "private"))]
use crate::{DeployedObject, DB};

#[cfg(not(feature = "private"))]
pub async fn handle_deployment_metadata<'c>(
    _email: &str,
    _created_by: &str,
    _db: &DB,
    _w_id: &str,
    _obj: DeployedObject,
    _deployment_message: Option<String>,
    _skip_db_insert: bool,
    _renamed_from: Option<&str>,
) -> Result<()> {
    // Git sync is an enterprise feature and not part of the open-source version
    return Ok(());
}

#[cfg(not(feature = "private"))]
pub async fn handle_fork_branch_creation<'c>(
    _email: &str,
    _created_by: &str,
    _db: &DB,
    _w_id: &str,
    _fork_workspace_id: &str,
) -> Result<Vec<uuid::Uuid>> {
    return Ok(vec![]);
}

#[cfg(not(feature = "private"))]
pub async fn handle_deployment_metadata_batch<'c>(
    _email: &str,
    _created_by: &str,
    _db: &DB,
    _w_id: &str,
    _objs: Vec<DeployedObject>,
    _deployment_message: Option<String>,
) -> Result<()> {
    return Ok(());
}
