You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`state`|`string` | Either `open` or `closed` to filter by state. | |`open`
39
+
`head`|`string` | Filter pulls by head user and branch name in the format of `user:ref-name`. Example: `github:new-script-format`.| |
40
+
`base`|`string` | Filter pulls by base branch name. Example: `gh-pages`.| |
50
41
51
-
base
52
-
: _Optional_**string** - Filter pulls by base branch name. Example:
53
-
`gh-pages`.
54
42
55
43
### Response
56
44
@@ -86,20 +74,13 @@ Pass the appropriate [media type](/v3/media/#commits-commit-comparison-and-pull-
86
74
87
75
### Input
88
76
89
-
title
90
-
: _Required_**string**
77
+
Name | Type | Description | Required? | Default
78
+
-----|------|--------------|----------|---------
79
+
`title`|`string` | The title of the pull request.|**YES**|
80
+
`body`|`string` | The contents of the pull request.| |
81
+
`base`|`string` | The branch (or git ref) you want your changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repo that requests a merge to a base of another repo.|**YES**|
82
+
`head`|`string` | The branch (or git ref) where your changes are implemented.|**YES**|
91
83
92
-
body
93
-
: _Optional_**string**
94
-
95
-
base
96
-
: _Required_**string** - The branch (or git ref) you want your changes pulled into.
97
-
This should be an existing branch on the current repository. You cannot
98
-
submit a pull request to one repo that requests a merge to a base of
99
-
another repo.
100
-
101
-
head
102
-
: _Required_**string** - The branch (or git ref) where your changes are implemented.
103
84
104
85
NOTE: `head` and `base` can be either a sha or a branch name. Typically you
105
86
would namespace `head` with a user like this: `username:branch`.
@@ -116,9 +97,10 @@ would namespace `head` with a user like this: `username:branch`.
116
97
You can also create a Pull Request from an existing Issue by passing an
117
98
Issue number instead of `title` and `body`.
118
99
119
-
issue
120
-
: _Required_**number** - Issue number in this repository to turn into a
121
-
Pull Request.
100
+
Name | Type | Description | Required? | Default
101
+
-----|------|--------------|----------|---------
102
+
`issue`|`number` | The issue number in this repository to turn into a Pull Request.|**YES**|
103
+
122
104
123
105
<%= json \
124
106
:issue => "5",
@@ -137,15 +119,12 @@ Pull Request.
137
119
138
120
### Input
139
121
140
-
title
141
-
: _Optional_**string**
122
+
Name | Type | Description | Required? | Default
123
+
-----|------|--------------|----------|---------
124
+
`title`|`string` | The title of the pull request.| |
125
+
`body`|`string` | The contents of the pull request.| |
126
+
`state`|`string` | State of this Pull Request. Either `open` or `closed`.| |
142
127
143
-
body
144
-
: _Optional_**string**
145
-
146
-
state
147
-
: _Optional_**string** - State of this Pull Request. Valid values are
148
-
`open` and `closed`.
149
128
150
129
<%= json \
151
130
:title => "new title",
@@ -194,8 +173,10 @@ state
194
173
195
174
### Input
196
175
197
-
commit\_message
198
-
: _Optional_**string** - The message that will be used for the merge commit
176
+
Name | Type | Description | Required? | Default
177
+
-----|------|--------------|----------|---------
178
+
`commit_message`|`string` | The message that will be used for the merge commit| |
0 commit comments