Add maintainer can modify flag to create pull request (#703)

* Add flag for maintainer can modify when creating pull requests

* Change default to be None to let github decide the behaviour

* Update docstring

* Follow conventions from other functions
This commit is contained in:
Raihaan
2018-02-15 10:07:26 +08:00
committed by Wan Liuyang
parent 98d32af494
commit 0e5a1d1d53
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ class Repository(Framework.TestCase):
self.assertListKeyEqual(self.repo.get_subscribers(), lambda u: u.login, ["jacquev6", "equus12", "bilderbuchi", "hcilab", "hattya", "firstthumb", "gregwjacobs", "sagarsane", "liang456", "berndca", "Lyloa"])
def testCreatePull(self):
pull = self.repo.create_pull("Pull request created by PyGithub", "Body of the pull request", "topic/RewriteWithGeneratedCode", "BeaverSoftware:master")
pull = self.repo.create_pull("Pull request created by PyGithub", "Body of the pull request", "topic/RewriteWithGeneratedCode", "BeaverSoftware:master", True)
self.assertEqual(pull.id, 1436215)
def testCreatePullFromIssue(self):