Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added some issue API tasks.

  • Loading branch information...
commit 8e0024a17b1d5b469a990228338c2a502acee522 1 parent 9ac36f4
@Raynes authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 src/cake_github/issues.clj
View
23 src/cake_github/issues.clj
@@ -2,3 +2,26 @@
(:use cake cake.core
cake-github.core
clj-github.issues))
+
+(deftask github.issues.open
+ "Open an issue. Pass in the owner of the repo, name of the repo,
+ title of the issue, and body of the issue."
+ [{[one two three four] :github.issues.open}]
+ (format-result (open-issue auth one two three four) :map-type :issue))
+
+(deftask github.issues.info
+ "Show data about an issue. Pass in the owner of the repo, name of the repo,
+ and number of the issue."
+ [{[one two three] :github.issues.info}]
+ (format-result (show-issue auth one two three) :map-type :issue))
+
+(deftask github.issues.close
+ "Close an issue. Pass in the owner of the repo, name of the repo, and issue number."
+ [{[one two three] :github.issues.close}]
+ (format-result (close-issue auth one two three) :map-type :issue))
+
+(deftask github.issues.comment
+ "Comment on an issue. Pass in the owner of the repo, name of the repo, issue number,
+ and the comment you want to add."
+ [{[one two three four] :github.issues.comment}]
+ (format-result (comment-issue auth one two three four) :map-type :comment))
Please sign in to comment.
Something went wrong with that request. Please try again.