Function: forge-approve-pullreq

forge-approve-pullreq is an interactive and natively compiled function defined in forge-commands.el.

Signature

(forge-approve-pullreq)

Documentation

Approve the current pull-request.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/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")))