4242
4343class 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" ,
0 commit comments