feat(actions): add cancel_workflow_run and trigger_workflow_dispatch write tools (#8)#94
Merged
Merged
Conversation
…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.
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.
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; pollget_workflow_rununtil conclusion iscancelled).trigger_workflow_dispatch— manually dispatch aworkflow_dispatchworkflow on a ref, with optional inputs (createWorkflowDispatch).inputsaccepts string / number / boolean scalars to match GitHub's coercion.Both follow the phase-4
rerun_workflow_run/rerun_failed_jobsconventions (typedclient().rest.actions.*,wrapTool,logWriteaudit).WriteAuditFieldsgainsworkflow_id/reffor 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
inputsto a scalar union, audit-field comments,stripUndefinedconsistency, stronger audit assertions).Test plan
cancel_workflow_runon a completed run → real409;trigger_workflow_dispatchonci.yml(noworkflow_dispatchtrigger) → real422.(Lint, type-check, and unit tests run in CI — not restated here.)
Closes #8.