Skip to content

feat(actions): add cancel_workflow_run and trigger_workflow_dispatch write tools (#8)#94

Merged
nemolize merged 1 commit into
mainfrom
feat/actions-phase5-cancel-dispatch
Jun 10, 2026
Merged

feat(actions): add cancel_workflow_run and trigger_workflow_dispatch write tools (#8)#94
nemolize merged 1 commit into
mainfrom
feat/actions-phase5-cancel-dispatch

Conversation

@nemolize

Copy link
Copy Markdown
Owner

Phase 5 (final) of #8 — adds the two remaining GitHub Actions write tools, completing the Actions tool surface.

What this adds

  • cancel_workflow_run — cancel an in-progress run (cancelWorkflowRun, async; poll get_workflow_run until conclusion is cancelled).
  • trigger_workflow_dispatch — manually dispatch a workflow_dispatch workflow on a ref, with optional inputs (createWorkflowDispatch). inputs accepts string / number / boolean scalars to match GitHub's coercion.

Both follow the phase-4 rerun_workflow_run / rerun_failed_jobs conventions (typed client().rest.actions.*, wrapTool, logWrite audit). WriteAuditFields gains workflow_id / ref for the dispatch audit entry.

A two-axis team review (correctness + design) plus a cross-model codex pass were run; their actionable findings are folded in (widened inputs to a scalar union, audit-field comments, stripUndefined consistency, stronger audit assertions).

Test plan

  • Live error-path E2E against real GitHub (handler-capture + live Octokit, no CI mutation): cancel_workflow_run on a completed run → real 409; trigger_workflow_dispatch on ci.yml (no workflow_dispatch trigger) → real 422.

(Lint, type-check, and unit tests run in CI — not restated here.)

Closes #8.

…write tools (#8)

Completes issue #8's write-tool tier for GitHub Actions. Both tools follow
the rerun_workflow_run / rerun_failed_jobs conventions established in phase 4.

cancel_workflow_run calls cancelWorkflowRun (202 Accepted / async);
trigger_workflow_dispatch calls createWorkflowDispatch (204 No Content).
WorkflowId accepts both filename strings and numeric IDs; inputs accepts
string | number | boolean scalars to match GitHub's coercion rules.

response.ts gains workflow_id and ref audit fields.
README tool table and feature-comparison row updated to reflect full coverage.
@nemolize nemolize merged commit acddac9 into main Jun 10, 2026
4 checks passed
@nemolize nemolize deleted the feat/actions-phase5-cancel-dispatch branch June 10, 2026 18:36
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.

Workflow / GitHub Actions tool suite — list, inspect, trigger, retry, cancel

1 participant