Skip to content

Commit 63c7db0

Browse files
authored
Add aliases for new actions tools (#1652)
* add aliases for new actions tools * generate docs
1 parent 311d581 commit 63c7db0

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

docs/tool-renaming.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,20 @@ Will get `issue_read` and `get_file_contents` tools registered, with no errors.
4646
<!-- START AUTOMATED ALIASES -->
4747
| Old Name | New Name |
4848
|----------|----------|
49-
| *(none currently)* | |
49+
| `cancel_workflow_run` | `actions_run_trigger` |
50+
| `delete_workflow_run_logs` | `actions_run_trigger` |
51+
| `download_workflow_run_artifact` | `actions_get` |
52+
| `get_workflow` | `actions_get` |
53+
| `get_workflow_job` | `actions_get` |
54+
| `get_workflow_job_logs` | `actions_get` |
55+
| `get_workflow_run` | `actions_get` |
56+
| `get_workflow_run_logs` | `actions_get` |
57+
| `get_workflow_run_usage` | `actions_get` |
58+
| `list_workflow_jobs` | `actions_list` |
59+
| `list_workflow_run_artifacts` | `actions_list` |
60+
| `list_workflow_runs` | `actions_list` |
61+
| `list_workflows` | `actions_list` |
62+
| `rerun_failed_jobs` | `actions_run_trigger` |
63+
| `rerun_workflow_run` | `actions_run_trigger` |
64+
| `run_workflow` | `actions_run_trigger` |
5065
<!-- END AUTOMATED ALIASES -->

pkg/github/deprecated_tool_aliases.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,21 @@ package github
1111
// "create_pr": "pull_request_create",
1212
var DeprecatedToolAliases = map[string]string{
1313
// Add entries as tools are renamed
14+
// Actions tools consolidated
15+
"list_workflows": "actions_list",
16+
"list_workflow_runs": "actions_list",
17+
"list_workflow_jobs": "actions_list",
18+
"list_workflow_run_artifacts": "actions_list",
19+
"get_workflow": "actions_get",
20+
"get_workflow_run": "actions_get",
21+
"get_workflow_job": "actions_get",
22+
"get_workflow_run_usage": "actions_get",
23+
"get_workflow_run_logs": "actions_get",
24+
"get_workflow_job_logs": "actions_get",
25+
"download_workflow_run_artifact": "actions_get",
26+
"run_workflow": "actions_run_trigger",
27+
"rerun_workflow_run": "actions_run_trigger",
28+
"rerun_failed_jobs": "actions_run_trigger",
29+
"cancel_workflow_run": "actions_run_trigger",
30+
"delete_workflow_run_logs": "actions_run_trigger",
1431
}

0 commit comments

Comments
 (0)