Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2f2c03

Browse files
Update README.md
add documentation for listPulls and getPull
1 parent 3c5dd96 commit f2f2c03

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,20 @@ Create new branch for repo. You can omit oldBranchName to default to "master".
9191
repo.branch(oldBranchName, newBranchName, function(err) {});
9292
```
9393

94+
List Pull Requests.
95+
96+
```js
97+
var state = 'open'; //or 'closed', or 'all'
98+
repo.listPulls(state, function(err, pullRequests) {});
99+
```
100+
101+
Get details of a Pull Request.
102+
103+
```js
104+
var pullRequestID = 123;
105+
repo.getPull(pullRequestID, function(err, pullRequestInfo) {});
106+
```
107+
94108
Create Pull Request.
95109

96110
```js
@@ -103,7 +117,6 @@ var pull = {
103117
repo.createPullRequest(pull, function(err, pullRequest) {});
104118
```
105119

106-
107120
Retrieve all available branches (aka heads) of a repository.
108121

109122
```js

0 commit comments

Comments
 (0)