8000 Merge remote-tracking branch 'origin/pr/264' into develop · waynr/github3.py@3f52760 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f52760

Browse files
committed
Merge remote-tracking branch 'origin/pr/264' into develop
2 parents c086c67 + 19c0eb1 commit 3f52760

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ Contributors
6464
- Daniel Johnson (@danielj7)
6565

6666
- David Moss (@damoss007)
67+
68+
- John Barbuto (@jbarbuto)

github3/repos/repo.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def __init__(self, repo, session=None):
7171
self.forks = repo.get('forks', 0)
7272

7373
#: 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
7577

7678
#: Is this repository a fork?
7779
self.fork = repo.get('fork')
@@ -703,12 +705,11 @@ def create_milestone(self, title, state=None, description=None,
703705

704706
@requires_auth
705707
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.
708709
709710
: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'
712713
:param str body: (optional), markdown formatted description
713714
:returns: :class:`PullRequest <github3.pulls.PullRequest>` if
714715
successful, else None
@@ -722,8 +723,8 @@ def create_pull_from_issue(self, issue, base, head):
722723
"""Create a pull request from issue #``issue``.
723724
724725
: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'
727728
:returns: :class:`PullRequest <github3.pulls.PullRequest>` if
728729
successful, else None
729730
"""

0 commit comments

Comments
 (0)
0