Skip to content

Commit

Permalink
Fix broken urls in docstrings (#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
Muscaw committed Jun 1, 2023
1 parent b94a83c commit f82ad61
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions github/AuthenticatedUser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ def get_repos(
direction=github.GithubObject.NotSet,
):
"""
:calls: `GET /user/repos <http://docs.github.com/en/rest/reference/repos>`
:calls: `GET /user/repos <http://docs.github.com/en/rest/reference/repos>`_
:param visibility: string
:param affiliation: string
:param type: string
Expand Down Expand Up @@ -1299,7 +1299,7 @@ def remove_from_watched(self, watched):

def accept_invitation(self, invitation):
"""
:calls: `PATCH /user/repository_invitations/{invitation_id} <https://docs.github.com/en/rest/reference/repos/invitations#>`
:calls: `PATCH /user/repository_invitations/{invitation_id} <https://docs.github.com/en/rest/reference/repos/invitations#>`_
:param invitation: :class:`github.Invitation.Invitation` or int
:rtype: None
"""
Expand Down
6 changes: 3 additions & 3 deletions github/Branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def remove_push_restrictions(self):

def get_required_signatures(self):
"""
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`_
"""
headers, data = self._requester.requestJsonAndCheck(
"GET",
Expand All @@ -648,7 +648,7 @@ def get_required_signatures(self):

def add_required_signatures(self):
"""
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`_
"""
headers, data = self._requester.requestJsonAndCheck(
"POST",
Expand All @@ -658,7 +658,7 @@ def add_required_signatures(self):

def remove_required_signatures(self):
"""
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`_
"""
headers, data = self._requester.requestJsonAndCheck(
"DELETE",
Expand Down
4 changes: 2 additions & 2 deletions github/Repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ def get_branch(self, branch):

def rename_branch(self, branch, new_name):
"""
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/rename <https://docs.github.com/en/rest/reference/repos#branches>`
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/rename <https://docs.github.com/en/rest/reference/repos#branches>`_
:param branch: :class:`github.Branch.Branch` or string
:param new_name: string
:rtype: bool
Expand Down Expand Up @@ -2506,7 +2506,7 @@ def get_git_refs(self):

def get_git_matching_refs(self, ref):
"""
:calls: `GET /repos/{owner}/{repo}/git/matching-refs/{ref} <https://docs.github.com/en/rest/reference/git#list-matching-references>`
:calls: `GET /repos/{owner}/{repo}/git/matching-refs/{ref} <https://docs.github.com/en/rest/reference/git#list-matching-references>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.GitRef.GitRef`
"""
assert isinstance(ref, str), ref
Expand Down
2 changes: 1 addition & 1 deletion github/Team.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def has_in_repos(self, repo):

def remove_membership(self, member):
"""
:calls: `DELETE /teams/{team_id}/memberships/{username} <https://docs.github.com/en/rest/reference/teams#remove-team-membership-for-a-user>`
:calls: `DELETE /teams/{team_id}/memberships/{username} <https://docs.github.com/en/rest/reference/teams#remove-team-membership-for-a-user>`_
:param member:
:return:
"""
Expand Down

0 comments on commit f82ad61

Please sign in to comment.