Skip to content

Commit ad8f375

Browse files
committed
Add user-review-requested to grammar
Signed-off-by: Daniel Grenner <[email protected]>
1 parent db8b2dc commit ad8f375

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/extension/parser/symbols.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export const QueryNodeImpliesPullRequestSchema = new Set<string>([
168168
'review',
169169
'reviewed-by',
170170
'team-review-requested',
171+
'user-review-requested',
171172
'merged',
172173
]);
173174

@@ -208,6 +209,7 @@ export const QualifiedValueNodeSchema = new Map<string, QualifiedValueInfo>([
208209
['involves', QualifiedValueInfo.username(RepeatInfo.Repeat, 'Issues and pull requests that in some way involve a user. The involves qualifier is a logical OR between the author, assignee, mentions, and commenter qualifiers for a single user')],
209210
['review-requested', QualifiedValueInfo.username(undefined, 'Pull requests where a specific user is requested for review')],
210211
['reviewed-by', QualifiedValueInfo.username(undefined, 'Pull requests reviewed by a particular user')],
212+
['user-review-requested', QualifiedValueInfo.username(undefined, 'Pull requests where a specific user is directly requested for review')],
211213
// simple value
212214
['closed', QualifiedValueInfo.simple(ValueType.Date, 'Issues and pull requests based on when they were closed')],
213215
['created', QualifiedValueInfo.simple(ValueType.Date, 'Issues and pull requests based on when they were created')],

syntaxes/github-issues.tmGrammar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"name": "keyword.other",
38-
"match": "\\b(type|updated|in|org|repo|user|state|assignee|author|mentions|team|stars|topics|pushed|size|commenter|involves|label|linked|milestone|project|language|comments|interactions|reactions|created|closed|archived|is|no|status|base|head|draft|review-requested|review|reviewed-by|team-review-requested|merged)\\b"
38+
"match": "\\b(type|updated|in|org|repo|user|state|assignee|author|mentions|team|stars|topics|pushed|size|commenter|involves|label|linked|milestone|project|language|comments|interactions|reactions|created|closed|archived|is|no|status|base|head|draft|review-requested|review|reviewed-by|team-review-requested|user-review-requested|merged)\\b"
3939
}
4040
]
4141
}

0 commit comments

Comments
 (0)