Add workflow_dispatch trigger to triage feedback workflow#1017
Merged
MackinnonBuck merged 3 commits intomainfrom Apr 6, 2026
Merged
Add workflow_dispatch trigger to triage feedback workflow#1017MackinnonBuck merged 3 commits intomainfrom
MackinnonBuck merged 3 commits intomainfrom
Conversation
The triage feedback slash command is a preview feature only available in private repos. Add a workflow_dispatch trigger with issue_number and feedback inputs so the workflow can be dispatched manually from the Actions UI. - Add workflow_dispatch trigger with required inputs to collect-corrections.yml - Fall back to context.payload.inputs when client_payload is absent - Add integration test for the workflow_dispatch payload path
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a manual trigger path for submitting triage-agent feedback, complementing the existing repository_dispatch-based slash-command flow, so feedback can be entered via the GitHub Actions UI.
Changes:
- Added a
workflow_dispatchtrigger (withissue_numberandfeedbackinputs) and renamed the workflow for clarity. - Updated the corrections collector script to read feedback from
context.payload.inputswhenclient_payloadis absent. - Added an integration test covering the
workflow_dispatchpayload shape.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/collect-corrections.yml |
Adds workflow_dispatch inputs and renames the workflow to support manual submissions from Actions UI. |
scripts/corrections/collect-corrections.js |
Extends payload extraction to support workflow_dispatch (context.payload.inputs). |
scripts/corrections/test/collect-corrections.test.ts |
Adds coverage ensuring the module entrypoint processes workflow_dispatch inputs correctly. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 1
SteveSandersonMS
pushed a commit
that referenced
this pull request
Apr 6, 2026
* Add workflow_dispatch trigger to collect-corrections workflow The triage feedback slash command is a preview feature only available in private repos. Add a workflow_dispatch trigger with issue_number and feedback inputs so the workflow can be dispatched manually from the Actions UI. - Add workflow_dispatch trigger with required inputs to collect-corrections.yml - Fall back to context.payload.inputs when client_payload is absent - Add integration test for the workflow_dispatch payload path * Rename collect-corrections workflow to Submit triage agent feedback * Validate issue_number is a finite positive integer in resolveContext
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
This PR adds a
workflow_dispatchtrigger to thecollect-corrections.ymlworkflow so feedback can be submitted manually from the Actions UI.Changes
.github/workflows/collect-corrections.yml: Addworkflow_dispatchtrigger withissue_numberandfeedbackrequired string inputs. Rename workflow toSubmit triage agent feedback.scripts/corrections/collect-corrections.js: Fall back tocontext.payload.inputswhenclient_payloadis absent (workflow_dispatchputs form data there instead ofclient_payload).scripts/corrections/test/collect-corrections.test.ts: Add integration test for theworkflow_dispatchpayload path.Notes
client_payloadtakes precedence via??.resolveContext()already handled the{ issue_number, feedback }shape — the only gap was the outer entrypoint not reading fromcontext.payload.inputs.