Function: forge--set-connections

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

Signature

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

Source Code

;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/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))