Skip to content

Conversation

@mattdholloway
Copy link
Contributor

Closes:

Copilot AI and others added 2 commits August 28, 2025 15:02
…ers (#1)

* Initial plan

* Initial analysis and planning for CRUD tool consolidation

Co-authored-by: mattdholloway <[email protected]>

* Implement consolidated manage_gist tool with CRUD operations

Co-authored-by: mattdholloway <[email protected]>

* Complete phases 2-3: Consolidated code scanning and secret scanning alert tools

Co-authored-by: mattdholloway <[email protected]>

* Consolidate issue, pull request, and repository operations with manage_* tools

Co-authored-by: mattdholloway <[email protected]>

* Remove old individual tools replaced by consolidated manage_* tools

Co-authored-by: mattdholloway <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: mattdholloway <[email protected]>
@mattdholloway mattdholloway requested a review from a team as a code owner August 28, 2025 14:15
Copilot AI review requested due to automatic review settings August 28, 2025 14:15
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 consolidates several GitHub tool operations into unified management tools to reduce API surface area and improve usability. The changes replace multiple specific-purpose tools with consolidated "manage" tools that accept an operation parameter to determine the action to perform.

  • Consolidates repository, issue, pull request, gist, and security scanning tools into unified management interfaces
  • Reduces the number of individual tools from ~30 to ~5 consolidated tools
  • Updates documentation to reflect the new consolidated tool structure

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pkg/github/tools.go Updates tool registration to use new consolidated tools instead of individual tools
pkg/github/repositories.go Adds ManageRepository tool consolidating create, fork, and get_file_contents operations
pkg/github/issues.go Adds ManageIssue tool consolidating list, get, create, update, and add_comment operations
pkg/github/pullrequests.go Adds ManagePullRequest tool consolidating list, get, create, update, and merge operations
pkg/github/gists.go Adds ManageGist tool consolidating list, create, update, and get operations
pkg/github/code_scanning.go Adds ManageCodeScanningAlerts tool consolidating list and get operations
pkg/github/secret_scanning.go Adds ManageSecretScanningAlerts tool consolidating list and get operations
Test files Adds tests for the new consolidated management tools
README.md Updates documentation to reflect the consolidated tool structure

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +252 to +254
func Test_ManageSecretScanningAlerts(t *testing.T) {
// Verify tool definition
mockClient := github.NewClient(nil)
Copy link

Copilot AI Aug 28, 2025

Choose a reason for hiding this comment

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

Missing blank line after function declaration. Add a blank line between the function signature and the first comment.

Copilot uses AI. Check for mistakes.
Comment on lines +509 to +511
func Test_ManageGist(t *testing.T) {
// Verify tool definition
mockClient := github.NewClient(nil)
Copy link

Copilot AI Aug 28, 2025

Choose a reason for hiding this comment

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

Missing blank line after function declaration. Add a blank line between the function signature and the first comment.

Copilot uses AI. Check for mistakes.
Comment on lines +251 to +253
func Test_ManageCodeScanningAlerts(t *testing.T) {
// Verify tool definition
mockClient := github.NewClient(nil)
Copy link

Copilot AI Aug 28, 2025

Choose a reason for hiding this comment

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

Missing blank line after function declaration. Add a blank line between the function signature and the first comment.

Copilot uses AI. Check for mistakes.
@mattdholloway mattdholloway deleted the fix-tools-read-write-consolidated branch August 29, 2025 14:15
@mattdholloway mattdholloway restored the fix-tools-read-write-consolidated branch August 29, 2025 14:15
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.

1 participant