feat(actions): add rerun_workflow_run and rerun_failed_jobs write tools (#8)#93
Merged
Conversation
…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.
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
rerun_workflow_run— re-runs all jobs of a workflow run viareRunWorkflow(GitHub 201/empty body)rerun_failed_jobs— re-runs only failed jobs viareRunWorkflowFailedJobsowner,repo,run_id, and optionalenable_debug_logging; emit alogWriteaudit entry; return a Markdown confirmation pointing callers to pollget_workflow_runrun_idtoWriteAuditFieldsinsrc/mcp/response.tstest/actions.test.jswith happy-path + 403/404 error cases and Octokit call verificationtest/audit-log.test.jsTest plan
pnpm type-check— passespnpm exec vitest run— all tests pass (52 tests across actions + audit-log suites)