Is there a way to assign labels and/or milestones when creating an issue or merge request in Magit Forge?

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).

1 Answer 1


No, Forge provides no UI for assigning anything to these fields before sending the issue off to the server.

However, some of the supported forges support commands that you can insert into the body of a new issue or merge request. Gitlab calls them “quick actions”; you’ll have to look through your forge’s help to see what they support. On Gitlab, putting “/label ~foo” in the body of a new issue will cause the Gitlab server to add the label called “foo” to the issue.

If that’s not available on your forge, you’ll need to view the issue or merge request after creating it, then put the point on the field you would like to edit (“Milestone”, “Labels”, “Marks”, a comment, etc), and type C-c C-e to edit it. This is all documented in chapter 4.3.4 Editing Topics and Posts of the Forge manual. The manual is also available inside Emacs using the Info viewer (C-h i). Doing this should not require refetching the issue; it certainly doesn’t when I use Forge to create issues on Gitlab.

  • It does refetch on github (which is the reference forge in ghub). Thanks for the confirmation, sadly I was expecting this be the case.
    – philsf
    Commented Sep 3, 2021 at 22:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.