@@ -71,7 +71,9 @@ def __init__(self, repo, session=None):
71
71
self .forks = repo .get ('forks' , 0 )
72
72
73
73
#: The number of forks of this repository.
74
- self .fork_count = repo .get ('fork_count' )
74
+ self .forks_count = repo .get ('forks_count' )
75
+ # For backward compatibility
76
+ self .fork_count = self .forks_count
75
77
76
78
#: Is this repository a fork?
77
79
self .fork = repo .get ('fork' )
@@ -703,12 +705,11 @@ def create_milestone(self, title, state=None, description=None,
703
705
704
706
@requires_auth
705
707
def create_pull (self , title , base , head , body = None ):
706
- """Create a pull request using commits from ``head`` and comparing
707
- against ``base``.
708
+ """Create a pull request of ``head`` onto ``base`` branch in this repo.
708
709
709
710
:param str title: (required)
710
- :param str base: (required), e.g., 'username:branch', or a sha
711
- :param str head: (required), e.g., 'master', or a sha
711
+ :param str base: (required), e.g., 'master'
712
+ :param str head: (required), e.g., 'username:branch'
712
713
:param str body: (optional), markdown formatted description
713
714
:returns: :class:`PullRequest <github3.pulls.PullRequest>` if
714
715
successful, else None
@@ -722,8 +723,8 @@ def create_pull_from_issue(self, issue, base, head):
722
723
"""Create a pull request from issue #``issue``.
723
724
724
725
:param int issue: (required), issue number
725
- :param str base: (required), e.g., 'username:branch', or a sha
726
- :param str head: (required), e.g., 'master', or a sha
726
+ :param str base: (required), e.g., 'master'
727
+ :param str head: (required), e.g., 'username:branch'
727
728
:returns: :class:`PullRequest <github3.pulls.PullRequest>` if
728
729
successful, else None
729
730
"""
0 commit comments