Implement workflow rerun with webhook url (#2463)

This commit is contained in:
Shuchang Zheng
2025-05-26 10:29:01 -07:00
committed by GitHub
parent 037808a027
commit a4567d2cfc
2 changed files with 7 additions and 1 deletions

View File

@@ -259,6 +259,7 @@ function WorkflowRun() {
state={{
data: parameters,
proxyLocation,
webhookCallbackUrl: workflowRun?.webhook_callback_url ?? "",
}}
>
<PlayIcon className="mr-2 h-4 w-4" />

View File

@@ -31,6 +31,10 @@ function WorkflowRunParameters() {
? (location.state.proxyLocation as ProxyLocation)
: null;
const webhookCallbackUrl = location.state
? (location.state.webhookCallbackUrl as string)
: null;
const initialValues = location.state?.data
? location.state.data
: workflowParameters?.reduce(
@@ -103,7 +107,8 @@ function WorkflowRunParameters() {
proxyLocation ??
workflow.proxy_location ??
ProxyLocation.Residential,
webhookCallbackUrl: workflow.webhook_callback_url ?? "",
webhookCallbackUrl:
webhookCallbackUrl ?? workflow.webhook_callback_url ?? "",
}}
/>
</div>