Skip to content

Commit 3c33f31

Browse files
authored
Fix "no:" (#6402)
Fixes #6374
1 parent 34914b5 commit 3c33f31

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lm/tools/searchTools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ You are an expert on GitHub issue search syntax. GitHub issues are always softwa
9999
- comments:>5 org:contoso is:issue state:closed mentions:@me label:bug
100100
- interactions:>5 repo:contoso/cli is:issue state:open
101101
- repo:microsoft/vscode-python is:issue sort:updated -assignee:@me
102+
- repo:contoso/cli is:issue sort:updated no:milestone
102103
- Go through each word of the natural language query and try to match it to a syntax component.
103104
- Use a "-" in front of a syntax component to indicate that it should be "not-ed".
105+
- Use the "no" syntax component to indicate that a property should be empty.
104106
- As a reminder, here are the components of the query syntax:
105107
${JSON.stringify(githubSearchSyntax)}
106108
`;
@@ -252,8 +254,6 @@ You are getting ready to make a GitHub search query. Given a natural language qu
252254
if (!this.validateSpecificQueryPart(label, value)) {
253255
continue;
254256
}
255-
} else if (!part.startsWith('-')) {
256-
continue;
257257
}
258258
reformedQuery = `${reformedQuery} ${part}`;
259259
}

0 commit comments

Comments
 (0)