@@ -234,6 +234,27 @@ This is a list of package names. Used by the commands
234
234
(forge--tablist-columns-vector)
235
235
id))))
236
236
237
+ ;;;### autoload
238
+ (defun forge-list-labeled-issues (id label )
239
+ " List issues of the current repository that have LABEL.
240
+ List them in a separate buffer."
241
+ (interactive (list (oref (forge-get-repository t ) id)
242
+ (magit-completing-read-multiple*
243
+ " Label: "
244
+ (mapcar #'cadr (oref (forge-get-repository t ) labels))
245
+ nil t )))
246
+ (forge-topic-list-setup #'forge-issue-list-mode id nil nil
247
+ (lambda ()
248
+ (forge-sql [:select $i1 :from [issue issue_label label]
249
+ :where (and (= issue_label:issue issue:id)
250
+ (= issue_label:id label:id)
251
+ (= issue:repository $s2)
252
+ (= label:name $s3)
253
+ (isnull issue:closed))
254
+ :order-by [(desc updated)]]
255
+ (forge--tablist-columns-vector 'issue )
256
+ id label))))
257
+
237
258
;;;### autoload
238
259
(defun forge-list-assigned-issues (id )
239
260
" List issues of the current repository that are assigned to you.
@@ -285,6 +306,27 @@ Only Github is supported for now."
285
306
(forge--tablist-columns-vector)
286
307
id))))
287
308
309
+ ;;;### autoload
310
+ (defun forge-list-labeled-pullreqs (id label )
311
+ " List pull-requests of the current repository that have LABEL.
312
+ List them in a separate buffer."
313
+ (interactive (list (oref (forge-get-repository t ) id)
314
+ (magit-completing-read-multiple*
315
+ " Label: "
316
+ (mapcar #'cadr (oref (forge-get-repository t ) labels))
317
+ nil t )))
318
+ (forge-topic-list-setup #'forge-pullreq-list-mode id nil nil
319
+ (lambda ()
320
+ (forge-sql [:select $i1 :from [pullreq pullreq_label label]
321
+ :where (and (= pullreq_label:pullreq pullreq:id)
322
+ (= pullreq_label:id label:id)
323
+ (= pullreq:repository $s2)
324
+ (= label:name $s3)
325
+ (isnull pullreq:closed))
326
+ :order-by [(desc updated)]]
327
+ (forge--tablist-columns-vector 'pullreq )
328
+ id label))))
329
+
288
330
;;;### autoload
289
331
(defun forge-list-assigned-pullreqs (id )
290
332
" List pull-requests of the current repository that are assigned to you.
0 commit comments