Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be401fa

Browse files
committed
Add issues type filter
1 parent 2a2df24 commit be401fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/github/issues.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ func SearchIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (
192192
if err != nil {
193193
return mcp.NewToolResultError(err.Error()), nil
194194
}
195+
if !strings.Contains(query, "is:issue") {
196+
query = query + " is:issue"
197+
}
195198
sort, err := OptionalParam[string](request, "sort")
196199
if err != nil {
197200
return mcp.NewToolResultError(err.Error()), nil

0 commit comments

Comments
 (0)