feat(webui): wire run-on-this-issue dispatch (#1595)#1598
Merged
Conversation
Add POST /work/{forge}/{owner}/{repo}/{number}/dispatch handler that resolves
matching worksource bindings, picks a pipeline (409 on zero, 400 on ambiguous,
explicit pipeline form value disambiguates), serializes the work_item_ref
shared schema as run input, and launches via the existing
launchPipelineExecution path.
Wires worksource.Service onto serverRuntime; ships round-trip tests asserting
state-store run creation and schema-conformant input.
This was referenced Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /work/{forge}/{owner}/{repo}/{number}/dispatchhandler that closes the work-item → run loopworksource.Servicebindings; 409 when none match, 400 when ambiguous (explicitpipelineform value disambiguates)work_item_refshared schema as run input so the persona has issue contextlaunchPipelineExecutionpath (no bypass ofrunner.BuildExecutorOptions)worksource.ServiceontoserverRuntime; ship round-trip tests asserting state-store run creation and schema-conformant inputRelated to #1595
Changes
internal/webui/handlers_work_dispatch.go— new dispatch handler with binding lookup, pipeline disambiguation, work_item_ref injectioninternal/webui/handlers_work_dispatch_test.go— round-trip tests covering happy path, 409 (no binding), 400 (ambiguous), explicit pipeline overrideinternal/webui/routes.go— register dispatch routeinternal/webui/server.go— wireworksource.ServiceontoserverRuntimespecs/1595-dispatch-wiring/{spec,plan,tasks}.md— planning artifactsTest Plan
go test ./internal/webui/...round-trip tests pass