Skip to content

Commit 2a9008e

Browse files
committed
Add base to PR edit
1 parent 554e7a4 commit 2a9008e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/common/pulls_service.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ class PullRequestsService extends Service {
4949
///
5050
/// API docs: https://developer.github.com/v3/pulls/#update-a-pull-request
5151
Future<PullRequest> edit(RepositorySlug slug, int number,
52-
{String title, String body, String state}) {
52+
{String title, String body, String state, String base}) {
5353
var map = <String, dynamic>{};
5454
putValue("title", title, map);
5555
putValue("body", body, map);
5656
putValue("state", state, map);
57+
putValue("base", base, map);
5758

5859
return _github
5960
.request("POST", '/repos/${slug.fullName}/pulls/$number',

0 commit comments

Comments
 (0)