mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-26 06:04:46 +00:00
Return DispathWorkflowRun if the input parameter return_run_info was set to true.
This commit is contained in:
parent
26c139fa86
commit
e2db73570b
1 changed files with 5 additions and 1 deletions
|
@ -689,5 +689,9 @@ func DispatchWorkflow(ctx *context.APIContext) {
|
||||||
Jobs: jobs,
|
Jobs: jobs,
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.JSON(http.StatusCreated, workflowRun)
|
if opt.ReturnRunInfo {
|
||||||
|
ctx.JSON(http.StatusCreated, workflowRun)
|
||||||
|
} else {
|
||||||
|
ctx.JSON(http.StatusNoContent, nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue