· 7 years ago · Oct 04, 2018, 11:02 AM
1(defn filter-function [c] (= your@email.com" (get-in c [:commit :author :email])))
2(def t-count 1)
3(defn map-function [c] (:commit c))
4(use '[tentacles.core :only [api-call]])
5(def auth {:oauth-token "xxx"})
6(pprint (take t-count (map map-function (filter filter-function (api-call :get "repos/%s/%s/commits", ["user" "repo"] auth)))))