File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed
Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -713,9 +713,11 @@ can be selected from the start."
713713 (read-string " Title: " (oref topic title)))
714714
715715(defun forge-read-topic-milestone (&optional topic )
716- (forge- -completing-read
716+ (magit -completing-read
717717 " Milestone"
718- (mapcar #'caddr (oref (forge-get-repository (or topic :tracked )) milestones))
718+ (cons " "
719+ (mapcar #'caddr
720+ (oref (forge-get-repository (or topic :tracked )) milestones)))
719721 nil t
720722 (and topic (forge--format-topic-milestone topic))))
721723
@@ -758,24 +760,6 @@ can be selected from the start."
758760 'confirm
759761 (mapconcat #'cadr value " ," ))))
760762
761- (defun forge--completing-read ( prompt collection &optional
762- predicate require-match initial-input
763- hist def )
764- ; ; NOTE Only required until `magit-completing-read' has been
765- ; ; updated to allow empty input if require-match is t.
766- (let ((reply (funcall magit-completing-read-function
767- (concat prompt " : " )
768- (if (and def (not (member def collection)))
769- (cons def collection)
770- collection)
771- predicate
772- require-match initial-input hist def)))
773- (if (equal reply " " )
774- (if (and require-match (not (eq require-match t )))
775- (user-error " Nothing selected" )
776- nil )
777- reply)))
778-
779763; ;; Format
780764
781765(cl-defmethod forge--format ((topic forge-topic) slot &optional spec)
You can’t perform that action at this time.
0 commit comments