Skip to content

feat(actions): add rerun_workflow_run and rerun_failed_jobs write tools (#8)#93

Merged
nemolize merged 2 commits into
mainfrom
feat/actions-phase4-rerun
Jun 10, 2026
Merged

feat(actions): add rerun_workflow_run and rerun_failed_jobs write tools (#8)#93
nemolize merged 2 commits into
mainfrom
feat/actions-phase4-rerun

Conversation

@nemolize

Copy link
Copy Markdown
Owner

Summary

  • Adds rerun_workflow_run — re-runs all jobs of a workflow run via reRunWorkflow (GitHub 201/empty body)
  • Adds rerun_failed_jobs — re-runs only failed jobs via reRunWorkflowFailedJobs
  • Both accept owner, repo, run_id, and optional enable_debug_logging; emit a logWrite audit entry; return a Markdown confirmation pointing callers to poll get_workflow_run
  • Adds run_id to WriteAuditFields in src/mcp/response.ts
  • Extends test/actions.test.js with happy-path + 403/404 error cases and Octokit call verification
  • Adds both tools to the write-tool audit-log coverage matrix in test/audit-log.test.js

Test plan

  • pnpm type-check — passes
  • pnpm exec vitest run — all tests pass (52 tests across actions + audit-log suites)

nemolize added 2 commits June 11, 2026 01:13
…ls (#8)

Register two new write tools in registerActionTools:
- rerun_workflow_run: re-runs all jobs in a workflow run via reRunWorkflow (201, empty body)
- rerun_failed_jobs: re-runs only failed jobs via reRunWorkflowFailedJobs

Both accept owner/repo/run_id plus optional enable_debug_logging, emit a
logWrite audit entry, and return a Markdown confirmation directing callers
to poll get_workflow_run for the new attempt's status.

Also adds run_id to WriteAuditFields, updates the response.ts comment, and
covers both tools with four vitest cases (happy path + 403/404 error paths).
…tools

Verify that rerun_workflow_run and rerun_failed_jobs call the correct
Octokit methods with the expected parameters, including enable_debug_logging
passthrough. Also note that enable_debug_logging: false survives stripUndefined
since only undefined values are stripped.

Add both rerun tools to the audit-log write-tool matrix so every write tool
emitting exactly one audit line is enforced going forward.
@nemolize nemolize merged commit 5d863f8 into main Jun 10, 2026
4 checks passed
@nemolize nemolize deleted the feat/actions-phase4-rerun branch June 10, 2026 16:25
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.

1 participant