@@ -183,7 +183,7 @@ func TestPRList_filteringAssignee(t *testing.T) {
183183 http .Register (
184184 httpmock .GraphQL (`query PullRequestSearch\b` ),
185185 httpmock .GraphQLQuery (`{}` , func (_ string , params map [string ]interface {}) {
186- assert .Equal (t , `repo:OWNER/REPO is:pr is:merged assignee:hubot label:"needs tests" base:develop ` , params ["q" ].(string ))
186+ assert .Equal (t , `assignee:hubot base:develop label:"needs tests" repo:OWNER/REPO state:merged type:pr ` , params ["q" ].(string ))
187187 }))
188188
189189 _ , err := runCommand (http , true , `-s merged -l "needs tests" -a hubot -B develop` )
@@ -201,12 +201,12 @@ func TestPRList_filteringDraft(t *testing.T) {
201201 {
202202 name : "draft" ,
203203 cli : "--draft" ,
204- expectedQuery : `repo:OWNER/REPO is:pr is: open draft:true ` ,
204+ expectedQuery : `draft:true repo:OWNER/REPO state: open type:pr ` ,
205205 },
206206 {
207207 name : "non-draft" ,
208208 cli : "--draft=false" ,
209- expectedQuery : `repo:OWNER/REPO is:pr is: open draft:false ` ,
209+ expectedQuery : `draft:false repo:OWNER/REPO state: open type:pr ` ,
210210 },
211211 }
212212
@@ -238,22 +238,22 @@ func TestPRList_filteringAuthor(t *testing.T) {
238238 {
239239 name : "author @me" ,
240240 cli : `--author "@me"` ,
241- expectedQuery : `repo:OWNER/REPO is:pr is: open author:@me ` ,
241+ expectedQuery : `author:@me repo:OWNER/REPO state: open type:pr ` ,
242242 },
243243 {
244244 name : "author user" ,
245245 cli : `--author "monalisa"` ,
246- expectedQuery : `repo:OWNER/REPO is:pr is: open author:monalisa ` ,
246+ expectedQuery : `author:monalisa repo:OWNER/REPO state: open type:pr ` ,
247247 },
248248 {
249249 name : "app author" ,
250250 cli : `--author "app/dependabot"` ,
251- expectedQuery : `repo:OWNER/REPO is:pr is: open author:app/dependabot ` ,
251+ expectedQuery : `author:app/dependabot repo:OWNER/REPO state: open type:pr ` ,
252252 },
253253 {
254254 name : "app author with app option" ,
255255 cli : `--app "dependabot"` ,
256- expectedQuery : `repo:OWNER/REPO is:pr is: open author:app/dependabot ` ,
256+ expectedQuery : `author:app/dependabot repo:OWNER/REPO state: open type:pr ` ,
257257 },
258258 }
259259
@@ -292,17 +292,17 @@ func TestPRList_web(t *testing.T) {
292292 {
293293 name : "filters" ,
294294 cli : "-a peter -l bug -l docs -L 10 -s merged -B trunk" ,
295- expectedBrowserURL : "https://github.com/OWNER/REPO/pulls?q=is%3Apr+is%3Amerged+ assignee%3Apeter+label%3Abug+label%3Adocs+base%3Atrunk " ,
295+ expectedBrowserURL : "https://github.com/OWNER/REPO/pulls?q=assignee%3Apeter+base%3Atrunk+ label%3Abug+label%3Adocs+state%3Amerged+type%3Apr " ,
296296 },
297297 {
298298 name : "draft" ,
299299 cli : "--draft=true" ,
300- expectedBrowserURL : "https://github.com/OWNER/REPO/pulls?q=is%3Apr+is %3Aopen+draft%3Atrue " ,
300+ expectedBrowserURL : "https://github.com/OWNER/REPO/pulls?q=draft%3Atrue+state %3Aopen+type%3Apr " ,
301301 },
302302 {
303303 name : "non-draft" ,
304304 cli : "--draft=0" ,
305- expectedBrowserURL : "https://github.com/OWNER/REPO/pulls?q=is%3Apr+is %3Aopen+draft%3Afalse " ,
305+ expectedBrowserURL : "https://github.com/OWNER/REPO/pulls?q=draft%3Afalse+state %3Aopen+type%3Apr " ,
306306 },
307307 }
308308
0 commit comments