
    #Ii                    n   S SK r S SKrS SKrS SKrS SKJr  S SKJr  S SKr	S SK
r	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SKr	S SK r	S SK!r	S SK"r	S SK#r	S SK$r	S SK%r	S SK&r	S SK'r	S SK(r	S SK)r	S SK*r	S SK+r	S SK,r	S SK-r	S SK.r	S SK/r	S SK0r	S SK1r	S SK2r	S SK3r	S SK4r	S SK5r	S SK6r	S SK7r	S SK8r	S SK9r	S SK:r	S SK;r	S SK<r	S SK=r	S SK>r	S SK?r	S SK@r	S SKAr	S SKBr	S SKCr	S SKDr	S SKEr	SSKFJGrG   " S S\	R                  R                  5      rJg)    N)	b64encode)
deprecated   )Constsc                   $   \ rS rSrSrS r\S 5       r\S 5       r\S 5       r	\S 5       r
\S 5       r\S	 5       r\S
 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r \S 5       r!\S 5       r"\S  5       r#\S! 5       r$\S" 5       r%\S# 5       r&\S$ 5       r'\S% 5       r(\S& 5       r)\S' 5       r*\S( 5       r+\S) 5       r,\S* 5       r-\S+ 5       r.\S, 5       r/\S- 5       r0\S. 5       r1\S/ 5       r2\S0 5       r3\S1 5       r4\S2 5       r5\S3 5       r6\S4 5       r7\S5 5       r8\S6 5       r9\S7 5       r:\S8 5       r;\S9 5       r<\S: 5       r=\S; 5       r>\S< 5       r?\S= 5       r@\S> 5       rA\S? 5       rB\S@ 5       rC\SA 5       rD\SB 5       rE\SC 5       rF\SD 5       rG\SE 5       rH\SF 5       rI\SG 5       rJ\SH 5       rK\SI 5       rL\SJ 5       rM\SK 5       rN\SL 5       rO\SM 5       rP\SN 5       rQ\SO 5       rR\SP 5       rS\SQ 5       rT\SR 5       rU\SS 5       rV\ST 5       rW\SU 5       rX\SV 5       rY\SW 5       rZ\SX 5       r[\SY 5       r\\SZ 5       r]\^R                  R                  4S[ jraS\ rbS] rcS^ rdS_ reS` rfSa rg\^R                  R                  \^R                  R                  4Sb jrhSc ri\^R                  R                  SdSdSd4Se jrjSdSdSd\^R                  R                  4Sf jrk\^R                  R                  4Sg jrl\^R                  R                  4Sh jrm\^R                  R                  \^R                  R                  4Si jrn\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4Sj jroGSSk jrp\^R                  R                  4Sl jrq\^R                  R                  \^R                  R                  \^R                  R                  4Sm jrr\^R                  R                  4Sn jrsSo rt\^R                  R                  Sd4Sp jruSq rvSr rw    GSSt\xSu\xSv\xSw\yR                  \x   Sx\yR                  \yR                  \^R                  R                        Sy\yR                  \yR                  \x      Sz\yR                  \yR                  \^R                  R                        S{\^R                  R                  4S| jjr    GSSt\xSu\xSv\xSw\yR                  \x   Sx\yR                  \yR                  \^R                  R                        Sy\yR                  \yR                  \x      Sz\yR                  \yR                  \^R                  R                        S{\^R                  R                  4S} jjrSt\xSu\xSv\xSw\yR                  \x   Sx\yR                  \yR                  \^R                  R                        Sy\yR                  \yR                  \x      Sz\yR                  \yR                  \^R                  R                        S~\S{\^R                  R                  4S jr\^R                  R                  4S jrS rS r\^R                  R                  \^R                  R                  4S jrS rSs\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jr\^R                  R                  4S jrS rS rS rS r\^R                  R                  4S jrS rS rS r\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jr\^R                  R                  4S jr\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jrS r\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jrS rS r\^R                  R                  4S jr\^R                  R                  4S jr\^R                  R                  4S jrS r\^R                  R                  \^R                  R                  \^R                  R                  4S jr  GSS jrS\xS{\^R                  R                  4S jr\^R                  R                  \^R                  R                  \^R                  R                  4S jr\^R                  R                  \^R                  R                  \^R                  R                  4S jr\" SS9\^R                  R                  4S j5       r\^R                  R                  4S jrS rS rS rS r\^R                  R                  \^R                  R                  \^R                  R                  4S jrS rS rS rS rS rS r\^R                  R                  4S jrS rS rS\S\S{\^GRj                  GRj                  4S jrS\S{\^GRn                  GRn                  \^GRj                  GRp                     4S jrS r\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4	S jr\^R                  R                  \^R                  R                  \^R                  R                  4S jrS rS rS rS rS rS rS rS rS r\^R                  R                  \^R                  R                  \^R                  R                  4S jrS rS rS r\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jr\^R                  R                  \^R                  R                  \^R                  R                  4S jr\^R                  R                  \^R                  R                  \^R                  R                  4S jr\^R                  R                  4S jrS rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS r\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jrS rS rS rS rS r\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jr\GR                  GR                  \GR                  GR                  5      4S jr\^R                  R                  4S jrS rS rS rS rS rS rS rS rS r\^R                  R                  4S jrS rS rS rS rS r\S 5       rS r\^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  \^R                  R                  4S jGr S Gr\^R                  R                  4S jGrS GrS GrS GrS GrS/ Ss4GS  jGrG\GrGS Gr	GS Gr
