File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,20 @@ Create new branch for repo. You can omit oldBranchName to default to "master".
91
91
repo .branch (oldBranchName, newBranchName, function (err ) {});
92
92
```
93
93
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
+
94
108
Create Pull Request.
95
109
96
110
``` js
@@ -103,7 +117,6 @@ var pull = {
103
117
repo .createPullRequest (pull, function (err , pullRequest ) {});
104
118
```
105
119
106
-
107
120
Retrieve all available branches (aka heads) of a repository.
108
121
109
122
``` js
You can’t perform that action at this time.
0 commit comments