Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add basic code scanning methods#11

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SamMorrowDrums merged 1 commit intomainfromsupport-code-scanning
Mar 14, 2025

Conversation

SamMorrowDrums
Copy link
Collaborator

Addsget_code_scanning_alert andlist_code_scanning_alerts.

Examples:

echo '{"jsonrpc":"2.0","id":3,"params":{"name":"get_code_scanning_alert", "arguments": {"repo": "turboscan", "owner": "github", "alert_number": 773}},"method":"tools/call"}' | go run  cmd/server/main.go stdio  | jq .GitHub MCP Server running on stdio{  "jsonrpc": "2.0",  "id": 3,  "result": {    "content": [      {        "type": "text",        "text": "{\"number\":773,\"rule\":{\"id\":\"errcheck\",\"severity\":\"error\",\"description\": ...      }    ]  }}
echo '{"jsonrpc":"2.0","id":3,"params":{"name":"list_code_scanning_alerts", "arguments": {"repo": "turboscan", "owner": "github"}},"method":"tools/call"}' | go run  cmd/server/main.go stdio  | jq .GitHub MCP Server running on stdio{  "jsonrpc": "2.0",  "id": 3,  "result": {    "content": [      {        "type": "text",        "text": "[{\"number\":773,\"rule\":{\"id\":\"errcheck\",\"severity\":\"error\",\"description...}]"      }    ]  }}

@CopilotCopilotAI review requested due to automatic review settingsMarch 14, 2025 16:15
Copy link
Contributor

@CopilotCopilotAI 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 adds two new tools to retrieve code scanning alerts from a GitHub repository.

  • Introduces getCodeScanningAlert and listCodeScanningAlerts functions in pkg/github/code_scanning.go.
  • Updates README.md to include documentation for the new code scanning endpoints.
  • Integrates the new code scanning tools in pkg/github/server.go.

Reviewed Changes

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

FileDescription
pkg/github/code_scanning.goNew functions to retrieve and list code scanning alerts.
README.mdAdded documentation for the new code scanning tools.
pkg/github/server.goRegisters the new code scanning tools to the server.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused.Learn more

@SamMorrowDrumsSamMorrowDrums merged commit81cc812 intomainMar 14, 2025
3 checks passed
@SamMorrowDrumsSamMorrowDrums deleted the support-code-scanning branchMarch 14, 2025 16:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp