fix(tui): update ui when push next finishes
Some checks failed
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Rust / build (push) Has been cancelled
ci/woodpecker/push/push-next Pipeline failed

Removes the artificial pause while we wait for any CI to start before
checking the CI status.

Closes kemitix/git-next#160
This commit is contained in:
Paul Campbell 2024-09-06 15:36:17 +01:00
parent 35c2057f05
commit 7095f9fdde
3 changed files with 7 additions and 1 deletions

View file

@ -49,7 +49,8 @@ impl Handler<AdvanceNext> for RepoActor {
self.message_token,
) {
Ok(message_token) => {
// pause to allow any CI checks to be started
self.update_tui(RepoUpdate::NextUpdated);
// INFO: pause to allow any CI checks to be started
let sleep_duration = self.sleep_duration;
let log = self.log.clone();
async move {

View file

@ -92,6 +92,7 @@ pub enum RepoUpdate {
},
RegisteredWebhook,
Opened,
NextUpdated,
}
message!(

View file

@ -58,6 +58,10 @@ impl Handler<ServerUpdate> for Tui {
repo_state
.update_message(format!("advancing next to {commit}"), ACTING);
}
RepoUpdate::NextUpdated => {
// TODO - remove this
repo_state.update_message("next updated - pause while CI starts", OKAY);
}
RepoUpdate::AdvancingMain { commit } => {
repo_state
.update_message(format!("advancing main to {commit}"), ACTING);