Skip to content

Commit

Permalink
Update github.js
Browse files Browse the repository at this point in the history
  • Loading branch information
avyaznikov committed Jan 25, 2012
1 parent ac19564 commit 2c4fdbe
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions github.js
Expand Up @@ -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) {
Expand Down

1 comment on commit 2c4fdbe

@avyaznikov
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get open\closed issues functions

Please sign in to comment.