git-next/src/server/actors/repo/branch.rs

17 lines
582 B
Rust
Raw Normal View History

use crate::server::forge;
#[tracing::instrument(fields(forge_name = %repo_details.forge.name, repo_name = %repo_details.name))]
pub async fn validate_positions(
repo_details: crate::server::config::RepoDetails,
config: crate::server::config::RepoConfig,
_addr: actix::prelude::Addr<super::RepoActor>,
net: kxio::network::Network,
) {
let _commit_histories = match repo_details.forge.forge_type {
crate::server::config::ForgeType::ForgeJo => {
forge::forgejo::get_commit_histories(&repo_details, &config, &net)
}
};
todo!()
}