Skip to content

Commit 9785c7f

Browse files
author
Ændrew Rininsland
committed
Merge pull request #166 from Textalk/master
Make Github.Issue.list options matter
2 parents 424d7d2 + d52df34 commit 9785c7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

github.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,12 @@
772772
var path = "/repos/" + options.user + "/" + options.repo + "/issues";
773773

774774
this.list = function(options, cb) {
775-
_request("GET", path, options, cb);
775+
var query = [];
776+
for (var key in options) {
777+
query.push(encodeURIComponent(key) + "=" + encodeURIComponent(options[key]));
778+
}
779+
780+
_request("GET", path + '?' + query.join("&"), false, cb);
776781
};
777782
};
778783

0 commit comments

Comments
 (0)