Skip to content

Commit

Permalink
In thread reply (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch authored Feb 4, 2025
1 parent f9907c2 commit 35d4ef7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tc-cli/src/bin/slack_bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ async fn command_event(
let args = text
.split(' ')
.filter(|s| !s.starts_with("tag="))
.filter(|s| !s.starts_with("branch="))
.collect::<Vec<_>>()
.as_slice()
.join(" ");
Expand Down Expand Up @@ -209,9 +210,7 @@ async fn command_event(
if let Err(err) = gh.trigger_workflow(&command, branch, env, ts).await {
return slack_error(format!("triggering workflow failed: {err}"));
}
axum::Json(SlackCommandEventResponse::new(
SlackMessageContent::new().with_text(command.to_string()),
))
axum::Json(SlackCommandEventResponse::new(SlackMessageContent::new()))
}

fn error_handler(
Expand Down

0 comments on commit 35d4ef7

Please sign in to comment.