Function: forge--set-connections

forge--set-connections is a natively compiled function defined in forge-core.el.

Signature

(forge--set-connections REPO OBJECT SLOT LIST)

Source Code

;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-core.el
(defun forge--set-connections (repo object slot list)
  (closql-dset object slot
               (let ((rid (oref repo id)))
                 (mapcar (lambda (value)
                           (forge--object-id
                            rid
                            (if (atom value)
                                ;; For Gitlab labels we unfortunately only
                                ;; get a string, the ambiguous name of the
                                ;; label.  See also the comment in the
                                ;; Gitlab `forge--update-labels' method.
                                value
                              (alist-get 'id value))))
                         list))
               t))