Skip to content

Commit d52df34

Browse files
author
Fredrik Liljegren
committed
Make Github.Issue.list options matter.
1 parent ffd7226 commit d52df34

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
@@ -755,7 +755,12 @@
755755
var path = "/repos/" + options.user + "/" + options.repo + "/issues";
756756

757757
this.list = function(options, cb) {
758-
_request("GET", path, options, cb);
758+
var query = [];
759+
for (var key in options) {
760+
query.push(encodeURIComponent(key) + "=" + encodeURIComponent(options[key]));
761+
}
762+
763+
_request("GET", path + '?' + query.join("&"), false, cb);
759764
};
760765
};
761766

0 commit comments

Comments
 (0)