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
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
title:API changes for changing the base branch on Pull Requests
3
+
author_name:scottjg
4
+
---
5
+
GitHub recently added the ability to[change the base branch][blog post] on a Pull Request after it's created. Now we're updating the Pull Request API to enable the new functionality.
Copy file name to clipboardExpand all lines: content/v3/pulls.md
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Name | Type | Description
87
87
-----|------|-------------
88
88
`title`|`string` |**Required**. The title of the pull request.
89
89
`head`|`string` |**Required**. The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace`head` with a user like this:`username:branch`.
90
-
`base`|`string` |**Required**. The name of the branch you wantyour changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
90
+
`base`|`string` |**Required**. The name of the branch you wantthe changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
91
91
`body`|`string` | The contents of the pull request.
92
92
93
93
@@ -132,14 +132,18 @@ Name | Type | Description
132
132
-----|------|--------------
133
133
`title`|`string` | The title of the pull request.
134
134
`body`|`string` | The contents of the pull request.
135
-
`state`|`string` | State of this Pull Request. Either`open` or`closed`.
135
+
`state`|`string` | State of this Pull Request. Either`open` or`closed`.{% if page.version == 'dotcom' or page.version >= 2.8 %}
136
+
`base`|`string` | The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.
137
+
{% endif %}
136
138
137
139
####Example
138
140
139
141
<%= json\
140
142
:title => "new title",
141
143
:body => "updated body",
142
-
:state => "open"
144
+
:state => "open"{% if page.version == 'dotcom' or page.version >= 2.8 %},