You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to assign labels and/or milestones when creating an issue or merge request in Magit Forge. Both forges I know (github and gitlab) offer this feature on the web UI, which simplifies workflows.
On github I currently have to create the topic, and then edit it twice (once for labels, then for milestones). Every one of those steps requires a new fetch.
I was hoping for a way to do all that in the same buffer for topic creation (and do a single topic fetch).
The text was updated successfully, but these errors were encountered:
As mentioned in the SE answer, for Gitlab you can use quick actions to assign labels. Here's what I'm using to insert these easily in a new issue buffer:
(defvarfov/forge-insert-labels-hist)
(defunfov/forge-insert-labels ()
"Insert a /labels quick action."
(interactive)
(let ((repo (forge-get-repository nil))
(crm-separator ","))
(when (null repo) (error"Repo not found -- is this a new issue buffer?"))
(when-let (labels (magit-completing-read-multiple*
"Labels: "
(mapcar#'cadr (oref repo labels))
niltnil'fov/forge-insert-labels-hist))
(insert"/label "
(mapconcat (lambda (label)
(if (string-match-p"^[a-zA-Z0-9_?.&-]+$" label)
(concat"~" label)
(concat"~\"" label "\"")))
labels
"")))))
;; Warning, clobbers a markdown mode binding
(define-key forge-post-mode-map (kbd"C-c C-l") #'fov/forge-insert-labels)
It would be nice to be able to assign labels and/or milestones when creating an issue or merge request in Magit Forge. Both forges I know (github and gitlab) offer this feature on the web UI, which simplifies workflows.
On github I currently have to create the topic, and then edit it twice (once for labels, then for milestones). Every one of those steps requires a new fetch.
I was hoping for a way to do all that in the same buffer for topic creation (and do a single topic fetch).
The text was updated successfully, but these errors were encountered: