mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user