Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

new gh-issue fixed #16

Merged
merged 2 commits into from

2 participants

@avyaznikov

gh issue fixed

@avyaznikov

get open\closed issues functions

@fitzgen fitzgen merged commit 5daf22b into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 25, 2012
  1. @avyaznikov

    new gh-issue fixed

    avyaznikov authored
  2. @avyaznikov

    Update github.js

    avyaznikov authored
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 1 deletion.
  1. +18 −1 github.js
View
19 github.js
@@ -538,11 +538,28 @@
gh.issue = function (user, repo, number) {
if ( !(this instanceof gh.issue) )
- return new gh.commit(user, repo, number);
+ return new gh.issue(user, repo, number);
this.user = user;
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) {
Something went wrong with that request. Please try again.