Repository navigation
Accept conclusions in the list_workflow_runs status filter - #4009
Open
z4forzubair wants to merge 1 commit into
Open
z4forzubair wants to merge 1 commit into
z4forzubair wants to merge 1 commit into
Conversation
The REST endpoint filters workflow runs by status or conclusion and documents 14 values, but the actions_list schema only listed 5 (queued, in_progress, completed, requested, waiting), so clients that follow the schema could not ask for failed or cancelled runs. List all 14 values, describe the filter as status or conclusion, and update the workflow-failure-triage skill, which worked around the gap.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active issues are identified, and the enum, schema, documentation, snapshot, and validation/request-forwarding test updates address the requested filtering change.
No open issues 🎉
What changed in this PR
Updates actions_list so workflow-run filters accept GitHub Actions conclusions such as failure.
Changes:
- Expanded the status enum to all documented values.
- Added schema and request-forwarding tests.
- Updated the triage skill and tool snapshot.
| File | Description |
|---|---|
| pkg/skills/catalog/skills/workflow-failure-triage/SKILL.md | Documents using status: failure to list failed workflow runs. |
| pkg/github/typed_actions_outputs_test.go | Pins the expanded workflow-run status and conclusion enum. |
| pkg/github/actions.go | Expands the workflow-run filter enum and description. |
| pkg/github/actions_test.go | Tests schema validation and API query forwarding for conclusion filtering. |
| pkg/github/__toolsnaps__/actions_list.snap | Refreshes the published actions_list tool schema snapshot. |
Review effort: Lite (adaptive)
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
actions_listwithmethod: list_workflow_runsnow accepts a conclusion such asfailureinworkflow_runs_filter.status, so "list failed runs" can be expressed with the published schema.Why
The REST endpoint behind this method ("List workflow runs for a repository") filters
statusby status or conclusion and documents 14 values:completed,action_required,cancelled,failure,neutral,skipped,stale,success,timed_out,in_progress,queued,requested,waiting,pending. The tool schema only listed 5 of them (queued,in_progress,completed,requested,waiting), so a client or model that follows the schema cannot ask for failed or cancelled runs, even though the handler already passes the value through. The bundledworkflow-failure-triageskill works around this ("there is no filter for the outcome").What changed
pkg/github/actions.go: thestatusenum lists the 14 REST values, and its description says it takes a status or a conclusion. No handler change.pkg/github/actions_test.go: new subtest "filter workflow runs by conclusion". It validates{"workflow_runs_filter":{"status":"failure"}}against the published input schema and checks the mockedGET /repos/owner/repo/actions/runsreceivesstatus=failure.pkg/github/typed_actions_outputs_test.go:TestActionsAdvertisedInputMetadatapins the new enum.pkg/github/__toolsnaps__/actions_list.snap: refreshed withUPDATE_TOOLSNAPS=true.pkg/skills/catalog/skills/workflow-failure-triage/SKILL.md: step 1 now saysstatus: failurelists only failed runs.MCP impact
workflow_runs_filter.statusenum gains 9 values. Existing values are unchanged, so current calls keep working.Prompts tested (tool changes only)
status: failure) against the published schema and the request sent to the API.Security / limits
Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lintpins, built withgo runinstead of the install script) andgofmt -s: clean./script/test(go test -race ./...): all packages passDocs
script/generate-docsproduces no change (the README does not list enum values).Skills
workflow-failure-triage.