GS GrGSGrgs(  
Repository   zu
This class represents Repositories. The reference can be found here https://docs.github.com/en/rest/reference/repos
c                 P    U R                  SU R                  R                  05      $ )N	full_name)get__repr__
_full_namevalueselfs    7/venv/lib/python3.13/site-packages/github/Repository.py__repr__Repository.__repr__   s"    doo.C.C DEE    c                 d    U R                  U R                  5        U R                  R                  $ z
:type: bool
)_completeIfNotSet_allow_auto_merger   r   s    r   allow_auto_mergeRepository.allow_auto_merge   *    
 	t556%%+++r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _allow_forkingr   r   s    r   allow_forkingRepository.allow_forking   *    
 	t223""(((r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _allow_merge_commitr   r   s    r   allow_merge_commitRepository.allow_merge_commit   *    
 	t778''---r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _allow_rebase_merger   r   s    r   allow_rebase_mergeRepository.allow_rebase_merge   r%   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _allow_squash_merger   r   s    r   allow_squash_mergeRepository.allow_squash_merge   r%   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _allow_update_branchr   r   s    r   allow_update_branchRepository.allow_update_branch   s*    
 	t889((...r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   	_archivedr   r   s    r   archivedRepository.archived   &    
 	t~~.~~###r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: string
)r   _archive_urlr   r   s    r   archive_urlRepository.archive_url  *    
 	t001  &&&r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _assignees_urlr   r   s    r   assignees_urlRepository.assignees_url  r    r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   
_blobs_urlr   r   s    r   	blobs_urlRepository.blobs_url  &    
 	t/$$$r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _branches_urlr   r   s    r   branches_urlRepository.branches_url  *    
 	t112!!'''r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   
_clone_urlr   r   s    r   	clone_urlRepository.clone_url'  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _collaborators_urlr   r   s    r   collaborators_urlRepository.collaborators_url/  *    
 	t667&&,,,r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _comments_urlr   r   s    r   comments_urlRepository.comments_url7  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _commits_urlr   r   s    r   commits_urlRepository.commits_url?  r<   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _compare_urlr   r   s    r   compare_urlRepository.compare_urlG  r<   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _contents_urlr   r   s    r   contents_urlRepository.contents_urlO  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _contributors_urlr   r   s    r   contributors_urlRepository.contributors_urlW  r   r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: datetime.datetime
)r   _created_atr   r   s    r   
created_atRepository.created_at_  *    
 	t//0%%%r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _default_branchr   r   s    r   default_branchRepository.default_branchg  *    
 	t334##)))r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _delete_branch_on_merger   r   s    r   delete_branch_on_merge!Repository.delete_branch_on_mergeo  s*    
 	t;;<++111r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _deployments_urlr   r   s    r   deployments_urlRepository.deployments_urlw  *    
 	t445$$***r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _descriptionr   r   s    r   descriptionRepository.description  r<   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _downloads_urlr   r   s    r   downloads_urlRepository.downloads_url  r    r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _events_urlr   r   s    r   
events_urlRepository.events_url  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _forkr   r   s    r   forkRepository.fork  &    
 	tzz*zzr   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: integer
)r   _forksr   r   s    r   forksRepository.forks  &    
 	t{{+{{   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _forks_countr   r   s    r   forks_countRepository.forks_count  r<   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   
_forks_urlr   r   s    r   	forks_urlRepository.forks_url  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   r   r   r   s    r   r   Repository.full_name  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _git_commits_urlr   r   s    r   git_commits_urlRepository.git_commits_url  r{   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _git_refs_urlr   r   s    r   git_refs_urlRepository.git_refs_url  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _git_tags_urlr   r   s    r   git_tags_urlRepository.git_tags_url  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _git_urlr   r   s    r   git_urlRepository.git_url  &    
 	t}}-}}"""r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _has_downloadsr   r   s    r   has_downloadsRepository.has_downloads  r    r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _has_issuesr   r   s    r   
has_issuesRepository.has_issues  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   
_has_pagesr   r   s    r   	has_pagesRepository.has_pages  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _has_projectsr   r   s    r   has_projectsRepository.has_projects  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   	_has_wikir   r   s    r   has_wikiRepository.has_wiki  r6   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   	_homepager   r   s    r   homepageRepository.homepage  r6   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   
_hooks_urlr   r   s    r   	hooks_urlRepository.hooks_url  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   	_html_urlr   r   s    r   html_urlRepository.html_url  r6   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _idr   r   s    r   idRepository.id  s$    
 	txx(xx~~r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _is_templater   r   s    r   is_templateRepository.is_template'  r<   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _issue_comment_urlr   r   s    r   issue_comment_urlRepository.issue_comment_url/  rS   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _issue_events_urlr   r   s    r   issue_events_urlRepository.issue_events_url7  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _issues_urlr   r   s    r   
issues_urlRepository.issues_url?  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   	_keys_urlr   r   s    r   keys_urlRepository.keys_urlG  r6   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _labels_urlr   r   s    r   
labels_urlRepository.labels_urlO  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   	_languager   r   s    r   languageRepository.languageW  r6   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _languages_urlr   r   s    r   languages_urlRepository.languages_url_  r    r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _master_branchr   r   s    r   master_branchRepository.master_branchg  r    r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _merges_urlr   r   s    r   
merges_urlRepository.merges_urlo  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _milestones_urlr   r   s    r   milestones_urlRepository.milestones_urlw  rr   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _mirror_urlr   r   s    r   
mirror_urlRepository.mirror_url  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _namer   r   s    r   nameRepository.name  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _network_countr   r   s    r   network_countRepository.network_count  r    r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _notifications_urlr   r   s    r   notifications_urlRepository.notifications_url  rS   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _open_issuesr   r   s    r   open_issuesRepository.open_issues  r<   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _open_issues_countr   r   s    r   open_issues_countRepository.open_issues_count  rS   r   c                 d    U R                  U R                  5        U R                  R                  $ )z2
:type: :class:`github.Organization.Organization`
)r   _organizationr   r   s    r   organizationRepository.organization  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ )z,
:type: :class:`github.NamedUser.NamedUser`
)r   _ownerr   r   s    r   ownerRepository.owner  r   r   c                 d    U R                  U R                  5        U R                  R                  $ z.
:type: :class:`github.Repository.Repository`
)r   _parentr   r   s    r   parentRepository.parent  &    
 	t||,||!!!r   c                 d    U R                  U R                  5        U R                  R                  $ )z0
:type: :class:`github.Permissions.Permissions`
)r   _permissionsr   r   s    r   permissionsRepository.permissions  r<   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _privater   r   s    r   privateRepository.private  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   
_pulls_urlr   r   s    r   	pulls_urlRepository.pulls_url  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ ri   )r   
_pushed_atr   r   s    r   	pushed_atRepository.pushed_at  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _releases_urlr   r   s    r   releases_urlRepository.releases_url  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _sizer   r   s    r   sizeRepository.size  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r  )r   _sourcer   r   s    r   sourceRepository.source  r#  r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _ssh_urlr   r   s    r   ssh_urlRepository.ssh_url  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _stargazers_countr   r   s    r   stargazers_countRepository.stargazers_count  s/    
 	""	
 %%+++r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _stargazers_urlr   r   s    r   stargazers_urlRepository.stargazers_url  rr   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _statuses_urlr   r   s    r   statuses_urlRepository.statuses_url  rJ   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _subscribers_urlr   r   s    r   subscribers_urlRepository.subscribers_url!  r{   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _subscribers_countr   r   s    r   subscribers_countRepository.subscribers_count)  rS   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _subscription_urlr   r   s    r   subscription_urlRepository.subscription_url1  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _svn_urlr   r   s    r   svn_urlRepository.svn_url9  r   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   	_tags_urlr   r   s    r   tags_urlRepository.tags_urlA  r6   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   
_teams_urlr   r   s    r   	teams_urlRepository.teams_urlI  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ )z
:type: list of strings
)r   _topicsr   r   s    r   topicsRepository.topicsQ  r#  r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   
_trees_urlr   r   s    r   	trees_urlRepository.trees_urlY  rE   r   c                 d    U R                  U R                  5        U R                  R                  $ ri   )r   _updated_atr   r   s    r   
updated_atRepository.updated_ata  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _urlr   r   s    r   urlRepository.urli  s$    
 	tyy)yyr   c                 d    U R                  U R                  5        U R                  R                  $ r8   )r   _visibilityr   r   s    r   
visibilityRepository.visibilityq  rm   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   	_watchersr   r   s    r   watchersRepository.watchersy  r6   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _watchers_countr   r   s    r   watchers_countRepository.watchers_count  rr   r   c                 d   [        U[        R                  R                  5      (       d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       a  UR                  nU[        R                  R
                  La  SU0nOSnU R                  R                  SU R                   SU 3US9u  pEUb)  [        R                  R                  U R                  XESS9$ S$ )z
:calls: `PUT /repos/{owner}/{repo}/collaborators/{user} <https://docs.github.com/en/rest/reference/repos#collaborators>`_
:param collaborator: string or :class:`github.NamedUser.NamedUser`
:param permission: string 'pull', 'push' or 'admin'
:rtype: None

permissionNPUT/collaborators/inputT	completed)
isinstancegithub	NamedUserstrGithubObjectNotSet	_identity
_requesterrequestJsonAndCheckrv  
Invitation)r   collaboratorr  put_parametersheadersdatas         r   add_to_collaboratorsRepository.add_to_collaborators  s.    ,(8(8(B(BCCz#H
 H
 		 
 V00777:<
 <
 		 
 lF$4$4$>$>??'11LV00777*J7N!N;;dhhZ|n=^ < 
  (('SW(X	
 	
r   c                 \   [        U[        R                  R                  5      (       d  [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       a  UR                  nU R
                  R                  SU R                   SU S35      u  p#US   $ )z
:calls: `GET /repos/{owner}/{repo}/collaborators/{username}/permission <https://docs.github.com/en/rest/reference/repos#collaborators>`_
:param collaborator: string or :class:`github.NamedUser.NamedUser`
:rtype: string
GETr  z/permissionr  r  r  r  r  r  r  r  rv  r   r  r  r  s       r   get_collaborator_permission&Repository.get_collaborator_permission  s     ,(8(8(B(BCCz#H
 H
 		 
 lF$4$4$>$>??'11L;;xxj~[A
 L!!r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/invitations <https://docs.github.com/en/rest/reference/repos#invitations>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Invitation.Invitation`
z/invitationsN)r  PaginatedListr  r  rv  r   s    r   get_pending_invitations"Repository.get_pending_invitations  sD    
 ##11((OOxxj%	
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#g)z
:calls: `DELETE /repos/{owner}/{repo}/invitations/{invitation_id} <https://docs.github.com/en/rest/reference/repos#invitations>`_
:rtype: None
DELETEz/invitations/N)r  intr  r  rv  )r   	invite_idr  r  s       r   remove_invitationRepository.remove_invitation  sH    
 )S))494);;
-	{;
r   c                 $   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU R                  R                  SU R                   SU SU 35      u  p4[
        R                  R                  U R                  X4SS9$ )z
:calls: `GET /repos/{owner}/{repo}/compare/{base...:head} <https://docs.github.com/en/rest/reference/repos#commits>`_
:param base: string
:param head: string
:rtype: :class:`github.Comparison.Comparison`
r  z	/compare/z...Tr  )r  r  r  r  rv  r  
Comparison)r   baseheadr  r  s        r   compareRepository.compare  s     $$$*d*$$$$*d*$;;dhhZyc$8
   ++OOWd , 
 	
r   c                     [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eXS.nU R                  R                  SU R                   S3US9u  pE[
        R                  R                  U R                  XESS9$ )z
:calls: `POST /repos/{owner}/{repo}/autolinks <http://docs.github.com/en/rest/reference/repos>`_
:param key_prefix: string
:param url_template: string
:rtype: :class:`github.Autolink.Autolink`
)
key_prefixurl_templatePOST
/autolinksr  Tr  )r  r  r  r  rv  r  Autolink)r   r  r  post_parametersr  r  s         r   create_autolinkRepository.create_autolink  s     *c**6J6*,,,:l:,)3R;;txxj
+? < 
 ''RV'WWr   c                 "   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eUUS.nU R                  R                  SU R                   S3US9u  pE[
        R                  R                  U R                  XESS9$ )z
:calls: `POST /repos/{owner}/{repo}/git/blobs <https://docs.github.com/en/rest/reference/git#blobs>`_
:param content: string
:param encoding: string
:rtype: :class:`github.GitBlob.GitBlob`
)contentencodingr  z
/git/blobsr  Tr  r  r  r  r  rv  r  GitBlob)r   r  r  r  r  r  s         r   create_git_blobRepository.create_git_blob  s     '3''00'(C((2(2( 
 ;;txxj
+? < 
 ~~%%doowPT%UUr   c                    [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       d   U5       e[	        S U 5       5      (       d   U5       eU[        R
                  R                  L d&  [        U[        R                  5      (       d   U5       eU[        R
                  R                  L d&  [        U[        R                  5      (       d   U5       eUUR                  U Vs/ s H  ofR                  PM     snS.nU[        R
                  R                  La  UR                  US'   U[        R
                  R                  La  UR                  US'   U R                  R                  SU R                   S3US9u  p[        R                  R                  U R                  XSS	9$ s  snf )
a  
:calls: `POST /repos/{owner}/{repo}/git/commits <https://docs.github.com/en/rest/reference/git#commits>`_
:param message: string
:param tree: :class:`github.GitTree.GitTree`
:param parents: list of :class:`github.GitCommit.GitCommit`
:param author: :class:`github.InputGitAuthor.InputGitAuthor`
:param committer: :class:`github.InputGitAuthor.InputGitAuthor`
:rtype: :class:`github.GitCommit.GitCommit`
c              3   j   #    U  H)  n[        U[        R                  R                  5      v   M+     g 7fN)r  r  	GitCommit.0elements     r   	<genexpr>/Repository.create_git_commit.<locals>.<genexpr>  s)      
KRJw 0 0 : :;;7s   13)messagetreeparentsauthor	committerr  z/git/commitsr  Tr  )r  r  r  GitTreeallr  r  InputGitAuthorr  r  r  rv  r  )
r   r  r  r  r  r  r  r  r  r  s
             r   create_git_commitRepository.create_git_commit  s   " '3''00'$ 6 677==7 
KR
 
 
 		 
 ,,333zF))8
 8
 		 
 F//666*v,,;
 ;
 		 
 NN9@Ag))A

 ,,333(.(8(8OH%F//666+4+>+>OK(;;txxj-_ < 
 ))OOWd * 
 	
 Bs   Gc                 "   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eUUS.nU R                  R                  SU R                   S3US9u  pE[
        R                  R                  U R                  XESS9$ )z
:calls: `POST /repos/{owner}/{repo}/git/refs <https://docs.github.com/en/rest/reference/git#references>`_
:param ref: string
:param sha: string
:rtype: :class:`github.GitRef.GitRef`
)refshar  	/git/refsr  Tr  )r  r  r  r  rv  r  GitRef)r   r  r  r  r  r  s         r   create_git_refRepository.create_git_ref0  s     #s##(S(##s##(S(#
 ;;txxj	*/ < 
 }}##DOOWd#SSr   Fc           
      R    U R                  XXVU5        U R                  UUUUU	U
US9$ )a  
Convenience function that calls :meth:`Repository.create_git_tag` and
:meth:`Repository.create_git_release`.
:param tag: string
:param tag_message: string
:param release_name: string
:param release_message: string
:param object: string
:param type: string
:param tagger: :class:github.InputGitAuthor.InputGitAuthor
:param draft: bool
:param prerelease: bool
:param generate_release_notes: bool
:rtype: :class:`github.GitRelease.GitRelease`
)target_commitish)create_git_tagcreate_git_release)r   tagtag_messagerelease_namerelease_messageobjecttypetaggerdraft
prereleasegenerate_release_notess              r   create_git_tag_and_release%Repository.create_git_tag_and_releaseB  sC    8 	CfFC&&"# ' 
 	
r   c                 ^   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R
                  L dh  [        U[        [        R                  R                  [        R                  R                  [        R                  R                  45      (       d   U5       eUUUUUUS.n[        U[        5      (       a  XxS'   O[        U[        R                  R                  5      (       a  UR                  US'   OR[        U[        R                  R                  [        R                  R                  45      (       a  UR                  US'   U R                  R                  SU R                   S3US9u  p[        R                  R                  U R                  XSS9$ )a  
:calls: `POST /repos/{owner}/{repo}/releases <https://docs.github.com/en/rest/reference/repos#releases>`_
:param tag: string
:param name: string
:param message: string
:param draft: bool
:param prerelease: bool
:param generate_release_notes: bool
:param target_commitish: string or :class:`github.Branch.Branch` or :class:`github.Commit.Commit` or :class:`github.GitCommit.GitCommit`
:rtype: :class:`github.GitRelease.GitRelease`
)tag_namer  bodyr  r  r  r  r  	/releasesr  Tr  )r  r  boolr  r  r  BranchCommitr  r  r  r  r  rv  
GitRelease)r   r  r  r  r  r  r  r  r  r  r  s              r   r  Repository.create_git_releasei  s   * #s##(S(#$$$*d*$'3''00'%&&--&*d++7Z7+0$77O9OO76#6#6#=#==$$$$  **	B
 B
 	 	 
 $&<
 &,,2B./(&--*>*>??2B2G2GO./v}}33V5E5E5O5OP
 
 3C2F2FO./;;txxj	*/ < 
   ++OOWd , 
 	
r   c                 t   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d&  [        U[        R
                  5      (       d   U5       eUUUUS.nU[        R                  R                  La  UR                  US'   U R                  R                  SU R                   S3US9u  px[        R                  R                  U R                  XxSS9$ )a  
:calls: `POST /repos/{owner}/{repo}/git/tags <https://docs.github.com/en/rest/reference/git#tags>`_
:param tag: string
:param message: string
:param object: string
:param type: string
:param tagger: :class:`github.InputGitAuthor.InputGitAuthor`
:rtype: :class:`github.GitTag.GitTag`
)r  r  r  r  r  r  z	/git/tagsr  Tr  )r  r  r  r  r  r  r  r  r  rv  GitTag)	r   r  r  r  r  r  r  r  r  s	            r   r  Repository.create_git_tag  s+    #s##(S(#'3''00'&#&&..&$$$*d*$,,333zF))8
 8
 		 
 	
 ,,333(.(8(8OH%;;txxj	*/ < 
 }}##DOOWd#SSr   c                    [        S U 5       5      (       d   U5       eU[        R                  R                  L d0  [	        U[        R
                  R
                  5      (       d   U5       eSU Vs/ s H  o3R                  PM     sn0nU[        R                  R                  La  UR                  US'   U R                  R                  SU R                   S3US9u  pV[        R
                  R                  U R                  XVSS9$ s  snf )	a  
:calls: `POST /repos/{owner}/{repo}/git/trees <https://docs.github.com/en/rest/reference/git#trees>`_
:param tree: list of :class:`github.InputGitTreeElement.InputGitTreeElement`
:param base_tree: :class:`github.GitTree.GitTree`
:rtype: :class:`github.GitTree.GitTree`
c              3   V   #    U  H  n[        U[        R                  5      v   M!     g 7fr  )r  r  InputGitTreeElementr  s     r   r  -Repository.create_git_tree.<locals>.<genexpr>  s#      
KOJw : :;;4s   ')r  	base_treer  z
/git/treesr  Tr  )
r  r  r  r  r  r  r  r  r  rv  )r   r  r  r  r  r  r  s          r   create_git_treeRepository.create_git_tree  s     
KO
 
 
 		 
 F//666*v~~--;
 ;
 		 
 d;d7&&d;
 F//666+4+>+>OK(;;txxj
+? < 
 ~~%%doowPT%UU <s   1D	c                    [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R
                  L d  [        S U 5       5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eUUS.nU[        R                  R
                  La  X5S'   U[        R                  R
                  La  XES'   U R                  R                  SU R                   S3US9u  pg[        R                  R                  U R                  XgSS	9$ )
z
:calls: `POST /repos/{owner}/{repo}/hooks <https://docs.github.com/en/rest/reference/repos#webhooks>`_
:param name: string
:param config: dict
:param events: list of string
:param active: bool
:rtype: :class:`github.Hook.Hook`
c              3   B   #    U  H  n[        U[        5      v   M     g 7fr  r  r  r  s     r   r  )Repository.create_hook.<locals>.<genexpr>  s      ;
4:Jw$$F   )r  configeventsactiver  /hooksr  Tr  )r  r  dictr  r  r  r  r  r  r  rv  Hook)r   r  r  r  r  r  r  r  s           r   create_hookRepository.create_hook  s7    $$$*d*$&$''//',,333s ;
4:;
 8
 8
 		 
 ,,333z&$7O7OWQWWO
 ,,333(.H%,,333(.H%;;txxj' < 
 {{$OOr   c                 ~   [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L dE  [        U[        R
                  R
                  5      (       d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        S U 5       5      (       d   U5       eU[        R                  R                  L d0  [        U[        R                  R                  5      (       d   U5       eU[        R                  R                  L d  [        S U 5       5      (       d   U5       eSU0nU[        R                  R                  La  X'S'   U[        R                  R                  La)  [        U[        5      (       a  X7S'   OUR                  US'   U[        R                  R                  LaK  U Vs/ s H:  n[        U[        R
                  R
                  5      (       a  UR                  OUPM<     snUS'   U[        R                  R                  La  UR                  US'   U[        R                  R                  LaK  U Vs/ s H:  n[        U[        R                  R                  5      (       a  UR                  OUPM<     snUS'   U R                  R                  S	U R                   S
3US9u  p[        R                  R                  U R                  XSS9$ s  snf s  snf )a  
:calls: `POST /repos/{owner}/{repo}/issues <https://docs.github.com/en/rest/reference/issues>`_
:param title: string
:param body: string
:param assignee: string or :class:`github.NamedUser.NamedUser`
:param assignees: list of string or :class:`github.NamedUser.NamedUser`
:param milestone: :class:`github.Milestone.Milestone`
:param labels: list of :class:`github.Label.Label`
:rtype: :class:`github.Issue.Issue`
c              3      #    U  H@  n[        U[        R                  R                  5      =(       d    [        U[        5      v   MB     g 7fr  )r  r  r  r  r  s     r   r  *Repository.create_issue.<locals>.<genexpr>  s:      >
$ w 0 0 : :;Wz'SV?WW$   AA
c              3      #    U  H@  n[        U[        R                  R                  5      =(       d    [        U[        5      v   MB     g 7fr  r  r  Labelr  r  s     r   r  r    7      ;
! w 2 23Oz'37OO!r  titler  assignee	assignees	milestonelabelsr  /issuesr  Tr  )r  r  r  r  r  r  r  	Milestoner  r  r  r  r  rv  Issue)r   r  r  r  r  r  r  r  r  r  r  s              r   create_issueRepository.create_issue  s   & %%%,u,%v**111Zc5J5JPDPJ++222(F$4$4$>$>??(C((	 		) F//666# >
$>
 ;
 ;
 	 	 
 F//666*v''11;
 ;
 		 
 ,,333s ;
!;
 8
 8
 	 	 
 U
 v**111&*F#6..555(C((.6
+.6.@.@
+F//666
  )	,  )G gv'7'7'A'ABB !!  )	,OK( F//666+4+>+>OK(,,333  &)%G !+7FLL4F4F G GWT%)OH% ;;txxj( < 
 ||!!$//7D!QQ!,)s   AL5AL:c                 \   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       eUUUS.nU R                  R	                  SU R
                   S3US9u  pV[        R                  R                  U R                  XVSS9$ )z
:calls: `POST /repos/{owner}/{repo}/keys <https://docs.github.com/en/rest/reference/repos#deploy-keys>`_
:param title: string
:param key: string
:param read_only: bool
:rtype: :class:`github.RepositoryKey.RepositoryKey`
)r  key	read_onlyr  /keysr  Tr  )r  r  r  r  r  rv  r  RepositoryKey)r   r  r  r   r  r  r  s          r   
create_keyRepository.create_key@  s     %%%,u,%#s##(S(#)T**5I5*"

 ;;txxj&o < 
 ##11OOWd 2 
 	
r   c                    [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eUUS.nU[        R                  R                  La  X4S'   U R
                  R                  SU R                   S3US[        R                  0S9u  pV[        R                  R                  U R
                  XVSS9$ )	z
:calls: `POST /repos/{owner}/{repo}/labels <https://docs.github.com/en/rest/reference/issues#labels>`_
:param name: string
:param color: string
:param description: string
:rtype: :class:`github.Label.Label`
)r  colorr~   r  /labelsAcceptr  r  Tr  )r  r  r  r  r  r  r  rv  r   &mediaTypeLabelDescriptionSearchPreviewr  )r   r  r&  r~   r  r  r  s          r   create_labelRepository.create_labelW  s     $$$*d*$%%%,u,%f11888J=
 =
 		 
 
 f11888-8M*;;xxj !vLLM	 < 
 ||!!$//7D!QQr   c                    [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d6  [        U[
        R
                  [
        R                  45      (       d   U5       eSU0nU[        R                  R                  La  X%S'   U[        R                  R                  La  X5S'   U[        R                  R                  LaG  [        U[
        R                  5      (       a  UR                  S5      US'   OUR                  5       US'   U R                  R                  SU R                   S3US9u  pg[        R                  R                  U R                  XgS	S
9$ )z
:calls: `POST /repos/{owner}/{repo}/milestones <https://docs.github.com/en/rest/reference/issues#milestones>`_
:param title: string
:param state: string
:param description: string
:param due_on: datetime
:rtype: :class:`github.Milestone.Milestone`
r  stater~   %Y-%m-%dT%H:%M:%SZdue_onr  /milestonesr  Tr  )r  r  r  r  r  datetimedatestrftime	isoformatr  r  rv  r  )r   r  r.  r~   r0  r  r  r  s           r   create_milestoneRepository.create_milestoner  s    %%%,u,%++222j6L6LSeSLf11888J=
 =
 		 
 ,,333zX&&68
 8
 		 
 U
 ++222',G$f11888-8M*,,333&(--00,2OO<P,Q),2,<,<,>);;txxj,O < 
 ))OOWd * 
 	
r   c                    [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eSU0nS[
        R                  0nU[        R                  R                  La  X#S'   U R                  R                  SU R                   S3XCS9u  pV[        R                  R                  U R                  XVSS9$ )	z
:calls: `POST /repos/{owner}/{repo}/projects <https://docs.github.com/en/rest/reference/projects#create-a-repository-project>`_
:param name: string
:param body: string
:rtype: :class:`github.Project.Project`
r  r(  r  r  	/projectsr  r  Tr  )r  r  r  r  r  r   mediaTypeProjectsPreviewr  r  rv  Project)r   r  r  r  import_headerr  r  s          r   create_projectRepository.create_project  s     $$$*d*$v**111Zc5J5JPDPJD
 "6#B#BCv**111&*F#;;txxj	*M < 
 ~~%%doowPT%UUr   c                     [        U5      [        U5      -   S:  a  U R                  " U0 UD6$ U R                  " U0 UD6$ )a@  
:calls: `POST /repos/{owner}/{repo}/pulls <https://docs.github.com/en/rest/reference/pulls>`_
:param title: string
:param body: string
:param issue: :class:`github.Issue.Issue`
:param base: string
:param head: string
:param draft: bool
:param maintainer_can_modify: bool
:rtype: :class:`github.PullRequest.PullRequest`
   )len_Repository__create_pull_1_Repository__create_pull_2)r   argskwdss      r   create_pullRepository.create_pull  sE     t9s4y A%''666''666r   c           	         [        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       e[        U[
        5      (       d   U5       eU[        R                  R                  La  U R                  UUUUUUS9$ U R                  XX4US9$ )N)r  r  r  r  maintainer_can_modifyr  )r  r  r  r  r  )r  r  r  r  r  r  _Repository__create_pull)r   r  r  r  r  rJ  r  s          r   __create_pull_1Repository.__create_pull_1  s    %%%,u,%$$$*d*$$$$*d*$$$$*d*$$(;(;(B(BBj!4G
 G
 	! 	! 
 %&&--& (;(;(B(BB%%&; &   %%TE &  r   c                    [        U[        R                  R                  5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU R	                  UR
                  X#S9$ )N)issuer  r  )r  r  r  r  rK  r  )r   rO  r  r  s       r   __create_pull_2Repository.__create_pull_2  sn    %!3!344;e;4$$$*d*$$$$*d*$!!d!NNr   c                     UnU R                   R                  SU R                   S3US9u  p4[        R                  R	                  U R                   X4SS9$ )Nr  /pullsr  Tr  )r  r  rv  r  PullRequest)r   rF  r  r  r  s        r   __create_pullRepository.__create_pull  s_    ;;txxj' < 
 !!--OOWd . 
 	
r   Nsummaryr~   severity_or_cvss_vector_stringcve_idvulnerabilitiescwe_idscreditsreturnc                 .    U R                  UUUUUUUSS9$ )a&  
:calls: `POST /repos/{owner}/{repo}/security-advisories <https://docs.github.com/en/rest/security-advisories/repository-advisories>`_
:param summary: string
:param description: string
:param severity_or_cvss_vector_string: string
:param cve_id: string
:param vulnerabilities: iterable of :class:`github.RepositoryAdvisoryVulnerability.AdvisoryVulnerability`
:param cwe_ids: iterable of string
:param credits: iterable of :class:`github.RepositoryAdvisoryCredit.RepositoryAdvisoryCredit`
:rtype: :class:`github.RepositoryAdvisory.RepositoryAdvisory`
FrW  r~   rX  rY  rZ  r[  r\  private_vulnerability_reporting'_Repository__create_repository_advisoryr   rW  r~   rX  rY  rZ  r[  r\  s           r   create_repository_advisory%Repository.create_repository_advisory  s4    6 00#+I+,1 1 	
 		
r   c                 .    U R                  UUUUUUUSS9$ )aX  
:calls: `POST /repos/{owner}/{repo}/security-advisories/reports <https://docs.github.com/en/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability>`_
:param summary: string
:param description: string
:param severity_or_cvss_vector_string: string
:param cve_id: string
:param vulnerabilities: iterable of :class:`github.RepositoryAdvisoryVulnerability.AdvisoryVulnerability`
:param cwe_ids: iterable of string
:param credits: iterable of :class:`github.RepositoryAdvisoryCredit.RepositoryAdvisoryCredit`
:rtype: :class:`github.RepositoryAdvisory.RepositoryAdvisory`
Tr_  ra  rc  s           r   report_security_vulnerability(Repository.report_security_vulnerability  s4    6 00#+I+,0 1 	
 		
r   r`  c	                    Uc  / nUc  / n[        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        [        S 5      45      (       d   U5       e[        U[        R                  5      (       d   U5       eU H,  n	[
        R                  R                  R                  U	5        M.     [        U[        R                  5      (       d   U5       e[        S U 5       5      (       d   U5       e[        U[        R                  [        S 5      45      (       d   U5       eUb2  U H,  n
[
        R                  R                  R                  U
5        M.     UUU V	s/ s H,  n	[
        R                  R                  R                  U	5      PM.     sn	[        U5      S.nUb  XKS'   Ub=  U V
s/ s H,  n
[
        R                  R                  R                  U
5      PM.     sn
US'   UR                  S5      (       a  X;S'   OX;S'   U(       a+  U R                  R                  SU R                    S	3US
9u  pO*U R                  R                  SU R                    S3US
9u  p[
        R"                  R#                  U R                  XSS9$ s  sn	f s  sn
f )Nc              3   B   #    U  H  n[        U[        5      v   M     g 7fr  r  r  s     r   r  :Repository.__create_repository_advisory.<locals>.<genexpr>^  s     C7:gs++7r  )rW  r~   rZ  r[  rY  r\  zCVSS:cvss_vector_stringseverityr  z/security-advisories/reportsr  /security-advisoriesTr  )r  r  r  typingIterabler  RepositoryAdvisoryVulnerability_validate_vulnerabilityr  RepositoryAdvisoryCredit_validate_credit_to_github_dictlist
startswithr  r  rv  RepositoryAdvisory)r   rW  r~   rX  rY  rZ  r[  r\  r`  vulnerabilitycreditr  r  r  s                 r   __create_repository_advisory'Repository.__create_repository_advisory<  s   " " O?G'3''00'+s++8[8+*C
 
 	*)	* 
 &3T
"344<f<4/6??;;L_L;,M22RRjj -
 '6??33<W<3C7CCCLWLC'FOOT$Z#@AAJ7JA!//HHYY " &
 &5	  &5M 66VVff! &5	  G}

 (.H% &	* &F //HHXX &	*OI& *44W==4R01*HJ'* OO??488*$@A @ MGT !OO??488*$89 @ MG ((;;OOWd < 
 	
= *s   3J;3K c                 V   [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eSU0nU[        R                  R                  La  X#S'   U R                  R                  SU R                   S3US9u  pEnUS:H  $ )z
:calls: POST /repos/{owner}/{repo}/dispatches <https://docs.github.com/en/rest/reference/repos#create-a-repository-dispatch-event>
:param event_type: string
:param client_payload: dict
:rtype: bool

event_typeclient_payloadr  z/dispatchesr     )	r  r  r  r  r  r  r  requestJsonrv  )r   r~  r  r  statusr  r  s          r   create_repository_dispatch%Repository.create_repository_dispatch  s     *c**6J6*!4!4!;!;;zD@
 @
 		 
 (4!4!4!;!;;0>,- $ ; ;txxj,O !< !
 }r   c                 6   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU R                  5       nUR                  U5      nUR                  US.nU R
                  R                  SU R                   SU 3US9u  pgnUS:H  $ )z
:calls: `PUT /repos/{owner}/{repo}/actions/secrets/{secret_name} <https://docs.github.com/en/rest/reference/actions#get-a-repository-secret>`_
:param secret_name: string
:param unencrypted_value: string
:rtype: bool
)key_idencrypted_valuer  /actions/secrets/r     )r  r  get_public_keyencryptr  r  r  rv  )	r   secret_nameunencrypted_value
public_keypayloadr  r  r  r  s	            r   create_secretRepository.create_secret  s     +s++8[8++S11D3DD1((*
$$%67 ''&
 !% ; ;dhhZ0>n !< !
 }r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#nUS:H  $ )z
:calls: `DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name} <https://docs.github.com/en/rest/reference/actions#delete-a-repository-secret>`_
:param secret_name: string
:rtype: bool
r  r  r  )r  r  r  r  rv  )r   r  r  r  r  s        r   delete_secretRepository.delete_secret  sV     +s++8[8+ $ ; ;
"3K=A!
 }r   c                    [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eXS.nU[        R                  R                  La  X5S'   U[        R                  R                  La  XES'   S[
        R                  0nU R                  R                  SU R                   S3XeS9u  px[        R                  R                  U R                  XxSS	9$ )
a  
:calls: `PUT /repos/{owner}/{repo}/import <https://docs.github.com/en/rest/reference/migrations#start-an-import>`_
:param vcs: string
:param vcs_url: string
:param vcs_username: string
:param vcs_password: string
:rtype: :class:`github.SourceImport.SourceImport`
)vcsvcs_urlvcs_usernamevcs_passwordr(  r  /importr:  Fr  )r  r  r  r  r  r   mediaTypeImportPreviewr  r  rv  SourceImport)	r   r  r  r  r  r  r=  r  r  s	            r   create_source_importRepository.create_source_import  sN    #s##(S(#'3''00'v22999Z#>
 >
 		 
 v22999Z#>
 >
 		 
 "%9v22999-9>*v22999-9>*!6#@#@A;;dhhZw' < 
 ""//OOWe 0 
 	
r   c                 T    U R                   R                  SU R                  5      u  pg)zh
:calls: `DELETE /repos/{owner}/{repo} <https://docs.github.com/en/rest/reference/repos>`_
:rtype: None
r  Nr  r  rv  r   r  r  s      r   deleteRepository.delete  s"    
 ;;HdhhOr   c                 4   Uc  U R                   n[        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU	[        R                  R
                  L d  [        U	[        5      (       d   U	5       eU
[        R                  R
                  L d  [        U
[        5      (       d   U
5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eU[        R                  R
                  L d  [        U[        5      (       d   U5       eSU0nU[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS	'   U	[        R                  R
                  La  U	US
'   U[        R                  R
                  La  UUS'   U
[        R                  R
                  La  U
US'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U[        R                  R
                  La  UUS'   U R                  R                  SU R                  US9u  nnU R                  U5        g)a  
:calls: `PATCH /repos/{owner}/{repo} <https://docs.github.com/en/rest/reference/repos>`_
:param name: string
:param description: string
:param homepage: string
:param private: bool
:param has_issues: bool
:param has_projects: bool
:param has_wiki: bool
:param has_downloads: bool
:param default_branch: string
:param allow_forking: bool
:param allow_squash_merge: bool
:param allow_merge_commit: bool
:param allow_rebase_merge: bool
:param delete_branch_on_merge: bool
:param allow_update_branch: bool
:param archived: bool
:rtype: None
Nr  r~   r   r*  r   r   r   r   rp   r,   r   r   r#   r(   ru   r0   r4   PATCHr  )r  r  r  r  r  r  r  r  r  rv  _useAttributes)r   r  r~   r   r*  r   r   r   r   rp   r   r   r,   r#   r(   ru   r0   r4   r  r  r  s                        r   editRepository.edit  s   P <99D$$$*d*$f11888J=
 =
 		 
 6..555c:
 :
 		 
 &--444
T9
 9
 		 
 V00777:<
 <
 		 
 v22999Z$>
 >
 		 
 6..555d:
 :
 		 
  3 3 : ::j4?
 ?
 		 
 !4!4!;!;;zC@
 @
 		 
  6#6#6#=#==dB
 B
 		 
  3 3 : ::j4?
 ?
 		 
 "V%8%8%?%??:D
 D
 		 
 "V%8%8%?%??:D
 D
 		 
 "V%8%8%?%??:D
 D
 		 
 &)<)<)C)CCz"DH
 H
 	"!	" 
 #f&9&9&@&@@JE
 E
 		 
 6..555d:
 :
 		 
 D
 f11888-8OM*6..555*2OJ'&--444)0OI&V00777,6OL)v22999.:ON+6..555*2OJ' 3 3 : ::/<OO,!4!4!;!;;0>O,-V%8%8%?%??4FO016#6#6#=#==2BO./ 3 3 : ::/<OO,V%8%8%?%??4FO01V%8%8%?%??4FO01!)<)<)C)CC8NO45f&9&9&@&@@5HO126..555*2OJ';;TXX_ < 
 	D!r   c                 ^   [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU R
                   SU 3nU[        R                  R                  La  USU 3-  nU R                  R                  SU5      u  pEUS   $ )z
:calls: `GET /repos/{owner}/{repo}/{archive_format}/{ref} <https://docs.github.com/en/rest/reference/repos#contents>`_
:param archive_format: string
:param ref: string
:rtype: string
/r  location)r  r  r  r  r  rv  r  r  )r   archive_formatr  rv  r  r  s         r   get_archive_linkRepository.get_archive_linkt  s     .#..>>.f))000JsC4H4HM#MH
!N+,f))000Qse9C;;E3Gz""r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/assignees <https://docs.github.com/en/rest/reference/issues#assignees>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
z
/assigneesNr  r  r  r  rv  r   s    r   get_assigneesRepository.get_assignees  sB    
 ##11&&DHH:Z9PRV
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/branches/{branch} <https://docs.github.com/en/rest/reference/repos#get-a-branch>`_
:param branch: string
:rtype: :class:`github.Branch.Branch`
r  
/branches/Tr  )r  r  r  r  rv  r  r  )r   branchr  r  s       r   
get_branchRepository.get_branch  sh     &#&&..&;;dhhZz&2
 }}##DOOWd#SSr   c                 ^   [        U[        R                  R                  5      n[        U[        5      (       d  U(       d   U5       e[        U[        5      (       d   U5       eU(       a  UR                  nSU0nU R
                  R                  SU R                   SU S3US9u  n  nUS:H  $ )a@  
: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

NOTE: This method does not return the branch since it may take some
time to fully complete server-side.
new_namer  r  z/renamer  r  )r  r  r  r  r  r  r  rv  )r   r  r  	is_branch
parametersr  _s          r   rename_branchRepository.rename_branch  s     vv}}';';<	&#&&);V;3(C((2(2([[F (+
22txxj
6(':* 3 
1 }r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/branches <https://docs.github.com/en/rest/reference/repos>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Branch.Branch`
z	/branchesN)r  r  r  r  rv  r   s    r   get_branchesRepository.get_branches  ?    
 ##11MM  $//dhhZy3I4
 	
r   c                 v   [        5       n/ SQnU[        R                  R                  La>  [	        U[
        5      (       d   U5       eX;   d   SSR                  U5       35       eXS'   [        R                  R                  [        R                  R                  U R                  U R                   S3U5      $ )z
:calls: `GET /repos/{owner}/{repo}/collaborators <https://docs.github.com/en/rest/reference/repos#collaborators>`_
:param affiliation: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
)outsidedirectr  zAffiliation can be one of z, affiliationz/collaborators)r  r  r  r  r  r  joinr  r  r  rv  )r   r  url_parametersallowed_affiliationss       r   get_collaboratorsRepository.get_collaborators  s     ;f11888k3//<</3N+DII6J,K+LMN3,7=)##11&&OOxxj'	
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/comments/{id} <https://docs.github.com/en/rest/reference/repos#comments>`_
:param id: integer
:rtype: :class:`github.CommitComment.CommitComment`
r  z
/comments/Tr  )r  r  r  r  rv  r  CommitCommentr   r   r  r  s       r   get_commentRepository.get_comment  sq     "c""&B&";;dhhZz".
 ##11OOWd 2 
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/comments <https://docs.github.com/en/rest/reference/repos#comments>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CommitComment.CommitComment`
z	/commentsN)r  r  r  r  rv  r   s    r   get_commentsRepository.get_comments  sD    
 ##11  ..OOxxj	"	
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/commits/{sha} <https://docs.github.com/en/rest/reference/repos#commits>`_
:param sha: string
:rtype: :class:`github.Commit.Commit`
r  z	/commits/Tr  )r  r  r  r  rv  r  r  r   r  r  r  s       r   
get_commitRepository.get_commit  sh     #s##(S(#;;dhhZy.
 }}##DOOWd#SSr   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       eU[         R                  R                  L dO  [        U[        [         R                  R                  [         R                  R                  45      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X&S'   U[         R                  R                  La  UR                  S5      US'   U[         R                  R                  La  UR                  S5      US'   U[         R                  R                  LaW  [        U[         R                  R                  [         R                  R                  45      (       a  UR                  US'   OXVS'   [         R                  R                  [         R                  R                  U R                  U R                   S3U5      $ )a  
:calls: `GET /repos/{owner}/{repo}/commits <https://docs.github.com/en/rest/reference/repos#commits>`_
:param sha: string
:param path: string
:param since: datetime.datetime
:param until: datetime.datetime
:param author: string or :class:`github.NamedUser.NamedUser` or :class:`github.AuthenticatedUser.AuthenticatedUser`
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit.Commit`
r  pathr/  sinceuntilr  z/commits)r  r  r  r  r  r2  r  AuthenticatedUserr  r4  loginr  r  r  rv  )r   r  r  r  r  r  r  s          r   get_commitsRepository.get_commits  s`   " f))000JsC4H4HM#MHv**111Zc5J5JPDPJ++222j8$$7
 7
 		 
 ++222j8$$7
 7
 		 
 ,,333z  **((::8
 8
 	 	 
 f))000$'5!v**111%)6"++222&+nn5I&JN7#++222&+nn5I&JN7#,,333$$..,,>>  ,2<<x(+1x(##11MM  $//dhhZx3H.
 	
r   c           
      @   [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eUS:X  a  Sn[        5       nU[        R                  R                  La  X#S'   U R                  R                  SU R                   S[        R                  R                  U5       3US9u  pEUR                  S5      S:X  a6  UR                  S	5      (       a   U R                  R                  SUS	   US9u  pE[        U[        5      (       a@  U Vs/ s H2  n[        R                  R                  U R                  XFUS
   S:g  S9PM4     sn$ [        R                  R                  U R                  XESS9$ s  snf )z
:calls: `GET /repos/{owner}/{repo}/contents/{path} <https://docs.github.com/en/rest/reference/repos#contents>`_
:param path: string
:param ref: string
:rtype: :class:`github.ContentFile.ContentFile` or a list of them
r   r  r  
/contents/r  r  z	302 Foundr  r  filer  T)r  r  r  r  r  r  r  r  rv  urllibparsequotegetrv  ContentFile)r   r  r  r  r  r  items          r   get_contentsRepository.get_contents,  s    $$$*d*$f))000JsC4H4HM#MH3;Df))000$'5!;;xxj
6<<#5#5d#;"<=% < 
 ;;x K/GKK
4K4K OO??wz*~ @ MG dD!! ! !D ""..OOWtF|v?U /  !  !!--OOWd . 
 	
s   69Fc                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       e0 nU[         R                  R                  La  XS'   U[         R                  R                  La  X%S'   U[         R                  R                  La  X5S'   U[         R                  R                  La  XES'   [         R
                  R                  [         R                  R                  U R                  U R                   S3US[        R                  0S9$ )a&  
:calls: `GET /repos/{owner}/{repo}/deployments <https://docs.github.com/en/rest/reference/repos#deployments>`_
:param: sha: string
:param: ref: string
:param: task: string
:param: environment: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Deployment.Deployment`
r  r  taskenvironment/deploymentsr(  r  )r  r  r  r  r  r  
Deploymentr  rv  r   deploymentEnhancementsPreview)r   r  r  r  r  r  s         r   get_deploymentsRepository.get_deploymentsT  s    f))000JsC4H4HM#MHf))000JsC4H4HM#MHv**111Zc5J5JPDPJf11888J=
 =
 		 
 
f))000 #uf))000 #uv**111!%vf11888(3}%##11((OOxxj%vCCD 2 
 	
r   c                    [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 3S[
        R                  0S9u  p#[        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/deployments/{deployment_id} <https://docs.github.com/en/rest/reference/repos#deployments>`_
:param: id_: int
:rtype: :class:`github.Deployment.Deployment`
r  z/deployments/r(  r  Tr  )	r  r  r  r  rv  r   r  r  r  r   id_r  r  s       r   get_deploymentRepository.get_deploymentz  s     #s##(S(#;;xxjcU+vCCD < 

   ++OOWd , 
 	
r   c
                    [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       eU	[        R                  R                  L d  [        U	[
        5      (       d   U	5       eSU0n
U[        R                  R                  La  X*S'   U[        R                  R                  La  X:S'   U[        R                  R                  La  XJS'   U[        R                  R                  La  XZS'   U[        R                  R                  La  XjS'   U[        R                  R                  La  XzS'   U[        R                  R                  La  XS'   U	[        R                  R                  La  XS	'   U R                  R                  S
U R                   S3U
S[        R                  0S9u  p[        R                  R                  U R                  XSS9$ )a  
:calls: `POST /repos/{owner}/{repo}/deployments <https://docs.github.com/en/rest/reference/repos#deployments>`_
:param: ref: string
:param: task: string
:param: auto_merge: bool
:param: required_contexts: list of status contexts
:param: payload: dict
:param: environment: string
:param: description: string
:param: transient_environment: bool
:param: production_environment: bool
:rtype: :class:`github.Deployment.Deployment`
r  r  
auto_mergerequired_contextsr  r  r~   transient_environmentproduction_environmentr  r  r(  r)  Tr  )r  r  r  r  r  r  rv  r  r  r  rv  r   r  r  )r   r  r  r  r  r  r  r~   r  r  r  r  r  s                r   create_deploymentRepository.create_deployment  s0   2 #s##(S(#v**111Zc5J5JPDPJV00777:<
 <
 		 
 !F$7$7$>$>>*tC
 C
 		 
 &--444
T9
 9
 		 
 f11888J=
 =
 		 
 f11888J=
 =
 		 
 %(;(;(B(BBj!4G
 G
 	! 	! 
 &)<)<)C)CCz"DH
 H
 	"!	" 
 !#,v**111&*F#V00777,6L)F$7$7$>$>>3D/0&--444)0I&f11888-8M*f11888-8M* (;(;(B(BB7L34!)<)<)C)CC8N45;;xxj%!vCCD	 < 
   ++OOWd , 
 	
r   c           
         U R                   R                  SU R                   S35      u  p[        U[        5      (       a:  U Vs/ s H,  n[
        R                  R                  U R                   XSS9PM.     sn$ gs  snf )z
:calls: `GET /repos/{owner}/{repo}/traffic/popular/referrers <https://docs.github.com/en/rest/reference/repos#traffic>`_
:rtype: :class:`list` of :class:`github.Referrer.Referrer`
r  z/traffic/popular/referrersTr  N)r  r  rv  r  rv  r  Referrerr   r  r  r  s       r   get_top_referrersRepository.get_top_referrers  s    
 ;;dhhZ9:
 dD!! ! D (('SW(X   "   3A<c           
         U R                   R                  SU R                   S35      u  p[        U[        5      (       a:  U Vs/ s H,  n[
        R                  R                  U R                   XSS9PM.     sn$ gs  snf )z
:calls: `GET /repos/{owner}/{repo}/traffic/popular/paths <https://docs.github.com/en/rest/reference/repos#traffic>`_
:rtype: :class:`list` of :class:`github.Path.Path`
r  z/traffic/popular/pathsTr  N)r  r  rv  r  rv  r  Pathr  s       r   get_top_pathsRepository.get_top_paths  s    
 ;;dhhZ56
 dD!! ! D   '4 P   "r  c           
      0   U[         R                  R                  L d(  [        U[        5      (       a  US:X  d  US:X  d   S5       e[        5       nU[         R                  R                  La  XS'   U R                  R                  SU R                   S3US9u  p4[        U[
        5      (       ab  SU;   a[  [        US   [        5      (       aB  US    Vs/ s H,  n[         R                  R                  U R                  X5S	S
9PM.     snUS'   U$ gggs  snf )z
:calls: `GET /repos/{owner}/{repo}/traffic/views <https://docs.github.com/en/rest/reference/repos#traffic>`_
:param per: string, must be one of day or week, day by default
:rtype: None or list of :class:`github.View.View`
dayweek'per must be day or week, day by defaultperr  z/traffic/viewsr  viewsTr  N)r  r  r  r  r  r  r  r  rv  rv  Viewr   r  r  r  r  r  s         r   get_views_trafficRepository.get_views_traffic  s    f))000sC  cUlcVm	54	5 
 f))000$'5!;;dhhZ~.> < 
 d##DDM400 !M)D   '4 P)DM K 1 ! $   3Dc           
      0   U[         R                  R                  L d(  [        U[        5      (       a  US:X  d  US:X  d   S5       e[        5       nU[         R                  R                  La  XS'   U R                  R                  SU R                   S3US9u  p4[        U[
        5      (       ab  SU;   a[  [        US   [        5      (       aB  US    Vs/ s H,  n[         R                  R                  U R                  X5S	S
9PM.     snUS'   U$ gggs  snf )z
:calls: `GET /repos/{owner}/{repo}/traffic/clones <https://docs.github.com/en/rest/reference/repos#traffic>`_
:param per: string, must be one of day or week, day by default
:rtype: None or list of :class:`github.Clones.Clones`
r  r  r  r  r  z/traffic/clonesr  clonesTr  N)r  r  r  r  r  r  r  r  rv  rv  Clonesr  s         r   get_clones_trafficRepository.get_clones_traffic	  s    f))000sC  cUlcVm	54	5 
 f))000$'5!;;dhhZ/N < 
 d##T!DND11 !N*D $$T__gt$T*DN K 2 " $r  c                    [        5       nU[        R                  R                  La  XS'   [        R                  R	                  [        R
                  R
                  U R                  U R                   S3US[        R                  05      $ )z
:calls: `GET /repos/{owner}/{repo}/projects <https://docs.github.com/en/rest/reference/projects#list-repository-projects>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Project.Project`
:param state: string
r.  r9  r(  )
r  r  r  r  r  r<  r  rv  r   r;  )r   r.  r  s      r   get_projectsRepository.get_projects(	  ss     ++222&+7###11NN""OOxxj	"v667
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/autolinks <http://docs.github.com/en/rest/reference/repos>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Autolink.Autolink`
r  N)r  r  r  r  rv  r   s    r   get_autolinksRepository.get_autolinks;	  @    
 ##11OO$$doo$((:7NPT
 	
r   c                    [        U[        5      (       d   e[        U[        5      (       d   e[        U[        [        45      (       d   eU[        R                  R
                  L d  [        U[        5      (       d   eU[        R                  R
                  L d!  [        U[        R                  5      (       d   eU[        R                  R
                  L d!  [        U[        R                  5      (       d   e[        U[        5      (       d  UR                  S5      n[        U5      R                  S5      nX#S.nU[        R                  R
                  La  XGS'   U[        R                  R
                  La  UR                  US'   U[        R                  R
                  La  UR                  US'   U R                  R                  SU R                   S[        R                  R!                  U5       3US9u  p[        R"                  R#                  U R                  XS	   S
S9[        R$                  R%                  U R                  XS   SS9S.$ )a  Create a file in this repository.

:calls: `PUT /repos/{owner}/{repo}/contents/{path} <https://docs.github.com/en/rest/reference/repos#create-or-update-file-contents>`_
:param path: string, (required), path of the file in the repository
:param message: string, (required), commit message
:param content: string, (required), the actual data in the file
:param branch: string, (optional), branch to create the commit on. Defaults to the default branch of the repository
:param committer: InputGitAuthor, (optional), if no information is given the authenticated user's information will be used. You must specify both a name and email.
:param author: InputGitAuthor, (optional), if omitted this will be filled in with committer information. If passed, you must specify both a name and email.
:rtype: {
    'content': :class:`ContentFile <github.ContentFile.ContentFile>`:,
    'commit': :class:`Commit <github.Commit.Commit>`}
utf-8)r  r  r  r  r  r  r  r  r  Fr  commitT)r  r%  )r  r  bytesr  r  r  r  encoder   decoder  r  r  rv  r  r  r  r  r  )
r   r  r  r  r  r  r  r  r  r  s
             r   create_fileRepository.create_fileD	  s   , $$$$$'3'''''C<0000,,333z&#7N7NNN,,333zF))8
 8
 	
 
 F//666*v,,;
 ;
 	
 
 '5))nnW-GG$++G4%,A,,333'-8$,,333'-'7'7N8$F//666*3*=*=N;';;xxj
6<<#5#5d#;"<=  < 
 ))55y/U 6  mm**x.D + 	
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/security-advisories <https://docs.github.com/en/rest/security-advisories/repository-advisories>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.RepositoryAdvisory.RepositoryAdvisory`
rn  N)r  r  rx  r  rv  r   s    r   get_repository_advisories$Repository.get_repository_advisories	  sE     ##11%%88OOxxj,-	
 	
r   ghsac                     U R                   R                  SU R                   SU 35      u  p#[        R                  R	                  U R                   X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/security-advisories/{ghsa} <https://docs.github.com/en/rest/security-advisories/repository-advisories>`_
:param ghsa: string
:rtype: :class:`github.RepositoryAdvisory.RepositoryAdvisory`
r  z/security-advisories/Tr  )r  r  rv  r  rx  )r   r.  r  r  s       r   get_repository_advisory"Repository.get_repository_advisory	  sZ     ;;dhhZ4TF;
 ((;;OOWd < 
 	
r   c                    [        U[        5      (       d   e[        U[        5      (       d   e[        U[        [        45      (       d   e[        U[        5      (       d   eU[        R                  R
                  L d  [        U[        5      (       d   eU[        R                  R
                  L d!  [        U[        R                  5      (       d   eU[        R                  R
                  L d!  [        U[        R                  5      (       d   e[        U[        5      (       d  UR                  S5      n[        U5      R                  S5      nX#US.nU[        R                  R
                  La  XXS'   U[        R                  R
                  La  UR                  US'   U[        R                  R
                  La  UR                  US'   U R                  R                  SU R                   S[        R                  R!                  U5       3US9u  p[        R"                  R#                  U R                  XS	   S
S9[        R$                  R%                  U R                  XS   SS9S.$ )u  This method updates a file in a repository

:calls: `PUT /repos/{owner}/{repo}/contents/{path} <https://docs.github.com/en/rest/reference/repos#create-or-update-file-contents>`_
:param path: string, Required. The content path.
:param message: string, Required. The commit message.
:param content: string, Required. The updated file content, either base64 encoded, or ready to be encoded.
:param sha: string, Required. The blob SHA of the file being replaced.
:param branch: string. The branch name. Default: the repository’s default branch (usually master)
:param committer: InputGitAuthor, (optional), if no information is given the authenticated user's information will be used. You must specify both a name and email.
:param author: InputGitAuthor, (optional), if omitted this will be filled in with committer information. If passed, you must specify both a name and email.
:rtype: {
    'content': :class:`ContentFile <github.ContentFile.ContentFile>`:,
    'commit': :class:`Commit <github.Commit.Commit>`}
r$  )r  r  r  r  r  r  r  r  r  r%  Tr  r  Fr%  r  )r  r  r&  r  r  r  r  r'  r   r(  r  r  r  rv  r  r  r  r  r  )r   r  r  r  r  r  r  r  r  r  r  s              r   update_fileRepository.update_file	  s%   0 $$$$$'3'''''C<0000#s####,,333z&#7N7NNN,,333zF))8
 8
 	
 
 F//666*v,,;
 ;
 	
 
 '5))nnW-GG$++G4%,M,,333'-8$,,333'-'7'7N8$F//666*3*=*=N;';;xxj
6<<#5#5d#;"<=  < 
 mm**x.D +  ))55y/U 6 	
 	
r   c                 B   [        U[        5      (       d   S5       e[        U[        5      (       d   S5       e[        U[        5      (       d   S5       eU[        R                  R                  L d  [        U[        5      (       d   S5       eU[        R                  R                  L d&  [        U[        R
                  5      (       d   S5       eU[        R                  R                  L d&  [        U[        R
                  5      (       d   S5       eX#S.nU[        R                  R                  La  XGS'   U[        R                  R                  La  UR                  US	'   U[        R                  R                  La  UR                  US
'   U R                  R                  SU R                   S[        R                  R                  U5       3US9u  p[        R                  R                  U R                  XS   SS9[        R                  R                  S.$ )ur  This method deletes a file in a repository

:calls: `DELETE /repos/{owner}/{repo}/contents/{path} <https://docs.github.com/en/rest/reference/repos#delete-a-file>`_
:param path: string, Required. The content path.
:param message: string, Required. The commit message.
:param sha: string, Required. The blob SHA of the file being replaced.
:param branch: string. The branch name. Default: the repository’s default branch (usually master)
:param committer: InputGitAuthor, (optional), if no information is given the authenticated user's information will be used. You must specify both a name and email.
:param author: InputGitAuthor, (optional), if omitted this will be filled in with committer information. If passed, you must specify both a name and email.
:rtype: {
    'content': :class:`null <github.GithubObject.NotSet>`:,
    'commit': :class:`Commit <github.Commit.Commit>`}
zpath must be str/unicode objectz"message must be str/unicode objectz sha must be a str/unicode objectz#branch must be a str/unicode objectz-author must be a github.InputGitAuthor objectz0committer must be a github.InputGitAuthor object)r  r  r  r  r  r  r  r  r%  Tr  r3  )r  r  r  r  r  r  r  r  r  rv  r  r  r  r  )
r   r  r  r  r  r  r  r  r  r  s
             r   delete_fileRepository.delete_file	  s   , $$$G&GG$'3''M)MM'#s##G%GG#,,333zC8
 8
 	10	1 
 ,,333zF))8
 8
 	;:	; 
 F//666*v,,;
 ;
 	>=	> 
 &-9,,333'-8$,,333'-'7'7N8$F//666*3*=*=N;';;xxj
6<<#5#5d#;"<=  < 
 mm**x.D +  **11	
 	
r   zm
        Repository.get_dir_contents() is deprecated, use
        Repository.get_contents() instead.
        )reasonc                      U R                  XS9$ )z
:calls: `GET /repos/{owner}/{repo}/contents/{path} <https://docs.github.com/en/rest/reference/repos#contents>`_
:param path: string
:param ref: string
:rtype: list of :class:`github.ContentFile.ContentFile`
)r  )r  )r   r  r  s      r   get_dir_contentsRepository.get_dir_contents
  s        //r   c                     [        5       nU[        R                  R                  La  XS'   [        R                  R	                  [        R
                  R
                  U R                  U R                   S3U5      $ )z
:calls: `GET /repos/{owner}/{repo}/contributors <https://docs.github.com/en/rest/reference/repos>`_
:param anon: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
anonz/contributors)r  r  r  r  r  r  r  rv  )r   r>  r  s      r   get_contributorsRepository.get_contributors$
  sg     v**111%)6"##11&&OOxxj&	
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/downloads/{id} <https://docs.github.com/en/rest/reference/repos>`_
:param id: integer
:rtype: :class:`github.Download.Download`
r  z/downloads/Tr  )r  r  r  r  rv  r  Downloadr  s       r   get_downloadRepository.get_download5
  si     "c""&B&";;dhhZ{2$/
 ''RV'WWr   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/downloads <https://docs.github.com/en/rest/reference/repos>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Download.Download`
z
/downloadsN)r  r  rB  r  rv  r   s    r   get_downloadsRepository.get_downloadsA
  r"  r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/events <https://docs.github.com/en/rest/reference/activity#events>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
/eventsN)r  r  Eventr  rv  r   s    r   
get_eventsRepository.get_eventsJ
  ?    
 ##11LLDHH:W1Et
 	
r   c                 |    [         R                  R                  [        U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/forks <https://docs.github.com/en/rest/reference/repos#forks>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
/forksN)r  r  r   r  rv  r   s    r   	get_forksRepository.get_forksS
  s5    
 ##11DHH:V)<d
 	
r   c                    0 n[        U[        R                  R                  5      (       a  UR                  US'   O>[        U[        5      (       a  XS'   O$U[        R
                  R                  L d   U5       eU[        R
                  R                  L d  [        U[        5      (       d   U5       eU[        R
                  R                  L d  [        U[        5      (       d   U5       eU[        R
                  R                  La  X$S'   U[        R
                  R                  La  X4S'   U R                  R                  SU R                   S3US9u  pV[        U R                  XVSS9$ )	a  
:calls: `POST /repos/{owner}/{repo}/forks <https://docs.github.com/en/rest/reference/repos#forks>`_
:param organization: :class:`github.Organization.Organization` or string
:param name: string
:param default_branch_only: bool
:rtype: :class:`github.Repository.Repository`
r  r  default_branch_onlyr  rO  r  Tr  )r  r  Organizationr  r  r  r  r  r  r  rv  r   )r   r  r  rS  r  r  r  s          r   create_forkRepository.create_fork\
  sI    lF$7$7$D$DEE.:.@.@ON+c**.:N+6#6#6#=#==K|K=v**111Zc5J5JPDPJ"f&9&9&@&@@JE
 E
 		 
 v**111&*F#f&9&9&@&@@5H12;;xxj! < 

 $//7DIIr   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/git/blobs/{sha} <https://docs.github.com/en/rest/reference/git#blobs>`_
:param sha: string
:rtype: :class:`github.GitBlob.GitBlob`
r  z/git/blobs/Tr  r  r  s       r   get_git_blobRepository.get_git_blob
  si     #s##(S(#;;dhhZ{3%0
 ~~%%doowPT%UUr   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/git/commits/{sha} <https://docs.github.com/en/rest/reference/git#commits>`_
:param sha: string
:rtype: :class:`github.GitCommit.GitCommit`
r  z/git/commits/Tr  )r  r  r  r  rv  r  r  r  s       r   get_git_commitRepository.get_git_commit
  sq     #s##(S(#;;dhhZ}SE2
 ))OOWd * 
 	
r   c                 &   SnU R                   R                  (       d  Sn[        U[        5      (       d   U5       eU R                   R	                  SU R
                   U U 35      u  p4[        R                  R                  U R                   X4SS9$ )z
:calls: `GET /repos/{owner}/{repo}/git/refs/{ref} <https://docs.github.com/en/rest/reference/git#references>`_
:param ref: string
:rtype: :class:`github.GitRef.GitRef`
z
/git/refs/z/git/r  Tr  )r  FIX_REPO_GET_GIT_REFr  r  r  rv  r  r  )r   r  prefixr  r  s        r   get_git_refRepository.get_git_ref
  s     33F#s##(S(#;;dhhZxu-
 }}##DOOWd#SSr   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/git/refs <https://docs.github.com/en/rest/reference/git#references>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.GitRef.GitRef`
r  N)r  r  r  r  rv  r   s    r   get_git_refsRepository.get_git_refs
  r  r   c                     [        U[        5      (       d   U5       e[        R                  R                  [        R                  R                  U R
                  U R                   SU 3S5      $ )z
: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`
z/git/matching-refs/N)r  r  r  r  r  r  rv  )r   r  s     r   get_git_matching_refs Repository.get_git_matching_refs
  s_    
 #s##(S(###11MM  OOxxj+C51	
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/git/tags/{sha} <https://docs.github.com/en/rest/reference/git#tags>`_
:param sha: string
:rtype: :class:`github.GitTag.GitTag`
r  z
/git/tags/Tr  )r  r  r  r  rv  r  r  r  s       r   get_git_tagRepository.get_git_tag
  sh     #s##(S(#;;dhhZz#/
 }}##DOOWd#SSr   c                    [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[
        5      (       d   U5       e[        5       nU[        R                  R                  La  U(       a  SUS'   U R                  R                  SU R                   SU 3US9u  pE[        R                  R                  U R                  XESS9$ )z
:calls: `GET /repos/{owner}/{repo}/git/trees/{sha} <https://docs.github.com/en/rest/reference/git#trees>`_
:param sha: string
:param recursive: bool
:rtype: :class:`github.GitTree.GitTree`
r   	recursiver  z/git/trees/r  Tr  )r  r  r  r  r  r  r  r  r  rv  r  )r   r  rl  r  r  r  s         r   get_git_treeRepository.get_git_tree
  s     #s##(S(#F//666*t;
 ;
 		 
 F//6669*+N;';;dhhZ{3%0^ < 
 ~~%%doowPT%UUr   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/hooks/{id} <https://docs.github.com/en/rest/reference/repos#webhooks>`_
:param id: integer
:rtype: :class:`github.Hook.Hook`
r  /hooks/Tr  )r  r  r  r  rv  r  r	  r  s       r   get_hookRepository.get_hook
  sh     "c""&B&";;dhhZwrd+
 {{$OOr   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/hooks <https://docs.github.com/en/rest/reference/repos#webhooks>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Hook.Hook`
r  N)r  r  r	  r  rv  r   s    r   	get_hooksRepository.get_hooks
  ?    
 ##11KKdoo$((6/BD
 	
r   hook_iddelivery_idc                 $   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU R                  R                  SU R                   SU SU 35      u  p4[
        R                  R                  U R                  X4SS9$ )z
:calls: `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id} <https://docs.github.com/en/rest/webhooks/repo-deliveries>`_
:param hook_id: integer
:param delivery_id: integer
:rtype: :class:`github.HookDelivery.HookDelivery`
r  rp  z/deliveries/Tr  )r  r  r  r  rv  r  HookDelivery)r   rw  rx  r  r  s        r   get_hook_deliveryRepository.get_hook_delivery
  s     '3''00'+s++8[8+;;dhhZwwi|K=I
 ""//OOWd 0 
 	
r   c                     [        U[        5      (       d   U5       e[        R                  R                  [        R                  R
                  U R                  U R                   SU S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries <https://docs.github.com/en/rest/webhooks/repo-deliveries>`_
:param hook_id: integer
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.HookDelivery.HookDeliverySummary`
rp  z/deliveriesN)r  r  r  r  rz  HookDeliverySummaryr  rv  )r   rw  s     r   get_hook_deliveriesRepository.get_hook_deliveries  sb     '3''00'##1133OOxxjy4	
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/issues/{number} <https://docs.github.com/en/rest/reference/issues>`_
:param number: integer
:rtype: :class:`github.Issue.Issue`
r  z/issues/Tr  )r  r  r  r  rv  r  r  r   numberr  r  s       r   	get_issueRepository.get_issue  sh     &#&&..&;;dhhZxx0
 ||!!$//7D!QQr   c
           	      	   U[         R                  R                  L d<  US:X  d6  US:X  d0  [        U[         R                  R                  5      (       d   U5       eU[         R                  R                  L d  [        U[
        5      (       d   U5       eU[         R                  R                  L dE  [        U[         R                  R                  5      (       d  [        U[
        5      (       d   U5       eU[         R                  R                  L d0  [        U[         R                  R                  5      (       d   U5       eU[         R                  R                  L d  [        S U 5       5      (       d   U5       eU[         R                  R                  L d  [        U[
        5      (       d   U5       eU[         R                  R                  L d  [        U[
        5      (       d   U5       eU[         R                  R                  L d&  [        U[        R                  5      (       d   U5       eU	[         R                  R                  L dE  [        U	[         R                  R                  5      (       d  [        U	[
        5      (       d   U	5       e[        5       n
U[         R                  R                  La)  [        U[
        5      (       a  XS'   OUR                  U
S'   U[         R                  R                  La  X*S'   U[         R                  R                  La)  [        U[
        5      (       a  X:S'   OUR                  U
S'   U[         R                  R                  La  UR                  U
S'   U[         R                  R                  LaZ  SR                  U Vs/ s H:  n[        U[         R                  R                  5      (       a  UR                  OUPM<     sn5      U
S	'   U[         R                  R                  La  XjS
'   U[         R                  R                  La  XzS'   U[         R                  R                  La  UR                  S5      U
S'   U	[         R                  R                  La)  [        U	[
        5      (       a  XS'   OU	R                  U
S'   [         R                  R                  [         R                   R                   U R"                  U R$                   S3U
5      $ s  snf )aX  
:calls: `GET /repos/{owner}/{repo}/issues <https://docs.github.com/en/rest/reference/issues>`_
:param milestone: :class:`github.Milestone.Milestone` or "none" or "*"
:param state: string. `open`, `closed`, or `all`. If this is not set the GitHub API default behavior will be used. At the moment this is to return only open issues. This might change anytime on GitHub API side and it could be clever to explicitly specify the state value.
:param assignee: string or :class:`github.NamedUser.NamedUser` or "none" or "*"
:param mentioned: :class:`github.NamedUser.NamedUser`
:param labels: list of string or :class:`github.Label.Label`
:param sort: string
:param direction: string
:param since: datetime.datetime
:param creator: string or :class:`github.NamedUser.NamedUser`
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
*nonec              3      #    U  H@  n[        U[        R                  R                  5      =(       d    [        U[        5      v   MB     g 7fr  r  r  s     r   r  (Repository.get_issues.<locals>.<genexpr>J  r  r  r  r.  r  	mentioned,r  sort	directionr/  r  creatorr  )r  r  r  r  r  r  r  r  r2  r  r  r  r  r  r4  r  r  r  rv  )r   r  r.  r  r  r  r  r  r  r  r  labels               r   
get_issuesRepository.get_issues"  sE   4 ,,333CF")V%5%5%?%?@@		
 	A
 ++222j6L6LSeSL++222(F$4$4$>$>??(C((	 		) F//666*v''11;
 ;
 		 
 ,,333s ;
!;
 8
 8
 	 	 
 v**111Zc5J5JPDPJF//666*s;
 ;
 		 
 ++222j8$$7
 7
 		 
 v**111'6#3#3#=#=>>'3''	 		( F//666)S)).7{+.7.A.A{+++222&+7#6..555(C((-5z*-5-?-?z*F//666*3*=*=N;',,333'*xx "(!' #-UFLL4F4F"G"GEJJUR!'(N8$ v**111%)6"F//666*3;'++222&+nn5I&JN7#&--444'3'',3y),3,=,=y)##11LLDHH:W1E~
 	
!s   #AS8c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X$S'   U[         R                  R                  La  UR                  S5      US'   [         R                  R                  [         R                  R                  U R                  U R                   S3U5      $ )a   
:calls: `GET /repos/{owner}/{repo}/issues/comments <https://docs.github.com/en/rest/reference/issues#comments>`_
:param sort: string
:param direction: string
:param since: datetime.datetime
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment`
r  r  r/  r  z/issues/comments)r  r  r  r  r  r2  r  r4  r  IssueCommentr  rv  r   r  r  r  r  s        r   get_issues_commentsRepository.get_issues_comments  sO    v**111Zc5J5JPDPJF//666*s;
 ;
 		 
 ++222j8$$7
 7
 		 
 v**111%)6"F//666*3;'++222&+nn5I&JN7###11,,OOxxj()	
 	
r   c                    [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 3S[
        R                  0S9u  p#[        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/issues/events/{id} <https://docs.github.com/en/rest/reference/issues#events>`_
:param id: integer
:rtype: :class:`github.IssueEvent.IssueEvent`
r  z/issues/events/r(  r  Tr  )	r  r  r  r  rv  r   mediaTypeLockReasonPreviewr  
IssueEventr  s       r   get_issues_eventRepository.get_issues_event  s     "c""&B&";;xxjt,v@@A < 

   ++OOWd , 
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3SS[
        R                  0S9$ )z
:calls: `GET /repos/{owner}/{repo}/issues/events <https://docs.github.com/en/rest/reference/issues#events>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueEvent.IssueEvent`
z/issues/eventsNr(  r  )r  r  r  r  rv  r   r  r   s    r   get_issues_eventsRepository.get_issues_events  sW    
 ##11((OOxxj'v@@A 2 
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/keys/{id} <https://docs.github.com/en/rest/reference/repos#deploy-keys>`_
:param id: integer
:rtype: :class:`github.RepositoryKey.RepositoryKey`
r  z/keys/Tr  )r  r  r  r  rv  r  r"  r  s       r   get_keyRepository.get_key  sq     "c""&B&";;dhhZvbT*
 ##11OOWd 2 
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/keys <https://docs.github.com/en/rest/reference/repos#deploy-keys>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.RepositoryKey.RepositoryKey`
r!  N)r  r  r"  r  rv  r   s    r   get_keysRepository.get_keys  sD    
 ##11  ..OOxxj	
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   S[
        R                  R                  U5       35      u  p#[        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/labels/{name} <https://docs.github.com/en/rest/reference/issues#labels>`_
:param name: string
:rtype: :class:`github.Label.Label`
r  z/labels/Tr  )
r  r  r  r  rv  r  r  r  r  r  )r   r  r  r  s       r   	get_labelRepository.get_label  sx     $$$*d*$;;dhhZx(:(:4(@'AB
 ||!!$//7D!QQr   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/labels <https://docs.github.com/en/rest/reference/issues#labels>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label`
r'  N)r  r  r  r  rv  r   s    r   
get_labelsRepository.get_labels  rM  r   c                 \    U R                   R                  SU R                   S35      u  pU$ )z
:calls: `GET /repos/{owner}/{repo}/languages <https://docs.github.com/en/rest/reference/repos>`_
:rtype: dict of string to integer
r  z
/languagesr  r  s      r   get_languagesRepository.get_languages  s1    
 ;;dhhZz*
 r   c                     U R                   R                  SU R                   S35      u  p[        R                  R	                  U R                   XSS9$ )z
:calls: `GET /repos/{owner}/{repo}/license <https://docs.github.com/en/rest/reference/licenses>`_
:rtype: :class:`github.ContentFile.ContentFile`
r  z/licenseTr  )r  r  rv  r  r  r  s      r   get_licenseRepository.get_license  sU     ;;dhhZx(
 !!--OOWd . 
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/milestones/{number} <https://docs.github.com/en/rest/reference/issues#milestones>`_
:param number: integer
:rtype: :class:`github.Milestone.Milestone`
r  z/milestones/Tr  )r  r  r  r  rv  r  r  r  s       r   get_milestoneRepository.get_milestone  sq     &#&&..&;;dhhZ|F84
 ))OOWd * 
 	
r   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X$S'   U[         R                  R                  La  X4S'   [         R                  R                  [         R                  R                  U R                  U R                   S3U5      $ )a  
:calls: `GET /repos/{owner}/{repo}/milestones <https://docs.github.com/en/rest/reference/issues#milestones>`_
:param state: string
:param sort: string
:param direction: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Milestone.Milestone`
r.  r  r  r1  )
r  r  r  r  r  r  r  r  r  rv  )r   r.  r  r  r  s        r   get_milestonesRepository.get_milestones  s.    ++222j6L6LSeSLv**111Zc5J5JPDPJF//666*s;
 ;
 		 
 ++222&+7#v**111%)6"F//666*3;'##11&&OOxxj$	
 	
r   c           	          [         R                  R                  [         R                  R                  U R                  SU R                  R
                   SU R                   S3S5      $ )z
:calls: `GET /networks/{owner}/{repo}/events <https://docs.github.com/en/rest/reference/activity#events>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
z
/networks/r  rI  N)r  r  rJ  r  r  r  r  r   s    r   get_network_eventsRepository.get_network_events2  sU    
 ##11LLOO))*!DII;g>	
 	
r   c                     U R                   R                  SU R                   S35      u  p[        R                  R	                  U R                   XSS9$ )z
:calls: `GET /repos/{owner}/{repo}/actions/secrets/public-key <https://docs.github.com/en/rest/reference/actions#get-a-repository-public-key>`_
:rtype: :class:`github.PublicKey.PublicKey`
r  z/actions/secrets/public-keyTr  )r  r  rv  r  	PublicKeyr  s      r   r  Repository.get_public_key>  sV    
 ;;dhhZ:;
 ))OOWd * 
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/pulls/{number} <https://docs.github.com/en/rest/reference/pulls>`_
:param number: integer
:rtype: :class:`github.PullRequest.PullRequest`
r  z/pulls/Tr  )r  r  r  r  rv  r  rT  r  s       r   get_pullRepository.get_pullJ  sq     &#&&..&;;dhhZwvh/
 !!--OOWd . 
 	
r   c                 <   U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X&S'   U[         R                  R                  La  X6S'   U[         R                  R                  La  XFS'   U[         R                  R                  La  XVS'   [         R                  R                  [         R                  R                  U R                  U R                   S3U5      $ )a'  
:calls: `GET /repos/{owner}/{repo}/pulls <https://docs.github.com/en/rest/reference/pulls>`_
:param state: string
:param sort: string
:param direction: string
:param base: string
:param head: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequest.PullRequest`
r.  r  r  r  r  rS  )
r  r  r  r  r  r  r  rT  r  rv  )r   r.  r  r  r  r  r  s          r   	get_pullsRepository.get_pullsX  s   " ++222j6L6LSeSLv**111Zc5J5JPDPJF//666*s;
 ;
 		 
 v**111Zc5J5JPDPJv**111Zc5J5JPDPJ++222&+7#v**111%)6"F//666*3;'v**111%)6"v**111%)6"##11**OOxxj	
 	
r   c                 &    U R                  XU5      $ )a*  
:calls: `GET /repos/{owner}/{repo}/pulls/comments <https://docs.github.com/en/rest/reference/pulls#comments>`_
:param sort: string
:param direction: string
:param since: datetime.datetime
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComment`
)get_pulls_review_comments)r   r  r  r  s       r   get_pulls_commentsRepository.get_pulls_comments  s     --duEEr   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X$S'   U[         R                  R                  La  UR                  S5      US'   [         R                  R                  [         R                  R                  U R                  U R                   S3U5      $ )ad  
:calls: `GET /repos/{owner}/{repo}/pulls/comments <https://docs.github.com/en/rest/reference/pulls#review-comments>`_
:param sort: string 'created', 'updated', 'created_at'
:param direction: string 'asc' or 'desc'
:param since: datetime.datetime
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComment`
r  r  r/  r  z/pulls/comments)r  r  r  r  r  r2  r  r4  r  PullRequestCommentr  rv  r  s        r   r  $Repository.get_pulls_review_comments  sN    v**111Zc5J5JPDPJF//666*s;
 ;
 		 
 ++222j8$$7
 7
 		 
 v**111%)6"F//666*3;'++222&+nn5I&JN7###11%%88OOxxj(	
 	
r   c                 p   U[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U R                  R                  SU R                   S3US9u  p4[         R                  R                  U R                  X4SS9$ )z
:calls: `GET /repos/{owner}/{repo}/readme <https://docs.github.com/en/rest/reference/repos#contents>`_
:param ref: string
:rtype: :class:`github.ContentFile.ContentFile`
r  r  z/readmer  Tr  )
r  r  r  r  r  r  r  r  rv  r  )r   r  r  r  r  s        r   
get_readmeRepository.get_readme  s     f))000JsC4H4HM#MHf))000$'5!;;dhhZw'N < 
 !!--OOWd . 
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/actions/runners/{id} <https://docs.github.com/en/rest/reference/actions#get-a-self-hosted-runner-for-a-repository>`_
:param runner_id: int
:rtype: :class:`github.SelfHostedActionsRunner.SelfHostedActionsRunner`
r  /actions/runners/Tr  )r  r  r  r  rv  r  SelfHostedActionsRunner)r   	runner_idr  r  s       r   get_self_hosted_runner!Repository.get_self_hosted_runner  ss     )S))494);;dhhZ0<
 --EEOOWd F 
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3SSS9$ )a  
:calls: `GET /repos/{owner}/{repo}/actions/runners <https://docs.github.com/en/rest/reference/actions#list-self-hosted-runners-for-a-repository>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.SelfHostedActionsRunner.SelfHostedActionsRunner`
z/actions/runnersNrunners	list_item)r  r  r  r  rv  r   s    r   get_self_hosted_runners"Repository.get_self_hosted_runners  sM    
 ##11**BBOOxxj() 2 
 	
r   c                     S[         R                  0nU R                  R                  SU R                   S3US9u  p#U(       d  g[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/import <https://docs.github.com/en/rest/reference/migrations#source-imports>`_
:rtype: :class:`github.SourceImport.SourceImport`
r(  r  r  r  NTr  )r   r  r  r  rv  r  r  )r   r=  r  r  s       r   get_source_importRepository.get_source_import  st    
 "6#@#@A;;xxj ! < 

 &&33$ 4  r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/stargazers <https://docs.github.com/en/rest/reference/activity#starring>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
/stargazersNr  r   s    r   get_stargazersRepository.get_stargazers  sB    
 ##11&&DHH:[9QSW
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3SS[
        R                  0S9$ )z
:calls: `GET /repos/{owner}/{repo}/stargazers <https://docs.github.com/en/rest/reference/activity#starring>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Stargazer.Stargazer`
r  Nr(  r  )r  r  	Stargazerr  rv  r   mediaTypeStarringPreviewr   s    r   get_stargazers_with_dates$Repository.get_stargazers_with_dates  sW    
 ##11&&OOxxj$v>>? 2 
 	
r   c           
          U R                   R                  SU R                   S35      u  pU(       d  gU Vs/ s H,  n[        R                  R	                  U R                   XSS9PM.     sn$ s  snf )z
:calls: `GET /repos/{owner}/{repo}/stats/contributors <https://docs.github.com/en/rest/reference/repos#get-all-contributor-commit-activity>`_
:rtype: None or list of :class:`github.StatsContributor.StatsContributor`
r  z/stats/contributorsNTr  )r  r  rv  r  StatsContributorr   r  r  
attributess       r   get_stats_contributors!Repository.get_stats_contributors  s    
 ;;dhhZ23
  #'	 #'J ''88OOWD 9  #'	     3A.c           
          U R                   R                  SU R                   S35      u  pU(       d  gU Vs/ s H,  n[        R                  R	                  U R                   XSS9PM.     sn$ s  snf )z
:calls: `GET /repos/{owner}/{repo}/stats/commit_activity <https://docs.github.com/en/rest/reference/repos#get-the-last-year-of-commit-activity>`_
:rtype: None or list of :class:`github.StatsCommitActivity.StatsCommitActivity`
r  z/stats/commit_activityNTr  )r  r  rv  r  StatsCommitActivityr  s       r   get_stats_commit_activity$Repository.get_stats_commit_activity  s    
 ;;dhhZ56
  #'	 #'J **>>OOWD ?  #'	  r  c           
          U R                   R                  SU R                   S35      u  pU(       d  gU Vs/ s H,  n[        R                  R	                  U R                   XSS9PM.     sn$ s  snf )z
:calls: `GET /repos/{owner}/{repo}/stats/code_frequency <https://docs.github.com/en/rest/reference/repos#get-the-weekly-commit-activity>`_
:rtype: None or list of :class:`github.StatsCodeFrequency.StatsCodeFrequency`
r  z/stats/code_frequencyNTr  )r  r  rv  r  StatsCodeFrequencyr  s       r   get_stats_code_frequency#Repository.get_stats_code_frequency+  s    
 ;;dhhZ45
  #'	 #'J ))<<OOWD =  #'	  r  c                     U R                   R                  SU R                   S35      u  pU(       d  g[        R                  R	                  U R                   XSS9$ )z
:calls: `GET /repos/{owner}/{repo}/stats/participation <https://docs.github.com/en/rest/reference/repos#get-the-weekly-commit-count>`_
:rtype: None or :class:`github.StatsParticipation.StatsParticipation`
r  z/stats/participationNTr  )r  r  rv  r  StatsParticipationr  s      r   get_stats_participation"Repository.get_stats_participation=  s]    
 ;;dhhZ34
 ,,??$ @  r   c                     U R                   R                  SU R                   S35      u  pU(       d  g[        R                  R	                  U R                   XSS9$ )z
:calls: `GET /repos/{owner}/{repo}/stats/punch_card <https://docs.github.com/en/rest/reference/repos#get-the-hourly-commit-count-for-each-day>`_
:rtype: None or :class:`github.StatsPunchCard.StatsPunchCard`
r  z/stats/punch_cardNTr  )r  r  rv  r  StatsPunchCardr  s      r   get_stats_punch_cardRepository.get_stats_punch_cardL  s\    
 ;;dhhZ01
 ((77$ 8  r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/subscribers <https://docs.github.com/en/rest/reference/activity#watching>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
z/subscribersNr  r   s    r   get_subscribersRepository.get_subscribers[  sB    
 ##11&&DHH:\9RTX
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/tags <https://docs.github.com/en/rest/reference/repos>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Tag.Tag`
z/tagsN)r  r  Tagr  rv  r   s    r   get_tagsRepository.get_tagsd  s=    
 ##11JJNNDOOz-?
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/releases <https://docs.github.com/en/rest/reference/repos#list-releases>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.GitRelease.GitRelease`
r  N)r  r  r  r  rv  r   s    r   get_releasesRepository.get_releasesm  sB    
 ##11(($//dhhZy;QSW
 	
r   c                    [        U[        5      (       aV  U R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ [        U[        5      (       aV  U R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ g)z
:calls: `GET /repos/{owner}/{repo}/releases/{id} <https://docs.github.com/en/rest/reference/repos#get-a-release>`_
:param id: int (release id), str (tag name)
:rtype: None or :class:`github.GitRelease.GitRelease`
r  z
/releases/Tr  z/releases/tags/N)r  r  r  r  rv  r  r  r  r  s       r   get_releaseRepository.get_releasev  s     b# OO??$((:bT2MG $$//$ 0   C   OO??$((?2$7MG $$//$ 0  	 !r   c                     U R                   R                  SU R                   S35      u  p[        R                  R	                  U R                   XSS9$ )z
:calls: `GET /repos/{owner}/{repo}/releases/latest <https://docs.github.com/en/rest/reference/repos#get-the-latest-release>`_
:rtype: :class:`github.GitRelease.GitRelease`
r  z/releases/latestTr  )r  r  rv  r  r  r  s      r   get_latest_releaseRepository.get_latest_release  sV    
 ;;dhhZ/0
   ++OOWd , 
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/teams <https://docs.github.com/en/rest/reference/repos>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
z/teamsN)r  r  Teamr  rv  r   s    r   	get_teamsRepository.get_teams  rv  r   c                     U R                   R                  SU R                   S3S[        R                  0S9u  pUS   $ )z
:calls: `GET /repos/{owner}/{repo}/topics <https://docs.github.com/en/rest/reference/repos#replace-all-repository-topics>`_
:rtype: list of strings
r  /topicsr(  r  namesr  r  rv  r   mediaTypeTopicsPreviewr  s      r   
get_topicsRepository.get_topics  sJ    
 ;;xxj v<<= < 

 G}r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )z
:calls: `GET /repos/{owner}/{repo}/watchers <https://docs.github.com/en/rest/reference/activity#starring>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
z	/watchersNr  r   s    r   get_watchersRepository.get_watchers  sB    
 ##11&&DHH:Y9OQU
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3SSS9$ )z
:calls: `GET /repos/{owner}/{repo}/actions/workflows <https://docs.github.com/en/rest/reference/actions#workflows>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Workflow.Workflow`
z/actions/workflowsN	workflowsr  )r  r  Workflowr  rv  r   s    r   get_workflowsRepository.get_workflows  sK    
 ##11OO$$OOxxj*+! 2 
 	
r   c                    [        U[        5      (       d  [        U[        5      (       d   U5       eU R                  R	                  SU R
                   SU 35      u  p#[        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/actions/workflows/{workflow_id} <https://docs.github.com/en/rest/reference/actions#workflows>`_
:param id_or_name: int or string

:rtype: :class:`github.Workflow.Workflow`
r  z/actions/workflows/Tr  )r  r  r  r  r  rv  r  r  )r   
id_or_namer  r  s       r   get_workflowRepository.get_workflow  sv     *c**jS.I.IU:UI;;dhhZ2:,?
 ''RV'WWr   c                    U[         R                  R                  L dE  [        U[         R                  R                  5      (       d  [        U[
        5      (       d   U5       eU[         R                  R                  L dE  [        U[         R                  R                  5      (       d  [        U[
        5      (       d   U5       eU[         R                  R                  L d  [        U[
        5      (       d   U5       eU[         R                  R                  L d  [        U[
        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[
        5      (       d   U5       e[        5       nU[         R                  R                  La=  [        U[         R                  R                  5      (       a  UR                  US'   OXS'   U[         R                  R                  La=  [        U[         R                  R                  5      (       a  UR                  US'   OX'S'   U[         R                  R                  La  X7S'   U[         R                  R                  La  XGS'   U[         R                  R                  La  U(       a  SUS'   U[         R                  R                  La  XgS'   [         R                  R                  [         R                  R                  U R                  U R                   S3US	S
9$ )aE  
:calls: `GET /repos/{owner}/{repo}/actions/runs <https://docs.github.com/en/rest/reference/actions#list-workflow-runs-for-a-repository>`_
:param actor: :class:`github.NamedUser.NamedUser` or string
:param branch: :class:`github.Branch.Branch` or string
:param event: string
:param status: string `queued`, `in_progress`, `completed`, `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`
:param exclude_pull_requests: bool
:param head_sha: string

:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.WorkflowRun.WorkflowRun`
actorr  eventr  r   exclude_pull_requestshead_shaz/actions/runsworkflow_runsr  )r  r  r  r  r  r  r  r  r  r  r  r  WorkflowRunr  rv  )r   r%  r  r&  r  r'  r(  r  s           r   get_workflow_runsRepository.get_workflow_runs  s   * V((///%!1!1!;!;<<%%%	 		&
 f))000&&--"6"677&#&&	 		' ++222j6L6LSeSL,,333z&#7N7NVPVVN$(;(;(B(BBj!4G
 G
 	! 	! 
 6..555c:
 :
 		 
 ++222%!1!1!;!;<<*///w'*/w',,333&&--"6"677+1;;x(+1x(++222&+7#,,333'-8$!)<)<)C)CC%67N236..555)1:&##11**OOxxj&% 2 
 	
r   c                     [        U[        5      (       d   eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/actions/runs/{run_id} <https://docs.github.com/en/rest/reference/actions#workflow-runs>`_
:param id_: int

:rtype: :class:`github.WorkflowRun.WorkflowRun`
r  z/actions/runs/Tr  )r  r  r  r  rv  r  r*  r  s       r   get_workflow_runRepository.get_workflow_run  sl     #s####;;dhhZ~cU3
 !!--OOWd . 
 	
r   c                 \   [        U[        R                  R                  5      (       d  [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       a  UR                  nU R
                  R                  SU R                   SU 35      u  p#nUS:H  $ )z
:calls: `GET /repos/{owner}/{repo}/assignees/{assignee} <https://docs.github.com/en/rest/reference/issues#assignees>`_
:param assignee: string or :class:`github.NamedUser.NamedUser`
:rtype: bool
r  z/assignees/r  r  r  r  r  r  r  r  rv  )r   r  r  r  r  s        r   has_in_assigneesRepository.has_in_assignees$  s     (F$4$4$>$>??:cD
 D
 		 
 h 0 0 : :;;))H $ ; ;dhhZ{8*5!
 }r   c                 \   [        U[        R                  R                  5      (       d  [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       a  UR                  nU R
                  R                  SU R                   SU 35      u  p#nUS:H  $ )z
:calls: `GET /repos/{owner}/{repo}/collaborators/{user} <https://docs.github.com/en/rest/reference/repos#collaborators>`_
:param collaborator: string or :class:`github.NamedUser.NamedUser`
:rtype: bool
r  r  r  r1  )r   r  r  r  r  s        r   has_in_collaboratorsRepository.has_in_collaborators6  s     ,(8(8(B(BCCz#H
 H
 		 
 lF$4$4$>$>??'11L $ ; ;dhhZ|n=!
 }r   c                    US   S[         R                  R                  US   5      R                   3US   SUS    3S.S.nSU;   a  US    Vs/ s H  nS	U0PM	     snUS'   S
 H  nXA;   d  M
  X   X$'   M     U$ s  snf )Nr  z/reposr   userz/users/)r  rv  )r  rv  r8  r  r  )r  rk   commentsr  rr  r.  )r  r  urlparser  )r   r  convertedAttributesr  attrs        r   _legacy_convert_issue Repository._legacy_convert_issueH  s     *FLL11*Z2HINNOP#F+ F!3 45
 z!-7-A--AE-A-) WD!,6,<#) W #"-s   A<c                    US;   d   U5       e[        U[        5      (       d   U5       eU R                  R                  SSU R                  R
                   SU R                   SU S[        R                  R                  U5       35      u  p4US    Vs/ s H<  n[        R                  R                  U R                  UU R                  U5      SS9PM>     sn$ s  snf )z
:calls: `GET /legacy/issues/search/{owner}/{repository}/{state}/{keyword} <https://docs.github.com/en/rest/reference/search>`_
:param state: "open" or "closed"
:param keyword: string
:rtype: List of :class:`github.Issue.Issue`
)openclosedr  z/legacy/issues/search/r  issuesFr  )r  r  r  r  r  r  r  r  r  r  r  r  r=  )r   r.  keywordr  r  r  s         r   legacy_search_issuesRepository.legacy_search_issuesZ  s     **1E1*'3''00';;$TZZ%5%5$6a		{!E7!FLLL^L^_fLgKhi
  >
 * LL**73	   *
 	
 
s   ACc                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       eU[         R                  R                  L d&  [        U[
        R
                  5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  X%S'   U[         R                  R                  La  UR                  S5      US'   U[         R                  R                  La  UR                  S5      US'   [         R                  R                  [         R                  R                  U R                  U R                   S3U5      $ )aE  
:calls: `GET /repos/{owner}/{repo}/notifications <https://docs.github.com/en/rest/reference/activity#notifications>`_
:param all: bool
:param participating: bool
:param since: datetime.datetime
:param before: datetime.datetime
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Notification.Notification`
r  participatingr/  r  before/notifications)r  r  r  r  r  r2  r  r4  r  Notificationr  rv  )r   r  rG  r  rH  paramss         r   get_notificationsRepository.get_notificationsq  s     f))000JsD4I4IN3NI 3 3 : ::j4?
 ?
 		 
 ++222j8$$7
 7
 		 
 ,,333zH%%8
 8
 		 
 f))0005M 3 3 : ::&3?#++222#nn-ABF7O,,333%/CDF8##11,,OOxxj'	
 	
r   c                     [        U[        R                  5      (       d   eSUR                  S5      0nU R                  R	                  SU R
                   S3US9u  p4g)z
:calls: `PUT /repos/{owner}/{repo}/notifications <https://docs.github.com/en/rest/reference/activity#notifications>`_
:param last_read_at: datetime
last_read_atr/  r  rI  r  N)r  r2  r4  r  r  rv  )r   rO  r  r  r  s        r   mark_notifications_as_read%Repository.mark_notifications_as_read  sb     ,(9(9::::(,*?*?@T*UV;;dhhZ~.n < 
r   c                    [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eUUS.nU[        R                  R                  La  X4S'   U R
                  R                  SU R                   S3US9u  pVUc  g[        R                  R                  U R
                  XVSS9$ )	z
:calls: `POST /repos/{owner}/{repo}/merges <https://docs.github.com/en/rest/reference/repos#merging>`_
:param base: string
:param head: string
:param commit_message: string
:rtype: :class:`github.Commit.Commit`
)r  r  commit_messager  z/mergesr  NTr  )	r  r  r  r  r  r  r  rv  r  )r   r  r  rS  r  r  r  s          r   mergeRepository.merge  s     $$$*d*$$$$*d*$!4!4!;!;;zC@
 @
 		 
 
 !4!4!;!;;0>,-;;txxj( < 
 <==''RV'WWr   c                     SU0nU R                   R                  SU R                   S3S[        R                  0US9u  p4g)z
:calls: `PUT /repos/{owner}/{repo}/topics <https://docs.github.com/en/rest/reference/repos>`_
:param topics: list of strings
:rtype: None
r  r  r  r(  r:  Nr  )r   rj  r  r  r  s        r   replace_topicsRepository.replace_topics  sM     #F+;;xxj v<<=!	 < 
r   c                     U R                   R                  SU R                   S3S[        R                  0S9u  n  nUS:H  $ )zz
:calls: `GET /repos/{owner}/{repo}/vulnerability-alerts <https://docs.github.com/en/rest/reference/repos>`_
:rtype: bool
r  /vulnerability-alertsr(  r  r  r  r  rv  r   vulnerabilityAlertsPreviewr   r  r  s      r   get_vulnerability_alert"Repository.get_vulnerability_alert  O    
 22xxj-.v@@A 3 
1
 }r   c                     U R                   R                  SU R                   S3S[        R                  0S9u  n  nUS:H  $ )zz
:calls: `PUT /repos/{owner}/{repo}/vulnerability-alerts <https://docs.github.com/en/rest/reference/repos>`_
:rtype: bool
r  rZ  r(  r  r  r[  r]  s      r   enable_vulnerability_alert%Repository.enable_vulnerability_alert  r`  r   c                     U R                   R                  SU R                   S3S[        R                  0S9u  n  nUS:H  $ )z}
:calls: `DELETE /repos/{owner}/{repo}/vulnerability-alerts <https://docs.github.com/en/rest/reference/repos>`_
:rtype: bool
r  rZ  r(  r  r  r[  r]  s      r   disable_vulnerability_alert&Repository.disable_vulnerability_alert  sO    
 22xxj-.v@@A 3 
1
 }r   c                     U R                   R                  SU R                   S3S[        R                  0S9u  n  nUS:H  $ )z~
:calls: `PUT /repos/{owner}/{repo}/automated-security-fixes <https://docs.github.com/en/rest/reference/repos>`_
:rtype: bool
r  /automated-security-fixesr(  r  r  r  r  rv  r   automatedSecurityFixesr]  s      r   enable_automated_security_fixes*Repository.enable_automated_security_fixes  sO    
 22xxj12v<<= 3 
1
 }r   c                     U R                   R                  SU R                   S3S[        R                  0S9u  n  nUS:H  $ )z
:calls: `DELETE /repos/{owner}/{repo}/automated-security-fixes <https://docs.github.com/en/rest/reference/repos>`_
:rtype: bool
r  rh  r(  r  r  ri  r]  s      r    disable_automated_security_fixes+Repository.disable_automated_security_fixes  sO    
 22xxj12v<<= 3 
1
 }r   c                 R   [        U[        R                  R                  5      (       d  [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       a  UR                  nU R
                  R                  SU R                   SU 35      u  p#g)z
:calls: `DELETE /repos/{owner}/{repo}/collaborators/{user} <https://docs.github.com/en/rest/reference/repos#collaborators>`_
:param collaborator: string or :class:`github.NamedUser.NamedUser`
:rtype: None
r  r  Nr  r  s       r   remove_from_collaborators$Repository.remove_from_collaborators  s     ,(8(8(B(BCCz#H
 H
 		 
 lF$4$4$>$>??'11L;;
/,@
r   c                 ^   [        U[        R                  R                  5      (       d  [        U[        5      (       d   U5       e[        U[        R                  R                  5      (       a  UR                  nU R
                  R                  SU R                   SU 35      u  n  nUS:H  $ )a
  
:calls: `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id} <https://docs.github.com/en/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository>`_
:param runner: int or :class:`github.SelfHostedActionsRunner.SelfHostedActionsRunner`
:rtype: bool
r  r  r  )r  r  r  r  r   r  r  rv  )r   runnerr  r  s       r   remove_self_hosted_runner$Repository.remove_self_hosted_runner!  s     F22JJ
 
$$	-&,	- % ff<<TTUUYYF22
"3F8<
1 }r   c                    [        U[        R                  R                  5      nU(       d  [        U[        5      (       d   U5       eU R                  R                  SU R                   SU(       a  UR                  OU 35      u  n  nUS:H  $ )z
:calls: `DELETE /repos/{owner}/{repo}/autolinks/{id} <https://docs.github.com/en/rest/reference/repos>`_
:param autolink: int or :class:`github.Autolink.Autolink`
:rtype: None
r  z/autolinks/r  )r  r  r  r  r  r  rv  r   )r   autolinkis_autolinkr  r  s        r   remove_autolinkRepository.remove_autolink3  sw     !6??+C+CDj377AA722
+[hkkh-WX
1 }r   c                 (    U R                  SXU5      $ )
:calls: `POST /hub <https://docs.github.com/en/rest/reference/repos#pubsubhubbub>`_
:param event: string
:param callback: string
:param secret: string
:rtype: None
	subscribe)_hub)r   r&  callbacksecrets       r   subscribe_to_hubRepository.subscribe_to_hubA  s     yyev>>r   c                 X    U R                  SX[        R                  R                  5      $ )r}  unsubscribe)r  r  r  r  )r   r&  r  s      r   unsubscribe_from_hubRepository.unsubscribe_from_hubK  s#     yy9L9L9S9STTr   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   S3SU0S9u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `POST /repos/{owner}/{repo}/check-suites <https://docs.github.com/en/rest/reference/checks#create-a-check-suite>`_
:param head_sha: string
:rtype: :class:`github.CheckSuite.CheckSuite`
r  z/check-suitesr(  r  Tr  )r  r  r  r  rv  r  
CheckSuite)r   r(  r  r  s       r   create_check_suiteRepository.create_check_suiteU  s{     (C((2(2(;;xxj&x( < 

   ++OOWd , 
 	
r   c                     [        U[        5      (       d   U5       eSS0nU R                  R                  SU R                   SU 3US9u  p4[
        R                  R                  U R                  X4SS9$ )z
:calls: `GET /repos/{owner}/{repo}/check-suites/{check_suite_id} <https://docs.github.com/en/rest/reference/checks#get-a-check-suite>`_
:param check_suite_id: int
:rtype: :class:`github.CheckSuite.CheckSuite`
r(  zapplication/vnd.github.v3+jsonr  z/check-suites/r  Tr  )r  r  r  r  rv  r  r  )r   check_suite_idrequestHeadersr  r  s        r   get_check_suiteRepository.get_check_suitee  s     .#..>>."$DE;;xxj~&67" < 

   ++OOWd , 
 	
r   c                     [        S U 5       5      (       d   U5       eU R                  R                  SU R                   S3SU0S9u  p#[        R
                  R                  U R                  X#SS9$ )a  
:calls: `PATCH /repos/{owner}/{repo}/check-suites/preferences <https://docs.github.com/en/rest/reference/checks#update-repository-preferences-for-check-suites>`_
:param auto_trigger_checks: list of dict
:rtype: :class:`github.RepositoryPreferences.RepositoryPreferences`
c              3   B   #    U  H  n[        U[        5      v   M     g 7fr  r  r  r  s     r   r  =Repository.update_check_suites_preferences.<locals>.<genexpr>|  s      
5H'Jw%%5Hr  r  z/check-suites/preferencesauto_trigger_checksr  Tr  )r  r  r  rv  r  RepositoryPreferences)r   r  r  r  s       r   update_check_suites_preferences*Repository.update_check_suites_preferencesv  s      
5H
 
 
 		 
 ;;xxj12(*=> < 

 ++AAOOWd B 
 	
r   c                    [        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       e[
        R                  " 5       nX5S'   SU R                   SU 3US'   XS'   U[        R                  R                  La  XES'   U R                  R                  SSUS	9u  pgg )
Nzhub.callbackzhttps://github.com/z/events/z	hub.topiczhub.modez
hub.secretr  z/hubr  )
r  r  r  r  r  collectionsOrderedDictr   r  requestMultipartAndCheck)r   moder&  r  r  r  r  outputs           r   r  Repository._hub  s    $$$*d*$%%%,u,%(C((2(2(,,333z&#7N7NVPVVN%113*2' "$..!1%A 		
 '+
#,,333,2L)//BBF/ C 
r   c                 L    U R                   R                   SU R                   3$ )Nr  )r  r  r  r   s    r   r  Repository._identity  s"    **""#1TYYK00r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )Nr  z/releases/assets/Tr  )r  r  r  r  rv  r  GitReleaseAsset)r   r   resp_headersr  s       r   get_release_assetRepository.get_release_asset  sq    "s$$(b($!__@@dhhZ05
 %%55OO\4 6 
 	
r   c                 .   [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d&  [        U[
        R
                  5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eU[        R                  R                  L d&  [        U[
        R
                  5      (       d   U5       eU	[        R                  R                  L d  [        U	[        5      (       d   U	5       eU
[        R                  R                  L d  [        S U
 5       5      (       d   U
5       eUUS.nU[        R                  R                  La  X;S'   U[        R                  R                  La  XKS'   U[        R                  R                  La  X[S'   U[        R                  R                  La  UR                  S5      US'   U[        R                  R                  La  UR                  S5      US'   U[        R                  R                  La  X{S	'   U	[        R                  R                  La  XS
'   U
[        R                  R                  La  XS'   U R                  R                  SU R                   S3US9u  p[        R                  R                  U R                  XSS9$ )a  
:calls: `POST /repos/{owner}/{repo}/check-runs <https://docs.github.com/en/rest/reference/checks#create-a-check-run>`_
:param name: string
:param head_sha: string
:param details_url: string
:param external_id: string
:param status: string
:param started_at: datetime.datetime
:param conclusion: string
:param completed_at: datetime.datetime
:param output: dict
:param actions: list of dict
:rtype: :class:`github.CheckRun.CheckRun`
c              3   B   #    U  H  n[        U[        5      v   M     g 7fr  r  r  s     r   r  .Repository.create_check_run.<locals>.<genexpr>  s      <
5<'Jw%%Wr  )r  r(  details_urlexternal_idr  r/  
started_atcompleted_at
conclusionr  actionsr  z/check-runsr  Tr  )r  r  r  r  r  r2  r  r  r4  r  r  rv  CheckRun)r   r  r(  r  r  r  r  r  r  r  r  r  r  r  s                 r   create_check_runRepository.create_check_run  sW   6 $$$*d*$(C((2(2(f11888J=
 =
 		 
 f11888J=
 =
 		 
 ,,333z&#7N7NVPVVNV00777:))<
 <
 		 
 V00777:<
 <
 		 
 v22999Z(++>
 >
 		 
 ,,333z&$7O7OWQWWO&--444 <
5<<
 9
 9
 		 

  
 f11888-8M*f11888-8M*,,333(.H%V00777,6,?,?@T,UOL)v22999.:.C.C$/ON+ V00777,6L),,333(.H%&--444)0I&;;xxj$! < 

 ''RV'WWr   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/check-runs/{check_run_id} <https://docs.github.com/en/rest/reference/checks#get-a-check-run>`_
:param check_run_id: int
:rtype: :class:`github.CheckRun.CheckRun`
r  z/check-runs/Tr  )r  r  r  r  rv  r  r  )r   check_run_idr  r  s       r   get_check_runRepository.get_check_run  si     ,,,:l:,;;dhhZ|L>:
 ''RV'WWr   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eSU0R                  5        VVs0 s H&  u  p#U[         R                  R                  Ld  M$  X#_M(     nnn[         R                  R                  [         R                  R                  U R                  U R                   S3USS9$ s  snnf )z
:calls: `GET /repos/{owner}/{repo}/actions/artifacts <https://docs.github.com/en/rest/actions/artifacts#list-artifacts-for-a-repository>`_
:param name: str
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Artifact.Artifact`
r  z/actions/artifacts	artifacts)firstParamsr  )
r  r  r  r  r  itemsr  Artifactr  rv  )r   r  r  r   params        r   get_artifactsRepository.get_artifacts  s     v**111Zc5J5JPDPJ  &tn224
4
F//666 CJ4 	 
 ##11OO$$OOxxj*+! 2 
 	

s   #C6Cc                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id} <https://docs.github.com/en/rest/actions/artifacts#get-an-artifact>`_
:param artifact_id: int
:rtype: :class:`github.Artifact.Artifact`
r  z/actions/artifacts/Tr  )r  r  r  r  rv  r  r  )r   artifact_idr  r  s       r   get_artifactRepository.get_artifact  sj     +s++8[8+;;dhhZ2;-@
 ''RV'WWr   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3S5      $ )a  
:calls: `GET https://api.github.com/repos/{owner}/{repo}/code-scanning/alerts <https://docs.github.com/en/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CodeScanAlert.CodeScanAlert`
z/code-scanning/alertsN)r  r  CodeScanAlertr  rv  r   s    r   get_codescan_alertsRepository.get_codescan_alerts)  sE    
 ##11  ..OOxxj-.	
 	
r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3SSS9$ )z
:calls: `GET /repos/{owner}/{repo}/environments <https://docs.github.com/en/rest/reference/deployments#get-all-environments>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Environment.Environment`
z/environmentsNenvironmentsr  )r  r  Environmentr  rv  r   s    r   get_environmentsRepository.get_environments5  sL    
 ##11**OOxxj&$ 2 
 	
r   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#[
        R                  R                  U R                  X#SS9$ )z
:calls: `GET /repos/{owner}/{repo}/environments/{environment_name} <https://docs.github.com/en/rest/reference/deployments#get-an-environment>`_
:rtype: :class:`github.Environment.Environment`
r  /environments/Tr  )r  r  r  r  rv  r  r  r   environment_namer  r  s       r   get_environmentRepository.get_environmentB  su    
 *C00B2BB0;;dhhZ~.>-?@
 !!--OOWd . 
 	
r   r   c           	         [        U[        5      (       d   U5       e[        U[        5      (       d   e[        U[        5      (       d   e[	        U Vs/ s H'  n[        U[
        R                  R                  5      PM)     sn5      (       d   e[        U[
        R                  R                  5      (       d  Ub   eUU Vs/ s H  oUR                  5       PM     snU(       a  UR                  5       OSS.nU R                  R                  SU R                   SU 3US9u  px[
        R                  R                  U R                  XxSS9$ s  snf s  snf )a  
:calls: `PUT /repos/{owner}/{repo}/environments/{environment_name} <https://docs.github.com/en/rest/reference/deployments#create-or-update-an-environment>`_
:param environment_name: string
:param wait_timer: int
:param reviews: List[:class:github.EnvironmentDeploymentBranchPolicy.EnvironmentDeploymentBranchPolicyParams]
:param deployment_branch_policy: Optional[:class:github.EnvironmentDeploymentBranchPolicy.EnvironmentDeploymentBranchPolicyParams`]
:rtype: :class:`github.Environment.Environment`
N)
wait_timer	reviewersdeployment_branch_policyr  r  r  Tr  )r  r  r  rv  r  r  !EnvironmentProtectionRuleReviewerReviewerParams!EnvironmentDeploymentBranchPolicy'EnvironmentDeploymentBranchPolicyParams_asdictr  r  rv  r  )	r   r  r  r  r  reviewerr  r  r  s	            r   create_environmentRepository.create_environmentO  sj    *C00B2BB0*c****)T****
 !*	 !*H fFFUU !*	
 
 	
 
 (88``  (/	
0 %=FGY**,YG' )A(H(H(J
 ;;dhhZ~.>-?@ < 
 !!--OOWd . 
 	
5" Hs   .EEc                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 35      u  p#g)z
:calls: `DELETE /repos/{owner}/{repo}/environments/{environment_name} <https://docs.github.com/en/rest/reference/deployments#delete-an-environment>`_
:param environment_name: string
:rtype: None
r  r  N)r  r  r  r  rv  r  s       r   delete_environmentRepository.delete_environment  sL     *C00B2BB0;;
.1A0BC
r   c                    [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l	        [         R                  R                  U l
        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l         [         R                  R                  U l!        [         R                  R                  U l"        [         R                  R                  U l#        [         R                  R                  U l$        [         R                  R                  U l%        [         R                  R                  U l&        [         R                  R                  U l'        [         R                  R                  U l(        [         R                  R                  U l)        [         R                  R                  U l*        [         R                  R                  U l+        [         R                  R                  U l,        [         R                  R                  U l-        [         R                  R                  U l.        [         R                  R                  U l/        [         R                  R                  U l0        [         R                  R                  U l1        [         R                  R                  U l2        [         R                  R                  U l3        [         R                  R                  U l4        [         R                  R                  U l5        [         R                  R                  U l6        [         R                  R                  U l7        [         R                  R                  U l8        [         R                  R                  U l9        [         R                  R                  U l:        [         R                  R                  U l;        [         R                  R                  U l<        [         R                  R                  U l=        [         R                  R                  U l>        [         R                  R                  U l?        [         R                  R                  U l@        [         R                  R                  U lA        [         R                  R                  U lB        [         R                  R                  U lC        [         R                  R                  U lD        [         R                  R                  U lE        [         R                  R                  U lF        [         R                  R                  U lG        [         R                  R                  U lH        [         R                  R                  U lI        [         R                  R                  U lJ        [         R                  R                  U lK        [         R                  R                  U lL        [         R                  R                  U lM        [         R                  R                  U lN        [         R                  R                  U lO        [         R                  R                  U lP        [         R                  R                  U lQ        [         R                  R                  U lR        [         R                  R                  U lS        [         R                  R                  U lT        [         R                  R                  U lU        [         R                  R                  U lV        [         R                  R                  U lW        [         R                  R                  U lX        [         R                  R                  U lY        g r  )Zr  r  r  r   r   r"   r'   r+   r/   r3   r9   r>   rB   rG   rL   rP   rU   rY   r]   ra   re   rj   ro   rt   rx   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r   r%  r)  r-  r1  r5  r9  r=  rA  rE  rI  rM  rQ  rU  rY  r]  ra  re  ri  rm  rq  ru  ry  r}  r  r   s    r   _initAttributesRepository._initAttributes  s   !'!4!4!;!;$1188#)#6#6#=#= #)#6#6#=#= #)#6#6#=#= $*$7$7$>$>!,,33"//66$1188 --44#0077 --44"("5"5"<"<#0077"//66"//66#0077!'!4!4!;!;!..55%2299'-':':'A'A$ & 3 3 : :"//66$1188!..55((//
))00"//66 --44 --44 & 3 3 : :#0077#0077++22$1188!..55 --44#0077,,33,,33 --44,,33&&--"//66"("5"5"<"<!'!4!4!;!;!..55,,33!..55,,33$1188$1188!..55%2299!..55((//
$1188"("5"5"<"<"//66"("5"5"<"<#0077))00**11"//66++22 --44 --44#0077((//
**11++22!'!4!4!;!;%2299#0077 & 3 3 : :"("5"5"<"<!'!4!4!;!;++22,,33 --44**11 --44!..55''..	!..55,,33%2299r   c                    SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l	        S	U;   a  U R                  US	   5      U l
        S
U;   a  U R                  US
   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R)                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R;                  US   5      U l        SU;   a  U R;                  US   5      U l        SU;   a  U R                  US   5      U l         SU;   a  U R                  US   5      U l!        SU;   a  U R                  US   5      U l"        S U;   a  U R                  US    5      U l#        S!U;   a  U R                  US!   5      U l$        S"U;   a  U R                  US"   5      U l%        S#U;   a  U R                  US#   5      U l&        S$U;   a  U R                  US$   5      U l'        S%U;   a  U R                  US%   5      U l(        S&U;   a  U R                  US&   5      U l)        S'U;   a  U R                  US'   5      U l*        S(U;   a  U R                  US(   5      U l+        S)U;   a  U R                  US)   5      U l,        S*U;   a  U R                  US*   5      U l-        S+U;   a  U R;                  US+   5      U l.        S,U;   a  U R                  US,   5      U l/        S-U;   a  U R                  US-   5      U l0        S.U;   a  U R                  US.   5      U l1        S/U;   a  U R                  US/   5      U l2        S0U;   a  U R                  US0   5      U l3        S1U;   a  U R                  US1   5      U l4        S2U;   a  U R                  US2   5      U l5        S3U;   a  U R                  US3   5      U l6        S4U;   a  U R                  US4   5      U l7        S5U;   a  U R                  US5   5      U l8        S6U;   a  U R                  US6   5      U l9        S7U;   a  U R                  US7   5      U l:        S8U;   a  U R                  US8   5      U l;        S9U;   a  U R;                  US9   5      U l<        S:U;   a  U R                  US:   5      U l=        S;U;   a  U R;                  US;   5      U l>        S<U;   a  U R;                  US<   5      U l?        S=U;   a2  U R                  [        R                  R                  US=   5      U lC        S>U;   a2  U R                  [        R                  R                  US>   5      U lE        S?U;   a  U R                  [        US?   5      U lG        S@U;   a2  U R                  [        R                  R                  US@   5      U lI        SAU;   a  U R                  USA   5      U lJ        SBU;   a  U R                  USB   5      U lK        SCU;   a  U R)                  USC   5      U lL        SDU;   a  U R                  USD   5      U lM        SEU;   a  U R;                  USE   5      U lN        SFU;   a  U R                  [        USF   5      U lO        SGU;   a  U R                  USG   5      U lP        SHU;   a  U R;                  USH   5      U lQ        SIU;   a  U R                  USI   5      U lR        SJU;   a  U R                  USJ   5      U lS        SKU;   a  U R                  USK   5      U lT        SLU;   a  U R;                  USL   5      U lU        SMU;   a  U R                  USM   5      U lV        SNU;   a  U R                  USN   5      U lW        SOU;   a  U R                  USO   5      U lX        SPU;   a  U R                  USP   5      U lY        SQU;   a  U R                  USQ   5      U lZ        SRU;   a  U R                  USR   5      U l\        SSU;   a  U R)                  USS   5      U l]        STU;   a  U R                  UST   5      U l^        SUU;   a  U R                  USU   5      U l_        SVU;   a  U R;                  USV   5      U l`        SWU;   a  U R;                  USW   5      U la        g g )XNr   r   r#   r(   r,   r0   r4   r:   r?   rC   rH   rM   rQ   rV   rZ   r^   rb   rf   rk   rp   ru   ry   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r!  r&  r*  r.  r2  r6  r:  r>  rB  rF  rJ  rN  rR  rV  rZ  r^  rb  rf  rn  rj  rr  rv  rz  r~  r  )b_makeBoolAttributer   r   r"   r'   r+   r/   r3   _makeStringAttributer9   r>   rB   rG   rL   rP   rU   rY   r]   ra   re   _makeDatetimeAttributerj   ro   rt   rx   r}   r   r   r   _makeIntAttributer   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  _makeClassAttributer  rT  r  r  r  r   r   Permissionsr%  r)  r-  r1  r5  r9  r=  rA  rE  rI  rM  rQ  rU  rY  r]  ra  re  rm  _makeListOfStringsAttributeri  rq  ru  ry  r}  r  )r   r  s     r   r  Repository._useAttributes  s   +%)%<%<-.&D" j("&"9"9*_:U"VD:-'+'>'>/0(D$  :-'+'>'>/0(D$  :-'+'>'>/0(D$ !J.(,(?(?01)D% #!44Z
5KLDNJ& $ 9 9*]:S TDj("&";";J<W"XD*$"77
;8OPDOZ'!%!:!::n;U!VD*$"77
;8OPDO*,&*&?&?./'D# Z'!%!:!::n;U!VDJ& $ 9 9*]:S TDJ& $ 9 9*]:S TDZ'!%!:!::n;U!VD+%)%>%>-.&D" :%#:::l;STDz)#'#<#<+,$D  $z1+/+B+B34,D( 
*$($=$=,-%D! J& $ 9 9*]:S TDj("&";";J<W"XD:%#88L9QRDZ00F1CDDJj 00G1DEDKJ& $ 6 6z-7P QD*$"77
;8OPDO*$"77
;8OPDO
*$($=$=,-%D! Z'!%!:!::n;U!VDZ'!%!:!::n;U!VD
" 55j6KLDMj("&"9"9*_:U"VD:%#66z,7OPD*$"55j6MNDOZ'!%!8!8N9S!TD#!44Z
5KLDN#!66z*7MNDN*$"77
;8OPDO#!66z*7MNDN:--j.>?DHJ& $ 7 7
=8Q RD*,&*&?&?./'D# +%)%>%>-.&D" :%#88L9QRD#!66z*7MNDN:%#88L9QRD#!66z*7MNDNj("&";";J<W"XDj("&";";J<W"XD:%#88L9QRDz)#'#<#<+,$D  :%#88L9QRDZ22:f3EFDJj("&"8"8O9T"UD*,&*&?&?./'D# J& $ 6 6z-7P QD*,&*&<&<./'D# Z'!%!9!9##00*^2L"D j 22  **Jw,?DK z!33J
8@TUDLJ& $ 8 8""..
=0I!D 
" 33Jy4IJDM*$"77
;8OPDO*$"99*[:QRDOZ'!%!:!::n;U!VDZ//
60BCDJz!33J
8@TUDL
" 55j6KLDM+%)%;%;-.&D" z)#'#<#<+,$D  Z'!%!:!::n;U!VD
*$($=$=,-%D! *,&*&<&<./'D# +%)%>%>-.&D" 
" 55j6KLDM#!66z*7MNDN*$"77
;8OPDO*$"77
;8OPDOz!;;Jx<PQDL:%#:::l;STDJ11*U2CDDI:%#88L9QRD#!33Jz4JKDNz)#'#9#9*EU:V#WD  *r   )Wr   r   r"   r'   r+   r/   r9   r3   r>   rB   rG   rL   rP   rU   rY   r]   ra   re   rj   ro   rt   rx   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r   r%  r)  r-  r1  r5  r9  r=  rA  rE  rI  rM  rU  rQ  rY  r]  ra  re  ri  rm  rq  ru  ry  r}  r  )F)NNNN)r]  zPgithub.PaginatedList.PaginatedList[github.RepositoryAdvisory.RepositoryAdvisory](  __name__
__module____qualname____firstlineno____doc__r   propertyr   r   r#   r(   r,   r0   r4   r:   r?   rC   rH   rM   rQ   rV   rZ   r^   rb   rf   rk   rp   ru   ry   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r!  r&  r*  r.  r2  r6  r:  r>  rB  rF  rJ  rN  rR  rV  rZ  r^  rb  rf  rj  rn  rr  rv  rz  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r#  r+  r6  r>  rG  rC  rD  rK  r  ro  Optionalrp  rq  AdvisoryVulnerabilityrs  rx  rd  rg  r  rb  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r
  r  r  r  r   r)  r,  r0  r4  r7  r   r;  r?  rC  rF  rK  rP  rU  rX  r[  r`  rc  rf  ri  rm  rq  rt  r  rz  r{  r  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r"  r+  r.  r2  r5  r=  rD  rL  r2  nowtimezoneutcrP  rT  rW  r^  rb  re  rk  rn  rq  ru  rz  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  update_environmentr  r  r  __static_attributes__ r   r   r   r      s   F , , ) ) . . . . . . / / $ $ ' ' ) ) % % ( ( % % - - ( ( ' ' ' ' ( ( , , & & * * 2 2 + + ' ' ) ) & &     ! ! ' ' % % % % + + ( ( ( ( # # ) ) & & % % ( ( $ $ $ $ % % $ $   ' ' - - , , & & $ $ & & $ $ ) ) ) ) & & * * & &     ) ) - - ' ' - - ( ( ! ! " " ' ' # # % % % % ( (     " " # # , , * * ( ( + + - - , , # # $ $ % % " " % % & &   & & $ $ * * =C<O<O<V<V 
B""

	

 X V. ""))%%,,*
XT4 ""))$%
X $,,339
x 281D1D1K1KT@ /5.A.A.H.H V6 ""))"")) PJ   ''$$++%%,,""))%%,,ARF
. 5;4G4G4N4N R< !!((''..""))(
T )/(;(;(B(B V(7. %1188>O
 (,
 9= $
$
 $
 ),	$

 $$
  OO66LL
$
 !56$
 OOF;;TTU
$
 
	"	"	5	5$
V (,
 9= $
$
 $
 ),	$

 $$
  OO66LL
$
 !56$
 OOF;;TTU
$
 
	"	"	5	5$
LN
N
 N
 ),	N

 $N
  OO66LL
N
 !56N
 OOF;;TTU
N
 *.N
  
	"	"	5	5!N
b *0)<)<)C)C*(
  ((//((//'
RP ''..$$++##**&&--((//$$++))00**11,,33))00!..55!..55!..55%2299"//66$$++%A"F 4:3F3F3M3M #

T*
 -3,?,?,F,F 
.



T &&  ''!!((!!((""))7
r &,%8%8%?%? &
T &&&&  ''''..$
L
&   ''&&-- --44##**''..''..$1188%2299L
\ %+$7$7$>$> 4 &,%8%8%?%? 4 "(!4!4!;!; 
&
 ""))%%,,"")):
x
	[


		"	"	5	5
* ""))%%,,""))>
J ""))%%,,""))6
p  *0)<)<)C)C 00 %+$7$7$>$> 
"
X


 ((//  ''"//66	!JF
V
T


T +1*=*=*D*D V(
P


),
				)	)
$

				+	+F,?,?,S,S	T
"
R %%,,!!(($$++%%,,""))  ''%%,,!!((##**[
~   ''%%,,!!((	 
D
 




R


  !!((  ''%%,,	
@




  !!((  ''%%,,  ''  ''(
X   ''%%,,!!((	F"   ''%%,,!!((	 
D $0077 
"

$

$$$


*





X !!((""))!!((""))$1188$$++D
L
$$#$
2 &&))00!!((""))*
Z $,,001B1B1F1FG
 06/B/B/I/I X6






"$ 8>7J7J7Q7Q ?U
 
"
$
& 1 1
 ''..''..""))&&--&&--((//""))##**NX`
X "(!4!4!;!; 
.X



  !%/
b ,

W:r^X ^Xr   r   )Kr  r2  ro  urllib.parser  base64r   r   github.Artifactr  github.Autolinkgithub.Branchgithub.CheckRungithub.CheckSuitegithub.Clonesgithub.CodeScanAlertgithub.Commitgithub.CommitCommentgithub.Comparisongithub.ContentFilegithub.Deploymentgithub.Downloadgithub.Environment(github.EnvironmentDeploymentBranchPolicy github.EnvironmentProtectionRule(github.EnvironmentProtectionRuleReviewergithub.Eventgithub.GitBlobgithub.GitCommitgithub.GithubObjectgithub.GitRefgithub.GitReleasegithub.GitReleaseAssetgithub.GitTaggithub.GitTreegithub.Hookgithub.HookDeliverygithub.Invitationgithub.Issuegithub.IssueEventgithub.Labelgithub.Milestonegithub.NamedUsergithub.Organizationgithub.PaginatedListgithub.Pathgithub.Permissionsgithub.Projectgithub.PublicKeygithub.PullRequestgithub.Referrergithub.Repositorygithub.RepositoryAdvisorygithub.RepositoryAdvisoryCredit&github.RepositoryAdvisoryVulnerabilitygithub.RepositoryKeygithub.RepositoryPreferencesgithub.SelfHostedActionsRunnergithub.SourceImportgithub.Stargazergithub.StatsCodeFrequencygithub.StatsCommitActivitygithub.StatsContributorgithub.StatsParticipationgithub.StatsPunchCard
github.Taggithub.Teamgithub.Viewgithub.Workflowgithub.WorkflowRunr  r   r  CompletableGithubObjectr   r  r   r   <module>r;     s   |      !               / ' /                             & -  # %     !          ~CX$$<< ~CXr   