Skip to content

Commit babcbcd

Browse files
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.
1 parent ad124ef commit babcbcd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+529
-530
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
[![codecov](https://codecov.io/gh/PyGithub/PyGithub/branch/master/graph/badge.svg)](https://codecov.io/gh/PyGithub/PyGithub)
1010
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1111

12-
PyGitHub is a Python library to access the [GitHub API v3] and [Github Enterprise API v3].
12+
PyGitHub is a Python library to access the [GitHub REST API].
1313
This library enables you to manage [GitHub] resources such as repositories, user profiles, and organizations in your Python applications.
1414

15-
[GitHub API v3]: https://developer.github.com/v3
16-
[Github Enterprise API v3]: https://developer.github.com/enterprise/v3/
15+
[GitHub REST API]: https://docs.github.com/en/rest
1716
[GitHub]: https://github.com
1817

1918
## Install

github/ApplicationOAuth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class ApplicationOAuth(github.GithubObject.NonCompletableGithubObject):
3030
"""
3131
This class is used for identifying and authorizing users for Github Apps.
32-
https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#1-users-are-redirected-to-request-their-github-identity
32+
The reference can be found at https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps
3333
"""
3434

3535
def __repr__(self):
@@ -77,7 +77,7 @@ def get_login_url(self, redirect_uri=None, state=None, login=None):
7777

7878
def get_access_token(self, code, state=None):
7979
"""
80-
:calls: `POST /login/oauth/access_token <https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/>`_
80+
:calls: `POST /login/oauth/access_token <https://docs.github.com/en/developers/apps/identifying-and-authorizing-users-for-github-apps>`_
8181
:param code: string
8282
:param state: string
8383
"""

github/AuthenticatedUser.py

Lines changed: 51 additions & 51 deletions
Large diffs are not rendered by default.

github/Authorization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
class Authorization(github.GithubObject.CompletableGithubObject):
3636
"""
37-
This class represents Authorizations. The reference can be found here https://developer.github.com/v3/oauth_authorizations/
37+
This class represents Authorizations. The reference can be found here https://docs.github.com/en/[email protected]/rest/reference/oauth-authorizations
3838
"""
3939

4040
def __repr__(self):
@@ -114,7 +114,7 @@ def url(self):
114114

115115
def delete(self):
116116
"""
117-
:calls: `DELETE /authorizations/:id <http://developer.github.com/v3/oauth>`_
117+
:calls: `DELETE /authorizations/{id} <https://docs.github.com/en/developers/apps/authorizing-oauth-apps>`_
118118
:rtype: None
119119
"""
120120
headers, data = self._requester.requestJsonAndCheck("DELETE", self.url)
@@ -128,7 +128,7 @@ def edit(
128128
note_url=github.GithubObject.NotSet,
129129
):
130130
"""
131-
:calls: `PATCH /authorizations/:id <http://developer.github.com/v3/oauth>`_
131+
:calls: `PATCH /authorizations/{id} <https://docs.github.com/en/developers/apps/authorizing-oauth-apps>`_
132132
:param scopes: list of string
133133
:param add_scopes: list of string
134134
:param remove_scopes: list of string

github/Branch.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
class Branch(github.GithubObject.NonCompletableGithubObject):
4444
"""
45-
This class represents Branches. The reference can be found here https://developer.github.com/v3/repos/branches
45+
This class represents Branches. The reference can be found here https://docs.github.com/en/rest/reference/repos#branches
4646
"""
4747

4848
def __repr__(self):
@@ -98,7 +98,7 @@ def _useAttributes(self, attributes):
9898

9999
def get_protection(self):
100100
"""
101-
:calls: `GET /repos/:owner/:repo/branches/:branch/protection <https://developer.github.com/v3/repos/branches>`_
101+
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection <https://docs.github.com/en/rest/reference/repos#branches>`_
102102
"""
103103
headers, data = self._requester.requestJsonAndCheck(
104104
"GET",
@@ -123,7 +123,7 @@ def edit_protection(
123123
team_push_restrictions=github.GithubObject.NotSet,
124124
):
125125
"""
126-
:calls: `PUT /repos/:owner/:repo/branches/:branch/protection <https://developer.github.com/v3/repos/branches>`_
126+
:calls: `PUT /repos/{owner}/{repo}/branches/{branch}/protection <https://docs.github.com/en/rest/reference/repos#branches>`_
127127
:strict: bool
128128
:contexts: list of strings
129129
:enforce_admins: bool
@@ -245,7 +245,7 @@ def edit_protection(
245245

246246
def remove_protection(self):
247247
"""
248-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection <https://developer.github.com/v3/repos/branches>`_
248+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection <https://docs.github.com/en/rest/reference/repos#branches>`_
249249
"""
250250
headers, data = self._requester.requestJsonAndCheck(
251251
"DELETE",
@@ -254,7 +254,7 @@ def remove_protection(self):
254254

255255
def get_required_status_checks(self):
256256
"""
257-
:calls: `GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks <https://developer.github.com/v3/repos/branches>`_
257+
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks <https://docs.github.com/en/rest/reference/repos#branches>`_
258258
:rtype: :class:`github.RequiredStatusChecks.RequiredStatusChecks`
259259
"""
260260
headers, data = self._requester.requestJsonAndCheck(
@@ -268,7 +268,7 @@ def edit_required_status_checks(
268268
self, strict=github.GithubObject.NotSet, contexts=github.GithubObject.NotSet
269269
):
270270
"""
271-
:calls: `PATCH /repos/:owner/:repo/branches/:branch/protection/required_status_checks <https://developer.github.com/v3/repos/branches>`_
271+
:calls: `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks <https://docs.github.com/en/rest/reference/repos#branches>`_
272272
:strict: bool
273273
:contexts: list of strings
274274
"""
@@ -290,7 +290,7 @@ def edit_required_status_checks(
290290

291291
def remove_required_status_checks(self):
292292
"""
293-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks <https://developer.github.com/v3/repos/branches>`_
293+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks <https://docs.github.com/en/rest/reference/repos#branches>`_
294294
"""
295295
headers, data = self._requester.requestJsonAndCheck(
296296
"DELETE",
@@ -299,7 +299,7 @@ def remove_required_status_checks(self):
299299

300300
def get_required_pull_request_reviews(self):
301301
"""
302-
:calls: `GET /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews <https://developer.github.com/v3/repos/branches>`_
302+
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews <https://docs.github.com/en/rest/reference/repos#branches>`_
303303
:rtype: :class:`github.RequiredPullRequestReviews.RequiredPullRequestReviews`
304304
"""
305305
headers, data = self._requester.requestJsonAndCheck(
@@ -320,7 +320,7 @@ def edit_required_pull_request_reviews(
320320
required_approving_review_count=github.GithubObject.NotSet,
321321
):
322322
"""
323-
:calls: `PATCH /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews <https://developer.github.com/v3/repos/branches>`_
323+
:calls: `PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews <https://docs.github.com/en/rest/reference/repos#branches>`_
324324
:dismissal_users: list of strings
325325
:dismissal_teams: list of strings
326326
:dismiss_stale_reviews: bool
@@ -368,7 +368,7 @@ def edit_required_pull_request_reviews(
368368

369369
def remove_required_pull_request_reviews(self):
370370
"""
371-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews <https://developer.github.com/v3/repos/branches>`_
371+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews <https://docs.github.com/en/rest/reference/repos#branches>`_
372372
"""
373373
headers, data = self._requester.requestJsonAndCheck(
374374
"DELETE",
@@ -377,7 +377,7 @@ def remove_required_pull_request_reviews(self):
377377

378378
def get_admin_enforcement(self):
379379
"""
380-
:calls: `GET /repos/:owner/:repo/branches/:branch/protection/enforce_admins <https://developer.github.com/v3/repos/branches>`_
380+
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins <https://docs.github.com/en/rest/reference/repos#branches>`_
381381
:rtype: bool
382382
"""
383383
headers, data = self._requester.requestJsonAndCheck(
@@ -387,23 +387,23 @@ def get_admin_enforcement(self):
387387

388388
def set_admin_enforcement(self):
389389
"""
390-
:calls: `POST /repos/:owner/:repo/branches/:branch/protection/enforce_admins <https://developer.github.com/v3/repos/branches>`_
390+
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins <https://docs.github.com/en/rest/reference/repos#branches>`_
391391
"""
392392
headers, data = self._requester.requestJsonAndCheck(
393393
"POST", f"{self.protection_url}/enforce_admins"
394394
)
395395

396396
def remove_admin_enforcement(self):
397397
"""
398-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins <https://developer.github.com/v3/repos/branches>`_
398+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins <https://docs.github.com/en/rest/reference/repos#branches>`_
399399
"""
400400
headers, data = self._requester.requestJsonAndCheck(
401401
"DELETE", f"{self.protection_url}/enforce_admins"
402402
)
403403

404404
def get_user_push_restrictions(self):
405405
"""
406-
:calls: `GET /repos/:owner/:repo/branches/:branch/protection/restrictions/users <https://developer.github.com/v3/repos/branches>`_
406+
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
407407
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
408408
"""
409409
return github.PaginatedList.PaginatedList(
@@ -415,7 +415,7 @@ def get_user_push_restrictions(self):
415415

416416
def get_team_push_restrictions(self):
417417
"""
418-
:calls: `GET /repos/:owner/:repo/branches/:branch/protection/restrictions/teams <https://developer.github.com/v3/repos/branches>`_
418+
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
419419
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
420420
"""
421421
return github.PaginatedList.PaginatedList(
@@ -427,7 +427,7 @@ def get_team_push_restrictions(self):
427427

428428
def add_user_push_restrictions(self, *users):
429429
"""
430-
:calls: `POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users <https://developer.github.com/v3/repos/branches>`_
430+
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
431431
:users: list of strings (user names)
432432
"""
433433
assert all(isinstance(element, str) for element in users), users
@@ -438,7 +438,7 @@ def add_user_push_restrictions(self, *users):
438438

439439
def replace_user_push_restrictions(self, *users):
440440
"""
441-
:calls: `PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users <https://developer.github.com/v3/repos/branches>`_
441+
:calls: `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
442442
:users: list of strings (user names)
443443
"""
444444
assert all(isinstance(element, str) for element in users), users
@@ -449,7 +449,7 @@ def replace_user_push_restrictions(self, *users):
449449

450450
def remove_user_push_restrictions(self, *users):
451451
"""
452-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users <https://developer.github.com/v3/repos/branches>`_
452+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users <https://docs.github.com/en/rest/reference/repos#branches>`_
453453
:users: list of strings (user names)
454454
"""
455455
assert all(isinstance(element, str) for element in users), users
@@ -460,7 +460,7 @@ def remove_user_push_restrictions(self, *users):
460460

461461
def add_team_push_restrictions(self, *teams):
462462
"""
463-
:calls: `POST /repos/:owner/:repo/branches/:branch/protection/restrictions/teams <https://developer.github.com/v3/repos/branches>`_
463+
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
464464
:teams: list of strings (team slugs)
465465
"""
466466
assert all(isinstance(element, str) for element in teams), teams
@@ -471,7 +471,7 @@ def add_team_push_restrictions(self, *teams):
471471

472472
def replace_team_push_restrictions(self, *teams):
473473
"""
474-
:calls: `PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/teams <https://developer.github.com/v3/repos/branches>`_
474+
:calls: `PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
475475
:teams: list of strings (team slugs)
476476
"""
477477
assert all(isinstance(element, str) for element in teams), teams
@@ -482,7 +482,7 @@ def replace_team_push_restrictions(self, *teams):
482482

483483
def remove_team_push_restrictions(self, *teams):
484484
"""
485-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams <https://developer.github.com/v3/repos/branches>`_
485+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams <https://docs.github.com/en/rest/reference/repos#branches>`_
486486
:teams: list of strings (team slugs)
487487
"""
488488
assert all(isinstance(element, str) for element in teams), teams
@@ -493,15 +493,15 @@ def remove_team_push_restrictions(self, *teams):
493493

494494
def remove_push_restrictions(self):
495495
"""
496-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions <https://developer.github.com/v3/repos/branches>`_
496+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions <https://docs.github.com/en/rest/reference/repos#branches>`_
497497
"""
498498
headers, data = self._requester.requestJsonAndCheck(
499499
"DELETE", f"{self.protection_url}/restrictions"
500500
)
501501

502502
def get_required_signatures(self):
503503
"""
504-
:calls: `GET /repos/:owner/:repo/branches/:branch/protection/required_signatures <https://developer.github.com/v3/repos/branches>`
504+
:calls: `GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`
505505
"""
506506
headers, data = self._requester.requestJsonAndCheck(
507507
"GET",
@@ -512,7 +512,7 @@ def get_required_signatures(self):
512512

513513
def add_required_signatures(self):
514514
"""
515-
:calls: `POST /repos/:owner/:repo/branches/:branch/protection/required_signatures <https://developer.github.com/v3/repos/branches>`
515+
:calls: `POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`
516516
"""
517517
headers, data = self._requester.requestJsonAndCheck(
518518
"POST",
@@ -522,7 +522,7 @@ def add_required_signatures(self):
522522

523523
def remove_required_signatures(self):
524524
"""
525-
:calls: `DELETE /repos/:owner/:repo/branches/:branch/protection/required_signatures <https://developer.github.com/v3/repos/branches>`
525+
:calls: `DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures <https://docs.github.com/en/rest/reference/repos#branches>`
526526
"""
527527
headers, data = self._requester.requestJsonAndCheck(
528528
"DELETE",

github/BranchProtection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
class BranchProtection(github.GithubObject.CompletableGithubObject):
3131
"""
32-
This class represents Branch Protection. The reference can be found here https://developer.github.com/v3/repos/branches/#get-branch-protection
32+
This class represents Branch Protection. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-branch-protection
3333
"""
3434

3535
def __repr__(self):

github/CheckRun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def url(self):
171171

172172
def get_annotations(self):
173173
"""
174-
:calls: `GET /repos/:owner/:repo/check-runs/:check_run_id/annotations <https://docs.github.com/en/rest/reference/checks#list-check-run-annotations>`_
174+
:calls: `GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations <https://docs.github.com/en/rest/reference/checks#list-check-run-annotations>`_
175175
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CheckRunAnnotation.CheckRunAnnotation`
176176
"""
177177
return github.PaginatedList.PaginatedList(
@@ -196,7 +196,7 @@ def edit(
196196
actions=github.GithubObject.NotSet,
197197
):
198198
"""
199-
:calls: `PATCH /repos/:owner/:repo/check-runs/:check_run_id <https://docs.github.com/en/rest/reference/checks#update-a-check-run>`_
199+
:calls: `PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} <https://docs.github.com/en/rest/reference/checks#update-a-check-run>`_
200200
:param name: string
201201
:param head_sha: string
202202
:param details_url: string

github/CheckSuite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def url(self):
161161

162162
def rerequest(self):
163163
"""
164-
:calls: `POST /repos/:owner/:repo/check-suites/:check_suite_id/rerequest <https://docs.github.com/en/rest/reference/checks#rerequest-a-check-suite>`_
164+
:calls: `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest <https://docs.github.com/en/rest/reference/checks#rerequest-a-check-suite>`_
165165
:rtype: bool
166166
"""
167167
request_headers = {"Accept": "application/vnd.github.v3+json"}
@@ -177,7 +177,7 @@ def get_check_runs(
177177
filter=github.GithubObject.NotSet,
178178
):
179179
"""
180-
:calls: `GET /repos/:owner/:repo/check-suites/:check_suite_id/check-runs <https://docs.github.com/en/rest/reference/checks#list-check-runs-in-a-check-suite>`_
180+
:calls: `GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs <https://docs.github.com/en/rest/reference/checks#list-check-runs-in-a-check-suite>`_
181181
:param check_name: string
182182
:param status: string
183183
:param filter: string

github/Clones.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class Clones(github.GithubObject.NonCompletableGithubObject):
3131
"""
3232
This class represents a popular Path for a GitHub repository.
33-
The reference can be found here https://developer.github.com/v3/repos/traffic/
33+
The reference can be found here https://docs.github.com/en/rest/reference/repos#get-repository-clones
3434
"""
3535

3636
def __repr__(self):

0 commit comments

Comments
 (0)