Skip to content

Commit 8b43038

Browse files
committed
Define issues object & adjusts to issues usage
1 parent ff8e42b commit 8b43038

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![browser support](https://ci.testling.com/darvin/github.png)](https://ci.testling.com/darvin/github)
1+
[![browser support](https://ci.testling.com/darvin/github.png)](https://ci.testling.com/darvin/github)
22

33

44
[![Build Status](https://travis-ci.org/darvin/github.png?branch=master)](https://travis-ci.org/darvin/github)
@@ -234,10 +234,14 @@ gist.update(delta, function(err, gist) {
234234
```
235235
## Issues API
236236

237-
To read all the issues of a given repository
237+
```js
238+
var issues = github.getIssues(username, reponame);
239+
```
240+
241+
To read all the issues of a given repository
238242

239243
```js
240-
github.getIssues(owner, repo, function(err, issues) {})
244+
issues.list(options, function(err, issues) {});
241245
```
242246

243247
## Tests

0 commit comments

Comments
 (0)