Function: forge-approve-pullreq
forge-approve-pullreq is an interactive and byte-compiled function
defined in forge-commands.el.
Signature
(forge-approve-pullreq)
Documentation
Approve the current pull-request.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-commands.el
(transient-define-suffix forge-approve-pullreq ()
"Approve the current pull-request."
:description "approve pull-request"
:inapt-if-not #'forge-current-pullreq
:transient nil
(interactive)
(let ((pullreq (forge-current-pullreq t)))
(unless (forge-github-repository-p (forge-get-repository pullreq))
(user-error "This command is only available for Github"))
(forge--setup-post-buffer pullreq #'forge--submit-approve-pullreq
"%i;new-approval" "Approve pull-request #%i of %p")))