WIP: feat(tui): update ui when push next finishes
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:
parent
35c2057f05
commit
46850ae110
3 changed files with 6 additions and 1 deletions
|
@ -49,7 +49,8 @@ impl Handler<AdvanceNext> for RepoActor {
|
||||||
self.message_token,
|
self.message_token,
|
||||||
) {
|
) {
|
||||||
Ok(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 sleep_duration = self.sleep_duration;
|
||||||
let log = self.log.clone();
|
let log = self.log.clone();
|
||||||
async move {
|
async move {
|
||||||
|
|
|
@ -92,6 +92,7 @@ pub enum RepoUpdate {
|
||||||
},
|
},
|
||||||
RegisteredWebhook,
|
RegisteredWebhook,
|
||||||
Opened,
|
Opened,
|
||||||
|
NextUpdated,
|
||||||
}
|
}
|
||||||
|
|
||||||
message!(
|
message!(
|
||||||
|
|
|
@ -58,6 +58,9 @@ impl Handler<ServerUpdate> for Tui {
|
||||||
repo_state
|
repo_state
|
||||||
.update_message(format!("advancing next to {commit}"), ACTING);
|
.update_message(format!("advancing next to {commit}"), ACTING);
|
||||||
}
|
}
|
||||||
|
RepoUpdate::NextUpdated => {
|
||||||
|
repo_state.update_message("next updated - pause while CI starts", OKAY);
|
||||||
|
}
|
||||||
RepoUpdate::AdvancingMain { commit } => {
|
RepoUpdate::AdvancingMain { commit } => {
|
||||||
repo_state
|
repo_state
|
||||||
.update_message(format!("advancing main to {commit}"), ACTING);
|
.update_message(format!("advancing main to {commit}"), ACTING);
|
||||||
|
|
Loading…
Reference in a new issue