2024-04-09 16:16:01 +01:00
|
|
|
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,
|
2024-04-09 15:31:59 +01:00
|
|
|
_addr: actix::prelude::Addr<super::RepoActor>,
|
2024-04-09 16:16:01 +01:00
|
|
|
net: kxio::network::Network,
|
2024-04-09 15:31:59 +01:00
|
|
|
) {
|
2024-04-09 16:16:01 +01:00
|
|
|
let _commit_histories = match repo_details.forge.forge_type {
|
|
|
|
crate::server::config::ForgeType::ForgeJo => {
|
|
|
|
forge::forgejo::get_commit_histories(&repo_details, &config, &net)
|
|
|
|
}
|
|
|
|
};
|
2024-04-09 15:31:59 +01:00
|
|
|
todo!()
|
|
|
|
}
|