Skip to content
Browse files

Update github.js

  • Loading branch information...
1 parent ac19564 commit 2c4fdbe2090ed965d78cf9782698b88bc0b98f24 @avyaznikov avyaznikov committed
Showing with 17 additions and 0 deletions.
  1. +17 −0 github.js
View
17 github.js
@@ -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) {

0 comments on commit 2c4fdbe

Please sign in to comment.
Something went wrong with that request. Please try again.