(step_id: Option<&str>, seq: u32)
| 470 | } |
| 471 | |
| 472 | pub fn reply_commit_msg(step_id: Option<&str>, seq: u32) -> String { |
| 473 | match step_id { |
| 474 | Some(s) => format!("reply: {} ({:04})", s, seq), |
| 475 | None => format!("reply: ({:04})", seq), |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | pub fn run_event_commit_msg(run_id: &str, event: &str) -> String { |
| 480 | format!("run/{}: {}", run_id, event) |