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

Add issues type filter#579

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

Open
JoannaaKL wants to merge3 commits intogithub:main
base:main
Choose a base branch
Loading
fromJoannaaKL:main
Open

Conversation

JoannaaKL
Copy link

Addis:issue parameter toSearchIssues query.

Closes:#462

@JoannaaKLJoannaaKL marked this pull request as ready for reviewJune 25, 2025 12:48
@CopilotCopilotAI review requested due to automatic review settingsJune 25, 2025 12:48
@JoannaaKLJoannaaKL requested a review froma team as acode ownerJune 25, 2025 12:48
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

Adds a filter to ensure only issues are returned bySearchIssues and provides an end-to-end test for listing issues.

  • Appendis:issue to the search query if it's not already present
  • IntroduceTestListIssues E2E test to validate issue creation and retrieval

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

FileDescription
pkg/github/issues.goInsertis:issue into the query string when missing
e2e/e2e_test.goAddTestListIssues function to cover list_issues
Comments suppressed due to low confidence (1)

pkg/github/issues.go:195

  • Consider adding a unit test forSearchIssues to verify that it appendsis:issue when missing and does not duplicate the filter if it's already present.
if !strings.Contains(query, "is:issue") {

}

t.Logf("Creating repository %s/%s...",currentOwner,repoName)
_,err=mcpClient.CallTool(ctx,createRepoRequest)
Copy link
Preview

CopilotAIJun 25, 2025

Choose a reason for hiding this comment

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

The test ignores the response fromcreate_repository but then asserts onresp.IsError, which is stale. Change this line toresp, err = mcpClient.CallTool(...) so you capture the actual tool response before asserting.

Suggested change
_,err=mcpClient.CallTool(ctx,createRepoRequest)
resp,err:=mcpClient.CallTool(ctx,createRepoRequest)

Copilot uses AI. Check for mistakes.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@williammartinwilliammartin self-requested a reviewJune 25, 2025 14:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@williammartinwilliammartinAwaiting requested review from williammartin

At least 1 approving review is required to merge this pull request.

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

Successfully merging this pull request may close these issues.

Query must include 'is:issue' or 'is:pull-request' onsearch_issues
1 participant
@JoannaaKL

[8]ページ先頭

©2009-2025 Movatter.jp