mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +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:
@@ -29,7 +29,7 @@ from . import Consts
|
||||
|
||||
class ProjectColumn(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
This class represents Project Columns. The reference can be found here http://developer.github.com/v3/projects/columns
|
||||
This class represents Project Columns. The reference can be found here http://docs.github.com/en/rest/reference/projects#columns
|
||||
"""
|
||||
|
||||
def __repr__(self):
|
||||
@@ -93,7 +93,7 @@ class ProjectColumn(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_cards(self, archived_state=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /projects/columns/:column_id/cards <https://developer.github.com/v3/projects/cards/#list-project-cards>`_
|
||||
:calls: `GET /projects/columns/{column_id}/cards <https://docs.github.com/en/rest/reference/projects/cards#list-project-cards>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.ProjectCard.ProjectCard`
|
||||
:param archived_state: string
|
||||
"""
|
||||
@@ -120,7 +120,7 @@ class ProjectColumn(github.GithubObject.CompletableGithubObject):
|
||||
content_type=github.GithubObject.NotSet,
|
||||
):
|
||||
"""
|
||||
:calls: `POST /projects/columns/:column_id/cards <https://developer.github.com/v3/projects/cards/#create-a-project-card>`_
|
||||
:calls: `POST /projects/columns/{column_id}/cards <https://docs.github.com/en/rest/reference/projects/cards#create-a-project-card>`_
|
||||
:param note: string
|
||||
:param content_id: integer
|
||||
:param content_type: string
|
||||
@@ -147,7 +147,7 @@ class ProjectColumn(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def move(self, position):
|
||||
"""
|
||||
:calls: `POST POST /projects/columns/:column_id/moves <https://developer.github.com/v3/projects/columns/#move-a-project-column>`_
|
||||
:calls: `POST POST /projects/columns/{column_id}/moves <https://docs.github.com/en/rest/reference/projects/columns#move-a-project-column>`_
|
||||
:param position: string
|
||||
|
||||
:rtype: bool
|
||||
@@ -164,7 +164,7 @@ class ProjectColumn(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /projects/columns/:column_id <https://developer.github.com/v3/projects/columns/#delete-a-project-column>`_
|
||||
:calls: `DELETE /projects/columns/{column_id} <https://docs.github.com/en/rest/reference/projects/columns#delete-a-project-column>`_
|
||||
:rtype: bool
|
||||
"""
|
||||
status, _, _ = self._requester.requestJson(
|
||||
@@ -176,7 +176,7 @@ class ProjectColumn(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, name):
|
||||
"""
|
||||
:calls: `PATCH /projects/columns/:column_id <https://developer.github.com/v3/projects/columns/#update-a-project-column>`_
|
||||
:calls: `PATCH /projects/columns/{column_id} <https://docs.github.com/en/rest/reference/projects/columns#update-a-project-column>`_
|
||||
:param name: string
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user