Skip to content

Commit

Permalink
Merge pull request #76 from vjc/add-get-repo-issues-comments
Browse files Browse the repository at this point in the history
Add calls to retrieve pull/issue comments for a repo
  • Loading branch information
Raynes committed Jun 25, 2015
2 parents 0d766d2 + fb103c9 commit 2414a50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tentacles/issues.clj
Expand Up @@ -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]]
Expand Down
5 changes: 5 additions & 0 deletions src/tentacles/pulls.clj
Expand Up @@ -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]]
Expand Down

0 comments on commit 2414a50

Please sign in to comment.