Function: forge-chatter-state-set-duplicate
forge-chatter-state-set-duplicate is an interactive and byte-compiled
function defined in forge-topic.el.
Signature
(forge-chatter-state-set-duplicate)
Documentation
Set the state of the current discussion or issue to duplicate.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-topic.el
(transient-define-suffix forge-chatter-state-set-duplicate ()
"Set the state of the current discussion or issue to `duplicate'."
:class 'forge--topic-set-state-command
:state 'duplicate
:getter #'forge-current-chatter
:if #'forge-current-chatter
(interactive)
(with-slots (getter state) (transient-suffix-object)
(let ((topic (funcall getter t)))
(if (forge-issue-p topic)
(message
"The API does not yet support closing an issue as a duplicate")
(forge--set-topic-state (forge-get-repository topic)
topic state)))))