forked from kemitix/git-next
feat(server): log returned status for next branch
This commit is contained in:
parent
5c4b745c00
commit
e27b050a09
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue