Function: forge-read-open-issue
forge-read-open-issue is a natively compiled function defined in
forge-issue.el.
Signature
(forge-read-open-issue PROMPT)
Documentation
Read an open issue with completion using PROMPT.
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-issue.el
(defun forge-read-open-issue (prompt)
"Read an open issue with completion using PROMPT."
(let* ((current (forge-current-issue))
(repo (forge-get-repository (or current :tracked)))
(default (and current (forge--format-topic-line current)))
(alist (forge--topic-collection
(forge--list-topics
(forge--topics-spec :type 'issue :state 'open)
repo)))
(choices (mapcar #'car alist))
(choice (magit-completing-read prompt choices nil t nil nil default)))
(cdr (assoc choice alist))))