Function: forge-read-open-issue
forge-read-open-issue is a byte-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 ~/.emacs.d/elpa/forge-20260408.1922/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))))