         {:git_path (git-path repository-id)
          :git_url (git-url repository-id) }))
 
+
+;### templates ################################################################
+
+(defn- templates-data [task-spec]
+  (if-let [templates (:templates task-spec)]
+    (-> templates convert-to-array)
+    []))
 
 ;### dispatch data ############################################################
 

              :repository_id repository-id
              :scripts (:scripts trial)
              :task_id (:task_id trial)
              :tree-attachments (:tree-attachments task-spec)
              :tree-attachments-path (tree-attachments-path tree-id)
              :trial-attachments (:trial-attachments task-spec)


(ns cider-ci.dispatcher.dispatch.build-data
  (:require
    [cider-ci.utils.map :refer [convert-to-array]]
    [cider-ci.dispatcher.task :as task]
    [cider-ci.utils.http :as http]
    [cider-ci.utils.rdbms :as rdbms]
