Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #48 from pasku/master

Organization issues API support.
  • Loading branch information...
commit 2342e5d3cb6f27677b58c66bc2cac825d21dc75b 2 parents d0d1ccc + b729e34
@Raynes authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/tentacles/issues.clj
View
16 src/tentacles/issues.clj
@@ -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]]
Please sign in to comment.
Something went wrong with that request. Please try again.