@@ -428,15 +428,26 @@ def reviews(self, number=-1, etag=None):
428
428
headers = headers )
429
429
430
430
@requires_auth
431
- def update (self , title = None , body = None , state = None ):
431
+ def update (self , title = None , body = None , state = None , base = None ,
432
+ maintainer_can_modify = None ):
432
433
"""Update this pull request.
433
434
434
435
:param str title: (optional), title of the pull
435
436
:param str body: (optional), body of the pull request
436
437
:param str state: (optional), ('open', 'closed')
438
+ :param str base: (optional), Name of the branch on the current
439
+ repository that the changes should be pulled into.
440
+ :param bool maintainer_can_modify: (optional), Indicates whether
441
+ a maintainer is allowed to modify the pull request or not.
437
442
:returns: bool
438
443
"""
439
- data = {'title' : title , 'body' : body , 'state' : state }
444
+ data = {
445
+ 'title' : title ,
446
+ 'body' : body ,
447
+ 'state' : state ,
448
+ 'base' : base ,
449
+ 'maintainer_can_modify' : maintainer_can_modify ,
450
+ }
440
451
json = None
441
452
self ._remove_none (data )
442
453
@@ -553,7 +564,7 @@ def reply(self, body):
553
564
"""
554
565
url = self ._build_url ('comments' , base_url = self .pull_request_url )
555
566
index = self ._api .rfind ('/' ) + 1
556
- in_reply_to = self ._api [index :]
567
+ in_reply_to = int ( self ._api [index :])
557
568
json = self ._json (self ._post (url , data = {
558
569
'body' : body , 'in_reply_to' : in_reply_to
559
570
}), 201 )
0 commit comments