Permalink
Browse files

Organization issues API support.

  • Loading branch information...
pasku committed Jan 2, 2014
1 parent d0d1ccc commit b729e3446367c08797452f0c89e7d77d85b368e3
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/tentacles/issues.clj
View
@@ -50,6 +50,22 @@
[user repo & [options]]
(api-call :get "repos/%s/%s/issues" [user repo] (join-labels options)))
+(defn org-issues
+ "List all issues for a given organization for (authenticated) user.
+ Options are:
+ filter -- assigned: assigned to you,
+ created: created by you,
+ mentioned: issues that mention you,
+ subscribed: issues that you're subscribed to.
+ state -- open (default), closed.
+ labels -- A string of comma-separated label names.
+ sort -- created (default), updated, comments.
+ direction -- asc: ascending,
+ desc (default): descending.
+ since -- String ISO 8601 timestamp."
+ [org & [options]]
+ (api-call :get "orgs/%s/issues" [org] (join-labels options)))
+
(defn specific-issue
"Fetch a specific issue."
[user repo number & [options]]

0 comments on commit b729e34

Please sign in to comment.