Permalink
Browse files

Update github.js

  • Loading branch information...
1 parent ac19564 commit 2c4fdbe2090ed965d78cf9782698b88bc0b98f24 @avyaznikov committed Jan 25, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 github.js
View
@@ -543,6 +543,23 @@
this.repo = repo;
this.number = number;
};
+
+ //View open issues
+ gh.issue.prototype.openIssues = function (callback, context) {
+ jsonp("issues/list/" + this.user + "/" + this.repo + "/open",
+ callback,
+ context);
+ return this;
+ };
+
+ //View closed issues
+ gh.issue.prototype.closedIssues = function (callback, context) {
+ jsonp("issues/list/" + this.user + "/" + this.repo + "/closed",
+ callback,
+ context);
+ return this;
+ };
+
// View this issue's info.
gh.issue.prototype.show = function (callback, context) {

1 comment on commit 2c4fdbe

Owner

avyaznikov commented on 2c4fdbe Jan 25, 2012

get open\closed issues functions

Please sign in to comment.