Repository navigation
Conversation
GET /repos/{owner}/{repo}/actions/runs filters its status parameter by
status or conclusion (success, failure, cancelled, ...), but the
advertised workflow_runs_filter.status enum listed only five lifecycle
statuses. Clients that follow the schema could not ask for failed runs
and had to fetch completed runs and filter them themselves.
List every value the endpoint documents, refresh the tool snapshot, and
check that a conclusion reaches the API.
The workflow-failure-triage skill told agents there was no outcome filter for workflow runs. The status filter now offers the conclusions, so point it at status: failure.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified, and the change is supported by schema, forwarding, metadata, snapshot, and guidance updates.
No open issues 🎉
What changed in this PR
Updates actions_list to advertise workflow-run conclusion filters, enabling direct queries for failed or cancelled runs.
Changes:
- Expanded the status schema enum and description.
- Added metadata and request-forwarding tests.
- Refreshed the tool snapshot.
- Updated failure-triage guidance.
| File | Description |
|---|---|
| pkg/skills/catalog/skills/workflow-failure-triage/SKILL.md | Documents filtering workflow runs directly by failure conclusion. |
| pkg/github/typed_actions_outputs_test.go | Verifies the advertised workflow-run status enum metadata. |
| pkg/github/actions.go | Expands the workflow-run status filter enum and description. |
| pkg/github/actions_test.go | Tests forwarding conclusion filters to the API. |
| pkg/github/__toolsnaps__/actions_list.snap | Refreshes the 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
The
workflow_runs_filter.statusenum ofactions_listnow lists the workflow run conclusions (success,failure,cancelled, ...) as well as the lifecycle statuses, so a client that follows the schema can ask for failed runs directly.Why
GET /repos/{owner}/{repo}/actions/runsdocuments itsstatusparameter as "the check run status or conclusion", one ofcompleted, action_required, cancelled, failure, neutral, skipped, stale, success, timed_out, in_progress, queued, requested, waiting, pending. The tool advertised onlyqueued, in_progress, completed, requested, waiting. The server already passes any value through (SDK validation of this filter is relaxed inactionsValidationSchema), so only the advertised contract was short, but that is what models and form-building clients read. The bundledworkflow-failure-triageskill even worked around it: "there is no filter for the outcome, so filter tocompletedand readconclusionoff the results".Checked against the real API:
actions/runs?status=failureon this repository returns 2500 runs, allcompleted/failure;status=cancelledandstatus=action_requiredlikewise.No upstream issue is associated with this fix. Reproduced on
mainat 9b7b200.flowchart TD A[Client wants failed workflow runs] --> B{status enum in actions_list} B -->|Before| C[Only lifecycle values, failure not offered] B -->|After| D[status failure returns only failed runs]What changed
pkg/github/actions.go: thestatusenum lists every value the endpoint documents (addspendingand the nine conclusions); description says "status or conclusion".pkg/github/__toolsnaps__/actions_list.snap: refreshed withUPDATE_TOOLSNAPS=true.pkg/github/typed_actions_outputs_test.go:TestActionsAdvertisedInputMetadatapins the new enum.pkg/github/actions_test.go: new subtest checks thatstatus: failurereaches the API as?status=failure.pkg/skills/catalog/skills/workflow-failure-triage/SKILL.md: drop the "no outcome filter" workaround and point atstatus: failure.Narrated recording in the MCP Inspector, before then after (sound on). Server run with
stdio --read-only --toolsets=actionsagainstgithub/github-mcp-server:actions-list-status-conclusions.mp4
Edge cases and unchanged behaviour checked (in the running server through the Inspector, as shown in the video):
status: cancelledreturns only cancelled runs (edge case: another conclusion)status: failurewithbranch: mainreturns failed runs onmain(edge case: combined with another filter)status: completedstill returns completed runs (unchanged)statusstill lists the latest runs, total 31621 vs 2500 forcompleted(unchanged)MCP impact
Nine conclusions and
pendingadded to the advertisedworkflow_runs_filter.statusenum ofactions_list. Requests are handled as before.Prompts tested (tool changes only)
Security / limits
Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lintgolangci-lint v2.14.0 (the pinned version) on
./pkg/github/...: 0 issues;gofmt -s -l pkg/githubclean../script/testgo test ./pkg/github/ ./pkg/skills/...pass. With the source change reverted and the tests kept,TestActionsAdvertisedInputMetadataandTest_ActionsList(toolsnap) fail.generate-docsproduced no README change. I did not run the whole repository suite.Docs
Skills
workflow-failure-triagedescribed the missing outcome filter; updated.repository-health-reviewandrelease-preparationonly filter by branch; no change needed.AI assistance (Claude Code) was used to find the bug, write the fix and tests, and record the video.
🤖 Generated with Claude Code