Skip to content

Commit e7f5ca4

Browse files
mattdhollowaySamMorrowDrums
authored andcommitted
update tests
1 parent 511121f commit e7f5ca4

File tree

4 files changed

+1346
-0
lines changed

4 files changed

+1346
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint": true,
4+
"title": "Get details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts)"
5+
},
6+
"description": "Get details about specific GitHub Actions resources.\nUse this tool to get details about individual workflows, workflow runs, jobs, and artifacts by their unique IDs.\n",
7+
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"method",
11+
"owner",
12+
"repo",
13+
"resource_id"
14+
],
15+
"properties": {
16+
"method": {
17+
"type": "string",
18+
"description": "The method to execute",
19+
"enum": [
20+
"get_workflow",
21+
"get_workflow_run",
22+
"get_workflow_job",
23+
"download_workflow_run_artifact",
24+
"get_workflow_run_usage",
25+
"get_workflow_run_logs_url"
26+
]
27+
},
28+
"owner": {
29+
"type": "string",
30+
"description": "Repository owner"
31+
},
32+
"repo": {
33+
"type": "string",
34+
"description": "Repository name"
35+
},
36+
"resource_id": {
37+
"type": "string",
38+
"description": "The unique identifier of the resource. This will vary based on the \"method\" provided, so ensure you provide the correct ID:\n- Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'get_workflow' method.\n- Provide a workflow run ID for 'get_workflow_run', 'get_workflow_run_usage', and 'get_workflow_run_logs_url' methods.\n- Provide an artifact ID for 'download_workflow_run_artifact' method.\n- Provide a job ID for 'get_workflow_job' method.\n"
39+
}
40+
}
41+
},
42+
"name": "actions_get"
43+
}
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"annotations": {
3+
"readOnlyHint": true,
4+
"title": "List GitHub Actions workflows in a repository"
5+
},
6+
"description": "Tools for listing GitHub Actions resources.\nUse this tool to list workflows in a repository, or list workflow runs, jobs, and artifacts for a specific workflow or workflow run.\n",
7+
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"method",
11+
"owner",
12+
"repo"
13+
],
14+
"properties": {
15+
"method": {
16+
"type": "string",
17+
"description": "The action to perform",
18+
"enum": [
19+
"list_workflows",
20+
"list_workflow_runs",
21+
"list_workflow_jobs",
22+
"list_workflow_run_artifacts"
23+
]
24+
},
25+
"owner": {
26+
"type": "string",
27+
"description": "Repository owner"
28+
},
29+
"page": {
30+
"type": "number",
31+
"description": "Page number for pagination (default: 1)",
32+
"minimum": 1
33+
},
34+
"per_page": {
35+
"type": "number",
36+
"description": "Results per page for pagination (default: 30, max: 100)",
37+
"minimum": 1,
38+
"maximum": 100
39+
},
40+
"repo": {
41+
"type": "string",
42+
"description": "Repository name"
43+
},
44+
"resource_id": {
45+
"type": "string",
46+
"description": "The unique identifier of the resource. This will vary based on the \"method\" provided, so ensure you provide the correct ID:\n- Do not provide any resource ID for 'list_workflows' method.\n- Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'list_workflow_runs' method.\n- Provide a workflow run ID for 'list_workflow_jobs' and 'list_workflow_run_artifacts' methods.\n"
47+
},
48+
"workflow_jobs_filter": {
49+
"type": "object",
50+
"description": "Filters for workflow jobs. **ONLY** used when method is 'list_workflow_jobs'",
51+
"properties": {
52+
"filter": {
53+
"type": "string",
54+
"description": "Filters jobs by their completed_at timestamp",
55+
"enum": [
56+
"latest",
57+
"all"
58+
]
59+
}
60+
}
61+
},
62+
"workflow_runs_filter": {
63+
"type": "object",
64+
"description": "Filters for workflow runs. **ONLY** used when method is 'list_workflow_runs'",
65+
"properties": {
66+
"actor": {
67+
"type": "string",
68+
"description": "Filter to a specific GitHub user's workflow runs."
69+
},
70+
"branch": {
71+
"type": "string",
72+
"description": "Filter workflow runs to a specific Git branch. Use the name of the branch."
73+
},
74+
"event": {
75+
"type": "string",
76+
"description": "Filter workflow runs to a specific event type",
77+
"enum": [
78+
"branch_protection_rule",
79+
"check_run",
80+
"check_suite",
81+
"create",
82+
"delete",
83+
"deployment",
84+
"deployment_status",
85+
"discussion",
86+
"discussion_comment",
87+
"fork",
88+
"gollum",
89+
"issue_comment",
90+
"issues",
91+
"label",
92+
"merge_group",
93+
"milestone",
94+
"page_build",
95+
"public",
96+
"pull_request",
97+
"pull_request_review",
98+
"pull_request_review_comment",
99+
"pull_request_target",
100+
"push",
101+
"registry_package",
102+
"release",
103+
"repository_dispatch",
104+
"schedule",
105+
"status",
106+
"watch",
107+
"workflow_call",
108+
"workflow_dispatch",
109+
"workflow_run"
110+
]
111+
},
112+
"status": {
113+
"type": "string",
114+
"description": "Filter workflow runs to only runs with a specific status",
115+
"enum": [
116+
"queued",
117+
"in_progress",
118+
"completed",
119+
"requested",
120+
"waiting"
121+
]
122+
}
123+
}
124+
}
125+
}
126+
},
127+
"name": "actions_list"
128+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"annotations": {
3+
"destructiveHint": true,
4+
"title": "Trigger GitHub Actions workflow actions"
5+
},
6+
"description": "Trigger GitHub Actions workflow operations, including running, re-running, cancelling workflow runs, and deleting workflow run logs.",
7+
"inputSchema": {
8+
"type": "object",
9+
"required": [
10+
"method",
11+
"owner",
12+
"repo"
13+
],
14+
"properties": {
15+
"inputs": {
16+
"type": "object",
17+
"description": "Inputs the workflow accepts. Only used for 'run_workflow' method."
18+
},
19+
"method": {
20+
"type": "string",
21+
"description": "The method to execute",
22+
"enum": [
23+
"run_workflow",
24+
"rerun_workflow_run",
25+
"rerun_failed_jobs",
26+
"cancel_workflow_run",
27+
"delete_workflow_run_logs"
28+
]
29+
},
30+
"owner": {
31+
"type": "string",
32+
"description": "Repository owner"
33+
},
34+
"ref": {
35+
"type": "string",
36+
"description": "The git reference for the workflow. The reference can be a branch or tag name. Required for 'run_workflow' method."
37+
},
38+
"repo": {
39+
"type": "string",
40+
"description": "Repository name"
41+
},
42+
"run_id": {
43+
"type": "number",
44+
"description": "The ID of the workflow run. Required for all methods except 'run_workflow'."
45+
},
46+
"workflow_id": {
47+
"type": "string",
48+
"description": "The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml). Required for 'run_workflow' method."
49+
}
50+
}
51+
},
52+
"name": "actions_run_trigger"
53+
}

0 commit comments

Comments
 (0)