feat(server): log returned status for next branch
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

This commit is contained in:
Paul Campbell 2024-04-10 11:47:14 +01:00
parent 5c4b745c00
commit e27b050a09

View file

@ -1,4 +1,5 @@
use actix::prelude::*; use actix::prelude::*;
use tracing::info;
use crate::server::{ use crate::server::{
config::{self, ForgeType}, config::{self, ForgeType},
@ -19,6 +20,7 @@ pub async fn check_next(
forge::forgejo::get_commit_status(next.clone(), repo_details, net).await forge::forgejo::get_commit_status(next.clone(), repo_details, net).await
} }
}; };
info!(?status, "Checking next branch status");
match status { match status {
Status::Pass => { Status::Pass => {
addr.do_send(AdvanceMainTo(next)); addr.do_send(AdvanceMainTo(next));
@ -30,6 +32,7 @@ pub async fn check_next(
} }
} }
#[derive(Debug)]
pub enum Status { pub enum Status {
#[allow(dead_code)] // TODO: (#13) remove this when we have results from the forge #[allow(dead_code)] // TODO: (#13) remove this when we have results from the forge
Pass, Pass,