Skip to content

Conversation

@mattdholloway
Copy link
Contributor

@mattdholloway mattdholloway commented Dec 24, 2025

Summary

This pull request removes the legacy, individual GitHub Actions tools from the codebase and documentation, consolidating functionality under the new consolidated set of Actions tools.

Why

Completes https://github.com/github/copilot-agent-services/issues/939

What changed

The most important changes are:

Removal of legacy workflow tools from codebase:

  • Deleted all legacy GitHub Actions workflow tool registrations from pkg/github/tools.go, including tools like ListWorkflows, ListWorkflowRuns, GetWorkflowRun, GetWorkflowRunLogs, ListWorkflowJobs, GetJobLogs, ListWorkflowRunArtifacts, DownloadWorkflowRunArtifact, GetWorkflowRunUsage, RunWorkflow, RerunWorkflowRun, RerunFailedJobs, CancelWorkflowRun, and DeleteWorkflowRunLogs. Only the consolidated Actions* tools remain.

Documentation update:

  • Updated the README.md to remove documentation for all the deleted legacy workflow tools and parameters, leaving only the consolidated get_job_logs documentation and moving the rest under the new tools section. [1] [2]

These changes streamline the codebase by removing redundant and legacy workflow tools in favor of a consolidated, feature-flagged set of Actions tools.

MCP impact

  • No tool or API changes
  • Tool schema or behavior changed
  • New tool added

Prompts tested (tool changes only)

Security / limits

  • No security or limits impact
  • Auth / permissions considered
  • Data exposure, filtering, or token/size limits considered

Lint & tests

  • Linted locally with ./script/lint
  • Tested locally with ./script/test

Docs

  • Not needed
  • Updated (README / docs / examples)

@mattdholloway mattdholloway marked this pull request as ready for review December 24, 2025 10:08
@mattdholloway mattdholloway requested a review from a team as a code owner December 24, 2025 10:08
Copilot AI review requested due to automatic review settings December 24, 2025 10:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes old non-consolidated GitHub Actions tools that have been superseded by newer consolidated tools (ActionsList, ActionsGet, ActionsRunTrigger, ActionsGetJobLogs). The changes clean up the codebase by removing the deprecated individual tool implementations and their feature flag system while preserving the helper functions still used by the consolidated tools.

Key changes:

  • Removed 15 individual Actions tool function definitions and their registrations
  • Removed the FeatureFlagConsolidatedActions constant and all feature flag assignments
  • Removed 1,800+ lines of test code for the old individual tools
  • Deleted 13 toolsnap files for the removed tools
  • Updated README.md to remove documentation for deprecated tools

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/github/tools.go Removed 15 tool registrations from AllTools() function for old non-consolidated actions tools
pkg/github/actions.go Removed old tool implementations (ListWorkflows, RunWorkflow, GetJobLogs, etc.) and the FeatureFlagConsolidatedActions constant; preserved helper functions used by consolidated tools
pkg/github/actions_test.go Removed comprehensive test suite for old individual tools (~1,800 lines) while keeping consolidated tool tests
pkg/github/toolsnaps/*.snap Deleted 13 toolsnap files for removed tools (run_workflow, rerun_workflow_run, list_workflows, etc.)
README.md Removed tool documentation entries for the 15 deprecated individual Actions tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants