94ee0745ca
* add suppport for tool aliases for backwards compatibility when tool names change * cleanup * log alias usage as warning * remove comments * remove mock data * remove unused code, move deprecated tool aliases to its own file * remove unused code and add tests * resolve tool aliases in its own explicit step * improve logic by returning aliases used in resolvetoolaliases * remove unused function * remove comments * remove comment * Update pkg/github/deprecated_tool_aliases.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * restore comment --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
15 lines
463 B
Go
15 lines
463 B
Go
// deprecated_tool_aliases.go
|
|
package github
|
|
|
|
// DeprecatedToolAliases maps old tool names to their new canonical names.
|
|
// When tools are renamed, add an entry here to maintain backward compatibility.
|
|
// Users referencing the old name will receive the new tool with a deprecation warning.
|
|
//
|
|
// Example:
|
|
//
|
|
// "get_issue": "issue_read",
|
|
// "create_pr": "pull_request_create",
|
|
var DeprecatedToolAliases = map[string]string{
|
|
// Add entries as tools are renamed
|
|
}
|