File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 216216 post ( "repos/show/" + this . user + "/" + this . repo , postData ) ;
217217 return this ;
218218 } ;
219- // TODO: tags, branches
220219
221220 // Get all tags in this repo.
222221 gh . repo . prototype . tags = function ( callback , context ) {
250249 return this ;
251250 } ;
252251
253- // All users who have contributed to this repo.
254- // TODO: anon users
255- gh . repo . prototype . contributors = function ( callback , context ) {
256- jsonp ( "repos/show/" + this . user + "/" + this . repo + "/contributors" ,
252+ // All users who have contributed to this repo. Pass true to showAnon if you
253+ // want to see the non-github contributors.
254+ gh . repo . prototype . contributors = function ( callback , context , showAnon ) {
255+ var url = "repos/show/" + this . user + "/" + this . repo + "/contributors" ;
256+ if ( showAnon )
257+ url += "/anon" ;
258+ jsonp ( url ,
257259 callback ,
258260 context ) ;
259261 return this ;
You can’t perform that action at this time.
0 commit comments