From 9fb8913eadded28ed405e63da4a3282b60416076 Mon Sep 17 00:00:00 2001 From: Victor Cheng Date: Wed, 27 May 2015 15:47:10 -0700 Subject: [PATCH 1/2] Add call to retrieve all issue comments for a repo --- src/tentacles/issues.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tentacles/issues.clj b/src/tentacles/issues.clj index 9760171..2e4b174 100644 --- a/src/tentacles/issues.clj +++ b/src/tentacles/issues.clj @@ -96,6 +96,11 @@ ;; ## Issue Comments API +(defn repo-issue-comments + "List issue comments in a repository." + [user repo & [options]] + (api-call :get "repos/%s/%s/issues/comments" [user repo] options)) + (defn issue-comments "List comments on an issue." [user repo id & [options]] From fb103c9c596224dcbab8cda2e5444c6073b3fa70 Mon Sep 17 00:00:00 2001 From: Victor Cheng Date: Thu, 28 May 2015 14:32:40 -0700 Subject: [PATCH 2/2] Add call to retrieve all pull comments for a repo --- src/tentacles/pulls.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tentacles/pulls.clj b/src/tentacles/pulls.clj index 37e9fa5..c56c618 100644 --- a/src/tentacles/pulls.clj +++ b/src/tentacles/pulls.clj @@ -67,6 +67,11 @@ ;; ## Pull Request Comment API +(defn repo-comments + "List pull request comments in a repository." + [user repo & [options]] + (api-call :get "repos/%s/%s/pulls/comments" [user repo] options)) + (defn comments "List comments on a pull request." [user repo id & [options]]