mirror of
https://github.com/block/buzz.git
synced 2026-11-29 04:32:08 +00:00
Wake agents from verified workflow mentions
Signed-off-by: Logan Johnson <loganj@squareup.com> Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz> Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz> Signed-off-by: Logan Johnson <loganj@squareup.com>
This commit is contained in:
@@ -18,6 +18,7 @@ use serde_json::Value as JsonValue;
|
||||
use tracing::{debug, info, warn};
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::action_sink::WorkflowMessageContext;
|
||||
use crate::error::WorkflowError;
|
||||
use crate::schema::{ActionDef, Step, WorkflowDef};
|
||||
use crate::WorkflowEngine;
|
||||
@@ -636,7 +637,12 @@ pub async fn dispatch_action(
|
||||
let event_id = engine
|
||||
.action_sink()?
|
||||
.send_message(
|
||||
community_id,
|
||||
WorkflowMessageContext {
|
||||
community_id,
|
||||
run_id,
|
||||
step_id: step_id.to_owned(),
|
||||
definition_event_id: wf_run.definition_event_id.clone(),
|
||||
},
|
||||
&channel_id,
|
||||
text,
|
||||
authored_text,
|
||||
|
||||
Reference in New Issue
Block a user