Skip to content

Add workflow_dispatch trigger to triage feedback workflow#1017

Merged
MackinnonBuck merged 3 commits intomainfrom
mackinnonbuck/triage-agent-dispatch
Apr 6, 2026
Merged

Add workflow_dispatch trigger to triage feedback workflow#1017
MackinnonBuck merged 3 commits intomainfrom
mackinnonbuck/triage-agent-dispatch

Conversation

@MackinnonBuck
Copy link
Copy Markdown
Collaborator

@MackinnonBuck MackinnonBuck commented Apr 6, 2026

Summary

This PR adds a workflow_dispatch trigger to the collect-corrections.yml workflow so feedback can be submitted manually from the Actions UI.

Changes

  • .github/workflows/collect-corrections.yml: Add workflow_dispatch trigger with issue_number and feedback required string inputs. Rename workflow to Submit triage agent feedback.
  • scripts/corrections/collect-corrections.js: Fall back to context.payload.inputs when client_payload is absent (workflow_dispatch puts form data there instead of client_payload).
  • scripts/corrections/test/collect-corrections.test.ts: Add integration test for the workflow_dispatch payload path.

Notes

  • The existing slash command path is unaffected since client_payload takes precedence via ??.
  • resolveContext() already handled the { issue_number, feedback } shape — the only gap was the outer entrypoint not reading from context.payload.inputs.
  • All 29 tests pass (28 existing + 1 new).

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
@MackinnonBuck MackinnonBuck requested a review from a team as a code owner April 6, 2026 16:39
Copilot AI review requested due to automatic review settings April 6, 2026 16:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_dispatch trigger (with issue_number and feedback inputs) and renamed the workflow for clarity.
  • Updated the corrections collector script to read feedback from context.payload.inputs when client_payload is absent.
  • Added an integration test covering the workflow_dispatch payload 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

Copy link
Copy Markdown
Contributor

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@MackinnonBuck MackinnonBuck added this pull request to the merge queue Apr 6, 2026
Merged via the queue into main with commit a9de5fd Apr 6, 2026
11 checks passed
@MackinnonBuck MackinnonBuck deleted the mackinnonbuck/triage-agent-dispatch branch April 6, 2026 17:38
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants