                         :results results}))
 
 (defn run-emend
-    [job-name path-to-emender path-to-tests tests book-directory delete-workdirs?]
+    [job-name repo-url branch path-to-emender path-to-tests tests book-directory delete-workdirs?]
     (println "Starting Emend against the book directory" book-directory)
     (println book-directory)
     (println (type book-directory))

                (if delete-workdirs?
                    (file-utils/remove-temporary-directory book-directory))
                (if results
                    (process-results job-name results))
                    (send-response {:status :reading-job-result-failed}))
            (catch Exception e
                (if delete-workdirs?
                    (file-utils/remove-temporary-directory book-directory))

    (map #(str path-to-tests "/" % ".lua") tests))

(defn process-results
    [job-name repo-url branch results]
        (db-interface/log-job-results job-name repo-url branch results)
        (println "job name" job-name)
        (println "results:" results)
        ;(results/add-new-results job-name results)
