Function: forge--submit-approve-pullreq

forge--submit-approve-pullreq is a byte-compiled function defined in forge-github.el.

Signature

(forge--submit-approve-pullreq &rest ARGS)

Implementations

(forge--submit-approve-pullreq (REPO forge-github-repository) (TOPIC forge-pullreq)) in `forge-github.el'.

Undocumented

Source Code

;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-github.el
(cl-defmethod forge--submit-approve-pullreq
  ((_repo forge-github-repository)
   (topic forge-pullreq))
  (let ((body (string-trim (buffer-str))))
    (forge-rest topic "POST" "/repos/:owner/:repo/pulls/:number/reviews"
      ((event "APPROVE")
       (and (not (equal body "")) (body body)))
      :callback  (forge--post-submit-callback)
      :errorback (forge--post-submit-errorback))))