Function: forge-current-pullreq

forge-current-pullreq is a natively compiled function defined in forge-pullreq.el.

Signature

(forge-current-pullreq &optional DEMAND)

Documentation

Return the pull-request at point or being visited.

If there is no such pull-request and DEMAND is non-nil, then signal an error.

Source Code

;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-pullreq.el
;;;; Current

(defun forge-current-pullreq (&optional demand)
  "Return the pull-request at point or being visited.
If there is no such pull-request and DEMAND is non-nil, then signal
an error."
  (or (forge-pullreq-at-point)
      (and (forge-pullreq-p forge-buffer-topic)
           forge-buffer-topic)
      (and demand (user-error "No current pull-request"))))