Skip to content

Commit 1339249

Browse files
committed
feat: expand event type options in GitHub Actions tool descriptions
- Enhanced the event parameter description in the ListWorkflowRuns function to include a comprehensive list of supported event types. - Improved clarity and usability for users by providing enumerated options for event types in the documentation.
1 parent 9e283fe commit 1339249

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

pkg/github/actions.go

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,41 @@ func ListWorkflowRuns(getClient GetClientFn, t translations.TranslationHelperFun
108108
mcp.Description("Returns workflow runs associated with a branch. Use the name of the branch."),
109109
),
110110
mcp.WithString("event",
111-
mcp.Description("Returns workflow runs for an event. For example, push, pull_request, or issue."),
111+
mcp.Description("Returns workflow runs for a specific event type"),
112+
mcp.Enum(
113+
"branch_protection_rule",
114+
"check_run",
115+
"check_suite",
116+
"create",
117+
"delete",
118+
"deployment",
119+
"deployment_status",
120+
"discussion",
121+
"discussion_comment",
122+
"fork",
123+
"gollum",
124+
"issue_comment",
125+
"issues",
126+
"label",
127+
"merge_group",
128+
"milestone",
129+
"page_build",
130+
"public",
131+
"pull_request",
132+
"pull_request_review",
133+
"pull_request_review_comment",
134+
"pull_request_target",
135+
"push",
136+
"registry_package",
137+
"release",
138+
"repository_dispatch",
139+
"schedule",
140+
"status",
141+
"watch",
142+
"workflow_call",
143+
"workflow_dispatch",
144+
"workflow_run",
145+
),
112146
),
113147
mcp.WithString("status",
114148
mcp.Description("Returns workflow runs with the check run status"),

0 commit comments

Comments
 (0)