Skip to content

Commit 600479b

Browse files
authored
fix(core): Make push work for waiting webhooks (#11678)
1 parent cbdd535 commit 600479b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/cli/src/webhooks/waiting-webhooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class WaitingWebhooks implements IWebhookManager {
215215
workflowData as IWorkflowDb,
216216
workflowStartNode,
217217
executionMode,
218-
undefined,
218+
runExecutionData.pushRef,
219219
runExecutionData,
220220
execution.id,
221221
req,

packages/cli/src/workflow-execute-additional-data.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,11 @@ function hookFunctionsSave(): IWorkflowExecuteHooks {
495495
retryOf: this.retryOf,
496496
});
497497

498+
// When going into the waiting state, store the pushRef in the execution-data
499+
if (fullRunData.waitTill && isManualMode) {
500+
fullExecutionData.data.pushRef = this.pushRef;
501+
}
502+
498503
await updateExistingExecution({
499504
executionId: this.executionId,
500505
workflowId: this.workflowData.id,

packages/workflow/src/Interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,7 @@ export interface IRunExecutionData {
21142114
waitingExecutionSource: IWaitingForExecutionSource | null;
21152115
};
21162116
waitTill?: Date;
2117+
pushRef?: string;
21172118
}
21182119

21192120
export interface IRunData {

0 commit comments

Comments
 (0)