@@ -8,6 +8,12 @@ title: Pull Request API v3 | developer.github.com
88
99 GET /repo/:user/:repo/pulls
1010
11+ ### Parameters
12+
13+ state
14+ : _ Optional_ ** string** - ` open ` or ` closed ` to filter by state. Default
15+ is ` open ` .
16+
1117### Response
1218
1319<%= headers 200 %>
@@ -29,18 +35,16 @@ title: Pull Request API v3 | developer.github.com
2935### Input
3036
3137title
32- : _ Optional_ ** string** title for this Pull Request. This will default
33- to the branch name if no value is specified.
38+ : _ Required_ ** string**
3439
3540body
36- : _ Optional_ ** string** describing this Pull Request.
41+ : _ Optional_ ** string**
3742
3843base
39- : _ Required_ ** string** specifying the branch you want your changes
40- pulled into.
44+ : _ Required_ ** string** - The branch you want your changes pulled into.
4145
4246head
43- : _ Required_ ** string** specifying the branch where your changes are implemented.
47+ : _ Required_ ** string** - The branch where your changes are implemented.
4448
4549NOTE: ` head ` and ` base ` can be either a sha or a branch name. Typically you
4650would namespace ` head ` with a user like this: ` username:branch ` .
@@ -58,7 +62,7 @@ You can also create a Pull Request from an existing Issue by passing an
5862Issue number instead of ` title ` and ` body ` .
5963
6064issue
61- : _ Required_ ** number** of an issue in this repository to turn into a
65+ : _ Required_ ** number** - Issue number in this repository to turn into a
6266Pull Request.
6367
6468<%= json \
@@ -79,15 +83,14 @@ Pull Request.
7983### Input
8084
8185title
82- : _ Optional_ ** string** title for this Pull Request. This will default
83- to the branch name if no value is specified.
86+ : _ Optional_ ** string**
8487
8588body
86- : _ Optional_ ** string** describing this Pull Request.
89+ : _ Optional_ ** string**
8790
8891state
89- : _ Optional_ ** string** to update the state of this Pull Request. Valid
90- values are ` open ` and ` closed ` .
92+ : _ Optional_ ** string** - State of this Pull Request. Valid values are
93+ ` open ` and ` closed ` .
9194
9295<%= json \
9396 : title => "new title",
0 commit comments