Skip to content

Commit d3d2043

Browse files
author
Yoav Ram
committed
fixed documentation of user.repos
user.repos accepts only a callback and not a username string and a callback as advertised. also extended the description of the method.
1 parent 7d9fcfb commit d3d2043

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ repo.deleteRef('heads/gh-pages', function(err) {});
139139
var user = github.getUser();
140140
```
141141

142-
List all repositories of the authenticated user.
142+
List all repositories of the authenticated user, including private repositories and repositories in which the user is a collaborator and not an owner.
143143

144144
```js
145-
user.repos(username, function(err, repos) {});
145+
user.repos(function(err, repos) {});
146146
```
147147

148148
List organizations the autenticated user belongs to.
@@ -269,4 +269,4 @@ Consider commit messages.
269269

270270
### 0.1.X
271271

272-
Initial version.
272+
Initial version.

0 commit comments

Comments
 (0)