Skip to content

Commit

Permalink
Changed some names and started on implementing the issue API functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Jun 10, 2010
1 parent 0d8d9ec commit 1a592ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/clj_github/issues.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(ns #^{:doc "Implements the API functions described here: http://develop.github.com/p/issues.html
In any function that takes a 'state' argument, state is either \"open\" or \"closed\""}
clj-github.issues
(:use [clj-github.core]))

(defn search-issues
"Search through a project's issues."
[user repo state term]
(handle (make-request (str "/issues/search/" (slash-join user repo state term))) :issues))

(defn list-issues
"List of issues a project has."
[user repo state]
(handle (make-request (str "/issues/list/" (slash-join user repo state))) :issues))
5 changes: 3 additions & 2 deletions src/clj_github/users.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
(ns clj-github.users
(ns #^{:doc "Implements the API functions described here: http://develop.github.com/p/users.html"}
clj-github.users
(:use [clj-github.core]))

(defn search
(defn search-users
"Searches for all users on github with term in their name."
[term]
(make-request (str "/user/search/" term)))
Expand Down

0 comments on commit 1a592ad

Please sign in to comment.