mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Update most URLs to docs.github.com (#1896)
Now that GitHub have moved their documentation from developer.github.com, we should update our links. I have also tried to update the call strings to their new format, but since it was done via regex, some of them may not match exactly.
This commit is contained in:
@@ -33,7 +33,7 @@ from . import Consts
|
||||
|
||||
class ProjectCard(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
This class represents Project Cards. The reference can be found here https://developer.github.com/v3/projects/cards
|
||||
This class represents Project Cards. The reference can be found here https://docs.github.com/en/rest/reference/projects#cards
|
||||
"""
|
||||
|
||||
def __repr__(self):
|
||||
@@ -114,7 +114,7 @@ class ProjectCard(github.GithubObject.CompletableGithubObject):
|
||||
# the API doesn't make it clear which you are dealing with.
|
||||
def get_content(self, content_type=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:owner/:repo/pulls/:number <https://developer.github.com/v3/pulls/#get-a-single-pull-request>`_
|
||||
:calls: `GET /repos/{owner}/{repo}/pulls/{number} <https://docs.github.com/en/rest/reference/pulls#get-a-single-pull-request>`_
|
||||
:param content_type: string, optional
|
||||
:rtype: :class:`github.PullRequest.PullRequest` or :class:`github.Issue.Issue`
|
||||
"""
|
||||
@@ -137,7 +137,7 @@ class ProjectCard(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def move(self, position, column):
|
||||
"""
|
||||
:calls: `POST /projects/columns/cards/:card_id/moves <https://developer.github.com/v3/projects/cards>`_
|
||||
:calls: `POST /projects/columns/cards/{card_id}/moves <https://docs.github.com/en/rest/reference/projects#cards>`_
|
||||
:param position: string
|
||||
:param column: :class:`github.ProjectColumn.ProjectColumn` or int
|
||||
:rtype: bool
|
||||
@@ -162,7 +162,7 @@ class ProjectCard(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /projects/columns/cards/:card_id <https://developer.github.com/v3/projects/cards>`_
|
||||
:calls: `DELETE /projects/columns/cards/{card_id} <https://docs.github.com/en/rest/reference/projects#cards>`_
|
||||
:rtype: bool
|
||||
"""
|
||||
status, _, _ = self._requester.requestJson(
|
||||
@@ -176,7 +176,7 @@ class ProjectCard(github.GithubObject.CompletableGithubObject):
|
||||
self, note=github.GithubObject.NotSet, archived=github.GithubObject.NotSet
|
||||
):
|
||||
"""
|
||||
:calls: `PATCH /projects/columns/cards/:card_id <http://developer.github.com/v3/projects/cards>`_
|
||||
:calls: `PATCH /projects/columns/cards/{card_id} <http://docs.github.com/en/rest/reference/projects#cards>`_
|
||||
:param note: string
|
||||
:param archived: bool
|
||||
:rtype: None
|
||||
|
||||
Reference in New Issue
Block a user