Skip to content

Add Tool Name property for List Code Scanning Alerts tool #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 15, 2025

Conversation

Dylan-Rinker
Copy link
Contributor

This pull request introduces a new optional parameter, tool_name, to the ListCodeScanningAlerts function and updates the relevant documentation and tests accordingly.

Closes: #271

@Copilot Copilot AI review requested due to automatic review settings April 14, 2025 21:42
Copy link
Contributor

@Copilot 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 pull request adds an optional tool_name parameter to the ListCodeScanningAlerts function to allow specifying the tool used for code scanning and updates the corresponding tests and documentation.

  • Introduces tool_name parameter in code_scanning.go
  • Updates tests in code_scanning_test.go to assert the new parameter
  • Enhances documentation in README.md to include tool_name

Reviewed Changes

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

File Description
pkg/github/code_scanning_test.go Adds assertions and test cases for the newly added tool_name property in input schema.
pkg/github/code_scanning.go Introduces and passes the optional tool_name parameter to the GitHub client API call.
README.md Updates the documentation to include the tool_name parameter description.

Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums left a comment

Choose a reason for hiding this comment

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

Thank you for this.

@SamMorrowDrums SamMorrowDrums merged commit 614f226 into main Apr 15, 2025
16 checks passed
@SamMorrowDrums SamMorrowDrums deleted the addToolName branch April 15, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Tool Name Property to List Code Scanning Alerts Tool

None yet

2 participants