Rust API for Gitea, automatically generated https://git.exmods.org/swagger.v1.json
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

RepositoryApi.md 145KB

4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903
  1. # \RepositoryApi
  2. All URIs are relative to *http://localhost/api/v1*
  3. Method | HTTP request | Description
  4. ------------- | ------------- | -------------
  5. [**create_current_user_repo**](RepositoryApi.md#create_current_user_repo) | **Post** /user/repos | Create a repository
  6. [**create_fork**](RepositoryApi.md#create_fork) | **Post** /repos/{owner}/{repo}/forks | Fork a repository
  7. [**get_blob**](RepositoryApi.md#get_blob) | **Get** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
  8. [**get_tag**](RepositoryApi.md#get_tag) | **Get** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
  9. [**get_tree**](RepositoryApi.md#get_tree) | **Get** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
  10. [**list_forks**](RepositoryApi.md#list_forks) | **Get** /repos/{owner}/{repo}/forks | List a repository's forks
  11. [**repo_add_collaborator**](RepositoryApi.md#repo_add_collaborator) | **Put** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
  12. [**repo_add_topc**](RepositoryApi.md#repo_add_topc) | **Put** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
  13. [**repo_check_collaborator**](RepositoryApi.md#repo_check_collaborator) | **Get** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
  14. [**repo_create_file**](RepositoryApi.md#repo_create_file) | **Post** /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository
  15. [**repo_create_hook**](RepositoryApi.md#repo_create_hook) | **Post** /repos/{owner}/{repo}/hooks | Create a hook
  16. [**repo_create_key**](RepositoryApi.md#repo_create_key) | **Post** /repos/{owner}/{repo}/keys | Add a key to a repository
  17. [**repo_create_pull_request**](RepositoryApi.md#repo_create_pull_request) | **Post** /repos/{owner}/{repo}/pulls | Create a pull request
  18. [**repo_create_release**](RepositoryApi.md#repo_create_release) | **Post** /repos/{owner}/{repo}/releases | Create a release
  19. [**repo_create_release_attachment**](RepositoryApi.md#repo_create_release_attachment) | **Post** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment
  20. [**repo_create_status**](RepositoryApi.md#repo_create_status) | **Post** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
  21. [**repo_delete**](RepositoryApi.md#repo_delete) | **Delete** /repos/{owner}/{repo} | Delete a repository
  22. [**repo_delete_collaborator**](RepositoryApi.md#repo_delete_collaborator) | **Delete** /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository
  23. [**repo_delete_file**](RepositoryApi.md#repo_delete_file) | **Delete** /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository
  24. [**repo_delete_git_hook**](RepositoryApi.md#repo_delete_git_hook) | **Delete** /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository
  25. [**repo_delete_hook**](RepositoryApi.md#repo_delete_hook) | **Delete** /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository
  26. [**repo_delete_key**](RepositoryApi.md#repo_delete_key) | **Delete** /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository
  27. [**repo_delete_release**](RepositoryApi.md#repo_delete_release) | **Delete** /repos/{owner}/{repo}/releases/{id} | Delete a release
  28. [**repo_delete_release_attachment**](RepositoryApi.md#repo_delete_release_attachment) | **Delete** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment
  29. [**repo_delete_topic**](RepositoryApi.md#repo_delete_topic) | **Delete** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository
  30. [**repo_edit**](RepositoryApi.md#repo_edit) | **Patch** /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed.
  31. [**repo_edit_git_hook**](RepositoryApi.md#repo_edit_git_hook) | **Patch** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository
  32. [**repo_edit_hook**](RepositoryApi.md#repo_edit_hook) | **Patch** /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository
  33. [**repo_edit_pull_request**](RepositoryApi.md#repo_edit_pull_request) | **Patch** /repos/{owner}/{repo}/pulls/{index} | Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
  34. [**repo_edit_release**](RepositoryApi.md#repo_edit_release) | **Patch** /repos/{owner}/{repo}/releases/{id} | Update a release
  35. [**repo_edit_release_attachment**](RepositoryApi.md#repo_edit_release_attachment) | **Patch** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment
  36. [**repo_get**](RepositoryApi.md#repo_get) | **Get** /repos/{owner}/{repo} | Get a repository
  37. [**repo_get_all_commits**](RepositoryApi.md#repo_get_all_commits) | **Get** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository
  38. [**repo_get_archive**](RepositoryApi.md#repo_get_archive) | **Get** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository
  39. [**repo_get_branch**](RepositoryApi.md#repo_get_branch) | **Get** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection
  40. [**repo_get_by_id**](RepositoryApi.md#repo_get_by_id) | **Get** /repositories/{id} | Get a repository by id
  41. [**repo_get_combined_status_by_ref**](RepositoryApi.md#repo_get_combined_status_by_ref) | **Get** /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit's combined status, by branch/tag/commit reference
  42. [**repo_get_contents**](RepositoryApi.md#repo_get_contents) | **Get** /repos/{owner}/{repo}/contents/{filepath} | Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
  43. [**repo_get_contents_list**](RepositoryApi.md#repo_get_contents_list) | **Get** /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir
  44. [**repo_get_editor_config**](RepositoryApi.md#repo_get_editor_config) | **Get** /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository
  45. [**repo_get_git_hook**](RepositoryApi.md#repo_get_git_hook) | **Get** /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook
  46. [**repo_get_hook**](RepositoryApi.md#repo_get_hook) | **Get** /repos/{owner}/{repo}/hooks/{id} | Get a hook
  47. [**repo_get_key**](RepositoryApi.md#repo_get_key) | **Get** /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id
  48. [**repo_get_pull_request**](RepositoryApi.md#repo_get_pull_request) | **Get** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
  49. [**repo_get_raw_file**](RepositoryApi.md#repo_get_raw_file) | **Get** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository
  50. [**repo_get_release**](RepositoryApi.md#repo_get_release) | **Get** /repos/{owner}/{repo}/releases/{id} | Get a release
  51. [**repo_get_release_attachment**](RepositoryApi.md#repo_get_release_attachment) | **Get** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment
  52. [**repo_get_single_commit**](RepositoryApi.md#repo_get_single_commit) | **Get** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
  53. [**repo_list_all_git_refs**](RepositoryApi.md#repo_list_all_git_refs) | **Get** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs
  54. [**repo_list_branches**](RepositoryApi.md#repo_list_branches) | **Get** /repos/{owner}/{repo}/branches | List a repository's branches
  55. [**repo_list_collaborators**](RepositoryApi.md#repo_list_collaborators) | **Get** /repos/{owner}/{repo}/collaborators | List a repository's collaborators
  56. [**repo_list_git_hooks**](RepositoryApi.md#repo_list_git_hooks) | **Get** /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository
  57. [**repo_list_git_refs**](RepositoryApi.md#repo_list_git_refs) | **Get** /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository's refs
  58. [**repo_list_hooks**](RepositoryApi.md#repo_list_hooks) | **Get** /repos/{owner}/{repo}/hooks | List the hooks in a repository
  59. [**repo_list_keys**](RepositoryApi.md#repo_list_keys) | **Get** /repos/{owner}/{repo}/keys | List a repository's keys
  60. [**repo_list_pull_requests**](RepositoryApi.md#repo_list_pull_requests) | **Get** /repos/{owner}/{repo}/pulls | List a repo's pull requests
  61. [**repo_list_release_attachments**](RepositoryApi.md#repo_list_release_attachments) | **Get** /repos/{owner}/{repo}/releases/{id}/assets | List release's attachments
  62. [**repo_list_releases**](RepositoryApi.md#repo_list_releases) | **Get** /repos/{owner}/{repo}/releases | List a repo's releases
  63. [**repo_list_stargazers**](RepositoryApi.md#repo_list_stargazers) | **Get** /repos/{owner}/{repo}/stargazers | List a repo's stargazers
  64. [**repo_list_statuses**](RepositoryApi.md#repo_list_statuses) | **Get** /repos/{owner}/{repo}/statuses/{sha} | Get a commit's statuses
  65. [**repo_list_subscribers**](RepositoryApi.md#repo_list_subscribers) | **Get** /repos/{owner}/{repo}/subscribers | List a repo's watchers
  66. [**repo_list_tags**](RepositoryApi.md#repo_list_tags) | **Get** /repos/{owner}/{repo}/tags | List a repository's tags
  67. [**repo_list_topics**](RepositoryApi.md#repo_list_topics) | **Get** /repos/{owner}/{repo}/topics | Get list of topics that a repository has
  68. [**repo_merge_pull_request**](RepositoryApi.md#repo_merge_pull_request) | **Post** /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request
  69. [**repo_migrate**](RepositoryApi.md#repo_migrate) | **Post** /repos/migrate | Migrate a remote git repository
  70. [**repo_mirror_sync**](RepositoryApi.md#repo_mirror_sync) | **Post** /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository
  71. [**repo_pull_request_is_merged**](RepositoryApi.md#repo_pull_request_is_merged) | **Get** /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged
  72. [**repo_search**](RepositoryApi.md#repo_search) | **Get** /repos/search | Search for repositories
  73. [**repo_signing_key**](RepositoryApi.md#repo_signing_key) | **Get** /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository
  74. [**repo_test_hook**](RepositoryApi.md#repo_test_hook) | **Post** /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook
  75. [**repo_tracked_times**](RepositoryApi.md#repo_tracked_times) | **Get** /repos/{owner}/{repo}/times | List a repo's tracked times
  76. [**repo_update_file**](RepositoryApi.md#repo_update_file) | **Put** /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository
  77. [**repo_update_topics**](RepositoryApi.md#repo_update_topics) | **Put** /repos/{owner}/{repo}/topics | Replace list of topics for a repository
  78. [**topic_search**](RepositoryApi.md#topic_search) | **Get** /topics/search | search topics via keyword
  79. [**user_current_check_subscription**](RepositoryApi.md#user_current_check_subscription) | **Get** /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
  80. [**user_current_delete_subscription**](RepositoryApi.md#user_current_delete_subscription) | **Delete** /repos/{owner}/{repo}/subscription | Unwatch a repo
  81. [**user_current_put_subscription**](RepositoryApi.md#user_current_put_subscription) | **Put** /repos/{owner}/{repo}/subscription | Watch a repo
  82. # **create_current_user_repo**
  83. > ::models::Repository create_current_user_repo(ctx, ctx, ctx, ctx, ctx, ctx, optional)
  84. Create a repository
  85. ### Required Parameters
  86. Name | Type | Description | Notes
  87. ------------- | ------------- | ------------- | -------------
  88. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  89. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  90. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  91. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  92. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  93. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  94. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  95. ### Optional Parameters
  96. Optional parameters are passed through a map[string]interface{}.
  97. Name | Type | Description | Notes
  98. ------------- | ------------- | ------------- | -------------
  99. **body** | [**CreateRepoOption**](CreateRepoOption.md)| |
  100. ### Return type
  101. [**::models::Repository**](Repository.md)
  102. ### Authorization
  103. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  104. ### HTTP request headers
  105. - **Content-Type**: application/json
  106. - **Accept**: application/json
  107. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  108. # **create_fork**
  109. > ::models::Repository create_fork(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  110. Fork a repository
  111. ### Required Parameters
  112. Name | Type | Description | Notes
  113. ------------- | ------------- | ------------- | -------------
  114. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  115. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  116. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  117. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  118. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  119. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  120. **owner** | **String**| owner of the repo to fork |
  121. **repo** | **String**| name of the repo to fork |
  122. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  123. ### Optional Parameters
  124. Optional parameters are passed through a map[string]interface{}.
  125. Name | Type | Description | Notes
  126. ------------- | ------------- | ------------- | -------------
  127. **owner** | **String**| owner of the repo to fork |
  128. **repo** | **String**| name of the repo to fork |
  129. **body** | [**CreateForkOption**](CreateForkOption.md)| |
  130. ### Return type
  131. [**::models::Repository**](Repository.md)
  132. ### Authorization
  133. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  134. ### HTTP request headers
  135. - **Content-Type**: application/json, text/plain
  136. - **Accept**: application/json
  137. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  138. # **get_blob**
  139. > ::models::GitBlobResponse get_blob(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, sha)
  140. Gets the blob of a repository.
  141. ### Required Parameters
  142. Name | Type | Description | Notes
  143. ------------- | ------------- | ------------- | -------------
  144. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  145. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  146. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  147. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  148. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  149. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  150. **owner** | **String**| owner of the repo |
  151. **repo** | **String**| name of the repo |
  152. **sha** | **String**| sha of the commit |
  153. ### Return type
  154. [**::models::GitBlobResponse**](GitBlobResponse.md)
  155. ### Authorization
  156. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  157. ### HTTP request headers
  158. - **Content-Type**: application/json, text/plain
  159. - **Accept**: application/json
  160. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  161. # **get_tag**
  162. > ::models::AnnotatedTag get_tag(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, sha)
  163. Gets the tag object of an annotated tag (not lightweight tags)
  164. ### Required Parameters
  165. Name | Type | Description | Notes
  166. ------------- | ------------- | ------------- | -------------
  167. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  168. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  169. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  170. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  171. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  172. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  173. **owner** | **String**| owner of the repo |
  174. **repo** | **String**| name of the repo |
  175. **sha** | **String**| sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. |
  176. ### Return type
  177. [**::models::AnnotatedTag**](AnnotatedTag.md)
  178. ### Authorization
  179. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  180. ### HTTP request headers
  181. - **Content-Type**: application/json, text/plain
  182. - **Accept**: application/json
  183. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  184. # **get_tree**
  185. > ::models::GitTreeResponse get_tree(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, sha, optional)
  186. Gets the tree of a repository.
  187. ### Required Parameters
  188. Name | Type | Description | Notes
  189. ------------- | ------------- | ------------- | -------------
  190. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  191. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  192. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  193. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  194. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  195. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  196. **owner** | **String**| owner of the repo |
  197. **repo** | **String**| name of the repo |
  198. **sha** | **String**| sha of the commit |
  199. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  200. ### Optional Parameters
  201. Optional parameters are passed through a map[string]interface{}.
  202. Name | Type | Description | Notes
  203. ------------- | ------------- | ------------- | -------------
  204. **owner** | **String**| owner of the repo |
  205. **repo** | **String**| name of the repo |
  206. **sha** | **String**| sha of the commit |
  207. **recursive** | **bool**| show all directories and files |
  208. **page** | **i32**| page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page |
  209. **per_page** | **i32**| number of items per page; default is 1000 or what is set in app.ini as DEFAULT_GIT_TREES_PER_PAGE |
  210. ### Return type
  211. [**::models::GitTreeResponse**](GitTreeResponse.md)
  212. ### Authorization
  213. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  214. ### HTTP request headers
  215. - **Content-Type**: application/json, text/plain
  216. - **Accept**: application/json
  217. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  218. # **list_forks**
  219. > Vec<::models::Repository> list_forks(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  220. List a repository's forks
  221. ### Required Parameters
  222. Name | Type | Description | Notes
  223. ------------- | ------------- | ------------- | -------------
  224. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  225. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  226. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  227. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  228. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  229. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  230. **owner** | **String**| owner of the repo |
  231. **repo** | **String**| name of the repo |
  232. ### Return type
  233. [**Vec<::models::Repository>**](Repository.md)
  234. ### Authorization
  235. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  236. ### HTTP request headers
  237. - **Content-Type**: application/json, text/plain
  238. - **Accept**: application/json
  239. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  240. # **repo_add_collaborator**
  241. > repo_add_collaborator(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, collaborator, optional)
  242. Add a collaborator to a repository
  243. ### Required Parameters
  244. Name | Type | Description | Notes
  245. ------------- | ------------- | ------------- | -------------
  246. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  247. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  248. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  249. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  250. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  251. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  252. **owner** | **String**| owner of the repo |
  253. **repo** | **String**| name of the repo |
  254. **collaborator** | **String**| username of the collaborator to add |
  255. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  256. ### Optional Parameters
  257. Optional parameters are passed through a map[string]interface{}.
  258. Name | Type | Description | Notes
  259. ------------- | ------------- | ------------- | -------------
  260. **owner** | **String**| owner of the repo |
  261. **repo** | **String**| name of the repo |
  262. **collaborator** | **String**| username of the collaborator to add |
  263. **body** | [**AddCollaboratorOption**](AddCollaboratorOption.md)| |
  264. ### Return type
  265. (empty response body)
  266. ### Authorization
  267. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  268. ### HTTP request headers
  269. - **Content-Type**: application/json, text/plain
  270. - **Accept**: application/json
  271. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  272. # **repo_add_topc**
  273. > repo_add_topc(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, topic)
  274. Add a topic to a repository
  275. ### Required Parameters
  276. Name | Type | Description | Notes
  277. ------------- | ------------- | ------------- | -------------
  278. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  279. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  280. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  281. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  282. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  283. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  284. **owner** | **String**| owner of the repo |
  285. **repo** | **String**| name of the repo |
  286. **topic** | **String**| name of the topic to add |
  287. ### Return type
  288. (empty response body)
  289. ### Authorization
  290. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  291. ### HTTP request headers
  292. - **Content-Type**: application/json, text/plain
  293. - **Accept**: application/json
  294. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  295. # **repo_check_collaborator**
  296. > repo_check_collaborator(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, collaborator)
  297. Check if a user is a collaborator of a repository
  298. ### Required Parameters
  299. Name | Type | Description | Notes
  300. ------------- | ------------- | ------------- | -------------
  301. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  302. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  303. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  304. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  305. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  306. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  307. **owner** | **String**| owner of the repo |
  308. **repo** | **String**| name of the repo |
  309. **collaborator** | **String**| username of the collaborator |
  310. ### Return type
  311. (empty response body)
  312. ### Authorization
  313. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  314. ### HTTP request headers
  315. - **Content-Type**: application/json, text/plain
  316. - **Accept**: application/json
  317. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  318. # **repo_create_file**
  319. > ::models::FileResponse repo_create_file(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, filepath, body)
  320. Create a file in a repository
  321. ### Required Parameters
  322. Name | Type | Description | Notes
  323. ------------- | ------------- | ------------- | -------------
  324. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  325. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  326. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  327. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  328. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  329. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  330. **owner** | **String**| owner of the repo |
  331. **repo** | **String**| name of the repo |
  332. **filepath** | **String**| path of the file to create |
  333. **body** | [**CreateFileOptions**](CreateFileOptions.md)| |
  334. ### Return type
  335. [**::models::FileResponse**](FileResponse.md)
  336. ### Authorization
  337. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  338. ### HTTP request headers
  339. - **Content-Type**: application/json
  340. - **Accept**: application/json
  341. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  342. # **repo_create_hook**
  343. > ::models::Hook repo_create_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  344. Create a hook
  345. ### Required Parameters
  346. Name | Type | Description | Notes
  347. ------------- | ------------- | ------------- | -------------
  348. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  349. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  350. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  351. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  352. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  353. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  354. **owner** | **String**| owner of the repo |
  355. **repo** | **String**| name of the repo |
  356. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  357. ### Optional Parameters
  358. Optional parameters are passed through a map[string]interface{}.
  359. Name | Type | Description | Notes
  360. ------------- | ------------- | ------------- | -------------
  361. **owner** | **String**| owner of the repo |
  362. **repo** | **String**| name of the repo |
  363. **body** | [**CreateHookOption**](CreateHookOption.md)| |
  364. ### Return type
  365. [**::models::Hook**](Hook.md)
  366. ### Authorization
  367. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  368. ### HTTP request headers
  369. - **Content-Type**: application/json
  370. - **Accept**: application/json
  371. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  372. # **repo_create_key**
  373. > ::models::DeployKey repo_create_key(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  374. Add a key to a repository
  375. ### Required Parameters
  376. Name | Type | Description | Notes
  377. ------------- | ------------- | ------------- | -------------
  378. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  379. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  380. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  381. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  382. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  383. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  384. **owner** | **String**| owner of the repo |
  385. **repo** | **String**| name of the repo |
  386. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  387. ### Optional Parameters
  388. Optional parameters are passed through a map[string]interface{}.
  389. Name | Type | Description | Notes
  390. ------------- | ------------- | ------------- | -------------
  391. **owner** | **String**| owner of the repo |
  392. **repo** | **String**| name of the repo |
  393. **body** | [**CreateKeyOption**](CreateKeyOption.md)| |
  394. ### Return type
  395. [**::models::DeployKey**](DeployKey.md)
  396. ### Authorization
  397. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  398. ### HTTP request headers
  399. - **Content-Type**: application/json
  400. - **Accept**: application/json
  401. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  402. # **repo_create_pull_request**
  403. > ::models::PullRequest repo_create_pull_request(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  404. Create a pull request
  405. ### Required Parameters
  406. Name | Type | Description | Notes
  407. ------------- | ------------- | ------------- | -------------
  408. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  409. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  410. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  411. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  412. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  413. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  414. **owner** | **String**| owner of the repo |
  415. **repo** | **String**| name of the repo |
  416. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  417. ### Optional Parameters
  418. Optional parameters are passed through a map[string]interface{}.
  419. Name | Type | Description | Notes
  420. ------------- | ------------- | ------------- | -------------
  421. **owner** | **String**| owner of the repo |
  422. **repo** | **String**| name of the repo |
  423. **body** | [**CreatePullRequestOption**](CreatePullRequestOption.md)| |
  424. ### Return type
  425. [**::models::PullRequest**](PullRequest.md)
  426. ### Authorization
  427. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  428. ### HTTP request headers
  429. - **Content-Type**: application/json
  430. - **Accept**: application/json
  431. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  432. # **repo_create_release**
  433. > ::models::Release repo_create_release(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  434. Create a release
  435. ### Required Parameters
  436. Name | Type | Description | Notes
  437. ------------- | ------------- | ------------- | -------------
  438. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  439. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  440. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  441. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  442. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  443. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  444. **owner** | **String**| owner of the repo |
  445. **repo** | **String**| name of the repo |
  446. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  447. ### Optional Parameters
  448. Optional parameters are passed through a map[string]interface{}.
  449. Name | Type | Description | Notes
  450. ------------- | ------------- | ------------- | -------------
  451. **owner** | **String**| owner of the repo |
  452. **repo** | **String**| name of the repo |
  453. **body** | [**CreateReleaseOption**](CreateReleaseOption.md)| |
  454. ### Return type
  455. [**::models::Release**](Release.md)
  456. ### Authorization
  457. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  458. ### HTTP request headers
  459. - **Content-Type**: application/json
  460. - **Accept**: application/json
  461. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  462. # **repo_create_release_attachment**
  463. > ::models::Attachment repo_create_release_attachment(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id, attachment, optional)
  464. Create a release attachment
  465. ### Required Parameters
  466. Name | Type | Description | Notes
  467. ------------- | ------------- | ------------- | -------------
  468. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  469. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  470. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  471. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  472. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  473. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  474. **owner** | **String**| owner of the repo |
  475. **repo** | **String**| name of the repo |
  476. **id** | **i64**| id of the release |
  477. **attachment** | **File**| attachment to upload |
  478. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  479. ### Optional Parameters
  480. Optional parameters are passed through a map[string]interface{}.
  481. Name | Type | Description | Notes
  482. ------------- | ------------- | ------------- | -------------
  483. **owner** | **String**| owner of the repo |
  484. **repo** | **String**| name of the repo |
  485. **id** | **i64**| id of the release |
  486. **attachment** | **File**| attachment to upload |
  487. **name** | **String**| name of the attachment |
  488. ### Return type
  489. [**::models::Attachment**](Attachment.md)
  490. ### Authorization
  491. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  492. ### HTTP request headers
  493. - **Content-Type**: multipart/form-data
  494. - **Accept**: application/json
  495. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  496. # **repo_create_status**
  497. > ::models::Status repo_create_status(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, sha, optional)
  498. Create a commit status
  499. ### Required Parameters
  500. Name | Type | Description | Notes
  501. ------------- | ------------- | ------------- | -------------
  502. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  503. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  504. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  505. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  506. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  507. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  508. **owner** | **String**| owner of the repo |
  509. **repo** | **String**| name of the repo |
  510. **sha** | **String**| sha of the commit |
  511. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  512. ### Optional Parameters
  513. Optional parameters are passed through a map[string]interface{}.
  514. Name | Type | Description | Notes
  515. ------------- | ------------- | ------------- | -------------
  516. **owner** | **String**| owner of the repo |
  517. **repo** | **String**| name of the repo |
  518. **sha** | **String**| sha of the commit |
  519. **body** | [**CreateStatusOption**](CreateStatusOption.md)| |
  520. ### Return type
  521. [**::models::Status**](Status.md)
  522. ### Authorization
  523. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  524. ### HTTP request headers
  525. - **Content-Type**: application/json, text/plain
  526. - **Accept**: application/json
  527. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  528. # **repo_delete**
  529. > repo_delete(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  530. Delete a repository
  531. ### Required Parameters
  532. Name | Type | Description | Notes
  533. ------------- | ------------- | ------------- | -------------
  534. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  535. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  536. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  537. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  538. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  539. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  540. **owner** | **String**| owner of the repo to delete |
  541. **repo** | **String**| name of the repo to delete |
  542. ### Return type
  543. (empty response body)
  544. ### Authorization
  545. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  546. ### HTTP request headers
  547. - **Content-Type**: application/json, text/plain
  548. - **Accept**: application/json
  549. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  550. # **repo_delete_collaborator**
  551. > repo_delete_collaborator(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, collaborator)
  552. Delete a collaborator from a repository
  553. ### Required Parameters
  554. Name | Type | Description | Notes
  555. ------------- | ------------- | ------------- | -------------
  556. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  557. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  558. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  559. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  560. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  561. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  562. **owner** | **String**| owner of the repo |
  563. **repo** | **String**| name of the repo |
  564. **collaborator** | **String**| username of the collaborator to delete |
  565. ### Return type
  566. (empty response body)
  567. ### Authorization
  568. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  569. ### HTTP request headers
  570. - **Content-Type**: application/json, text/plain
  571. - **Accept**: application/json
  572. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  573. # **repo_delete_file**
  574. > ::models::FileDeleteResponse repo_delete_file(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, filepath, body)
  575. Delete a file in a repository
  576. ### Required Parameters
  577. Name | Type | Description | Notes
  578. ------------- | ------------- | ------------- | -------------
  579. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  580. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  581. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  582. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  583. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  584. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  585. **owner** | **String**| owner of the repo |
  586. **repo** | **String**| name of the repo |
  587. **filepath** | **String**| path of the file to delete |
  588. **body** | [**DeleteFileOptions**](DeleteFileOptions.md)| |
  589. ### Return type
  590. [**::models::FileDeleteResponse**](FileDeleteResponse.md)
  591. ### Authorization
  592. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  593. ### HTTP request headers
  594. - **Content-Type**: application/json
  595. - **Accept**: application/json
  596. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  597. # **repo_delete_git_hook**
  598. > repo_delete_git_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  599. Delete a Git hook in a repository
  600. ### Required Parameters
  601. Name | Type | Description | Notes
  602. ------------- | ------------- | ------------- | -------------
  603. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  604. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  605. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  606. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  607. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  608. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  609. **owner** | **String**| owner of the repo |
  610. **repo** | **String**| name of the repo |
  611. **id** | **String**| id of the hook to get |
  612. ### Return type
  613. (empty response body)
  614. ### Authorization
  615. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  616. ### HTTP request headers
  617. - **Content-Type**: application/json, text/plain
  618. - **Accept**: application/json
  619. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  620. # **repo_delete_hook**
  621. > repo_delete_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  622. Delete a hook in a repository
  623. ### Required Parameters
  624. Name | Type | Description | Notes
  625. ------------- | ------------- | ------------- | -------------
  626. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  627. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  628. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  629. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  630. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  631. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  632. **owner** | **String**| owner of the repo |
  633. **repo** | **String**| name of the repo |
  634. **id** | **i64**| id of the hook to delete |
  635. ### Return type
  636. (empty response body)
  637. ### Authorization
  638. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  639. ### HTTP request headers
  640. - **Content-Type**: application/json, text/plain
  641. - **Accept**: application/json
  642. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  643. # **repo_delete_key**
  644. > repo_delete_key(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  645. Delete a key from a repository
  646. ### Required Parameters
  647. Name | Type | Description | Notes
  648. ------------- | ------------- | ------------- | -------------
  649. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  650. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  651. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  652. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  653. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  654. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  655. **owner** | **String**| owner of the repo |
  656. **repo** | **String**| name of the repo |
  657. **id** | **i64**| id of the key to delete |
  658. ### Return type
  659. (empty response body)
  660. ### Authorization
  661. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  662. ### HTTP request headers
  663. - **Content-Type**: application/json, text/plain
  664. - **Accept**: application/json, text/html
  665. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  666. # **repo_delete_release**
  667. > repo_delete_release(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  668. Delete a release
  669. ### Required Parameters
  670. Name | Type | Description | Notes
  671. ------------- | ------------- | ------------- | -------------
  672. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  673. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  674. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  675. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  676. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  677. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  678. **owner** | **String**| owner of the repo |
  679. **repo** | **String**| name of the repo |
  680. **id** | **i64**| id of the release to delete |
  681. ### Return type
  682. (empty response body)
  683. ### Authorization
  684. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  685. ### HTTP request headers
  686. - **Content-Type**: application/json, text/plain
  687. - **Accept**: application/json, text/html
  688. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  689. # **repo_delete_release_attachment**
  690. > repo_delete_release_attachment(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id, attachment_id)
  691. Delete a release attachment
  692. ### Required Parameters
  693. Name | Type | Description | Notes
  694. ------------- | ------------- | ------------- | -------------
  695. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  696. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  697. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  698. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  699. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  700. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  701. **owner** | **String**| owner of the repo |
  702. **repo** | **String**| name of the repo |
  703. **id** | **i64**| id of the release |
  704. **attachment_id** | **i64**| id of the attachment to delete |
  705. ### Return type
  706. (empty response body)
  707. ### Authorization
  708. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  709. ### HTTP request headers
  710. - **Content-Type**: application/json, text/plain
  711. - **Accept**: application/json
  712. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  713. # **repo_delete_topic**
  714. > repo_delete_topic(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, topic)
  715. Delete a topic from a repository
  716. ### Required Parameters
  717. Name | Type | Description | Notes
  718. ------------- | ------------- | ------------- | -------------
  719. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  720. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  721. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  722. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  723. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  724. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  725. **owner** | **String**| owner of the repo |
  726. **repo** | **String**| name of the repo |
  727. **topic** | **String**| name of the topic to delete |
  728. ### Return type
  729. (empty response body)
  730. ### Authorization
  731. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  732. ### HTTP request headers
  733. - **Content-Type**: application/json, text/plain
  734. - **Accept**: application/json
  735. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  736. # **repo_edit**
  737. > ::models::Repository repo_edit(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  738. Edit a repository's properties. Only fields that are set will be changed.
  739. ### Required Parameters
  740. Name | Type | Description | Notes
  741. ------------- | ------------- | ------------- | -------------
  742. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  743. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  744. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  745. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  746. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  747. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  748. **owner** | **String**| owner of the repo to edit |
  749. **repo** | **String**| name of the repo to edit |
  750. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  751. ### Optional Parameters
  752. Optional parameters are passed through a map[string]interface{}.
  753. Name | Type | Description | Notes
  754. ------------- | ------------- | ------------- | -------------
  755. **owner** | **String**| owner of the repo to edit |
  756. **repo** | **String**| name of the repo to edit |
  757. **body** | [**EditRepoOption**](EditRepoOption.md)| Properties of a repo that you can edit |
  758. ### Return type
  759. [**::models::Repository**](Repository.md)
  760. ### Authorization
  761. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  762. ### HTTP request headers
  763. - **Content-Type**: application/json, text/plain
  764. - **Accept**: application/json
  765. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  766. # **repo_edit_git_hook**
  767. > ::models::GitHook repo_edit_git_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id, optional)
  768. Edit a Git hook in a repository
  769. ### Required Parameters
  770. Name | Type | Description | Notes
  771. ------------- | ------------- | ------------- | -------------
  772. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  773. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  774. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  775. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  776. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  777. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  778. **owner** | **String**| owner of the repo |
  779. **repo** | **String**| name of the repo |
  780. **id** | **String**| id of the hook to get |
  781. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  782. ### Optional Parameters
  783. Optional parameters are passed through a map[string]interface{}.
  784. Name | Type | Description | Notes
  785. ------------- | ------------- | ------------- | -------------
  786. **owner** | **String**| owner of the repo |
  787. **repo** | **String**| name of the repo |
  788. **id** | **String**| id of the hook to get |
  789. **body** | [**EditGitHookOption**](EditGitHookOption.md)| |
  790. ### Return type
  791. [**::models::GitHook**](GitHook.md)
  792. ### Authorization
  793. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  794. ### HTTP request headers
  795. - **Content-Type**: application/json, text/plain
  796. - **Accept**: application/json
  797. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  798. # **repo_edit_hook**
  799. > ::models::Hook repo_edit_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id, optional)
  800. Edit a hook in a repository
  801. ### Required Parameters
  802. Name | Type | Description | Notes
  803. ------------- | ------------- | ------------- | -------------
  804. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  805. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  806. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  807. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  808. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  809. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  810. **owner** | **String**| owner of the repo |
  811. **repo** | **String**| name of the repo |
  812. **id** | **i64**| index of the hook |
  813. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  814. ### Optional Parameters
  815. Optional parameters are passed through a map[string]interface{}.
  816. Name | Type | Description | Notes
  817. ------------- | ------------- | ------------- | -------------
  818. **owner** | **String**| owner of the repo |
  819. **repo** | **String**| name of the repo |
  820. **id** | **i64**| index of the hook |
  821. **body** | [**EditHookOption**](EditHookOption.md)| |
  822. ### Return type
  823. [**::models::Hook**](Hook.md)
  824. ### Authorization
  825. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  826. ### HTTP request headers
  827. - **Content-Type**: application/json, text/plain
  828. - **Accept**: application/json
  829. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  830. # **repo_edit_pull_request**
  831. > ::models::PullRequest repo_edit_pull_request(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, index, optional)
  832. Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
  833. ### Required Parameters
  834. Name | Type | Description | Notes
  835. ------------- | ------------- | ------------- | -------------
  836. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  837. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  838. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  839. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  840. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  841. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  842. **owner** | **String**| owner of the repo |
  843. **repo** | **String**| name of the repo |
  844. **index** | **i64**| index of the pull request to edit |
  845. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  846. ### Optional Parameters
  847. Optional parameters are passed through a map[string]interface{}.
  848. Name | Type | Description | Notes
  849. ------------- | ------------- | ------------- | -------------
  850. **owner** | **String**| owner of the repo |
  851. **repo** | **String**| name of the repo |
  852. **index** | **i64**| index of the pull request to edit |
  853. **body** | [**EditPullRequestOption**](EditPullRequestOption.md)| |
  854. ### Return type
  855. [**::models::PullRequest**](PullRequest.md)
  856. ### Authorization
  857. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  858. ### HTTP request headers
  859. - **Content-Type**: application/json
  860. - **Accept**: application/json
  861. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  862. # **repo_edit_release**
  863. > ::models::Release repo_edit_release(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id, optional)
  864. Update a release
  865. ### Required Parameters
  866. Name | Type | Description | Notes
  867. ------------- | ------------- | ------------- | -------------
  868. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  869. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  870. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  871. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  872. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  873. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  874. **owner** | **String**| owner of the repo |
  875. **repo** | **String**| name of the repo |
  876. **id** | **i64**| id of the release to edit |
  877. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  878. ### Optional Parameters
  879. Optional parameters are passed through a map[string]interface{}.
  880. Name | Type | Description | Notes
  881. ------------- | ------------- | ------------- | -------------
  882. **owner** | **String**| owner of the repo |
  883. **repo** | **String**| name of the repo |
  884. **id** | **i64**| id of the release to edit |
  885. **body** | [**EditReleaseOption**](EditReleaseOption.md)| |
  886. ### Return type
  887. [**::models::Release**](Release.md)
  888. ### Authorization
  889. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  890. ### HTTP request headers
  891. - **Content-Type**: application/json
  892. - **Accept**: application/json
  893. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  894. # **repo_edit_release_attachment**
  895. > ::models::Attachment repo_edit_release_attachment(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id, attachment_id, optional)
  896. Edit a release attachment
  897. ### Required Parameters
  898. Name | Type | Description | Notes
  899. ------------- | ------------- | ------------- | -------------
  900. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  901. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  902. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  903. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  904. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  905. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  906. **owner** | **String**| owner of the repo |
  907. **repo** | **String**| name of the repo |
  908. **id** | **i64**| id of the release |
  909. **attachment_id** | **i64**| id of the attachment to edit |
  910. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  911. ### Optional Parameters
  912. Optional parameters are passed through a map[string]interface{}.
  913. Name | Type | Description | Notes
  914. ------------- | ------------- | ------------- | -------------
  915. **owner** | **String**| owner of the repo |
  916. **repo** | **String**| name of the repo |
  917. **id** | **i64**| id of the release |
  918. **attachment_id** | **i64**| id of the attachment to edit |
  919. **body** | [**EditAttachmentOptions**](EditAttachmentOptions.md)| |
  920. ### Return type
  921. [**::models::Attachment**](Attachment.md)
  922. ### Authorization
  923. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  924. ### HTTP request headers
  925. - **Content-Type**: application/json
  926. - **Accept**: application/json
  927. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  928. # **repo_get**
  929. > ::models::Repository repo_get(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  930. Get a repository
  931. ### Required Parameters
  932. Name | Type | Description | Notes
  933. ------------- | ------------- | ------------- | -------------
  934. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  935. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  936. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  937. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  938. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  939. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  940. **owner** | **String**| owner of the repo |
  941. **repo** | **String**| name of the repo |
  942. ### Return type
  943. [**::models::Repository**](Repository.md)
  944. ### Authorization
  945. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  946. ### HTTP request headers
  947. - **Content-Type**: application/json, text/plain
  948. - **Accept**: application/json
  949. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  950. # **repo_get_all_commits**
  951. > Vec<::models::Commit> repo_get_all_commits(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  952. Get a list of all commits from a repository
  953. ### Required Parameters
  954. Name | Type | Description | Notes
  955. ------------- | ------------- | ------------- | -------------
  956. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  957. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  958. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  959. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  960. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  961. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  962. **owner** | **String**| owner of the repo |
  963. **repo** | **String**| name of the repo |
  964. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  965. ### Optional Parameters
  966. Optional parameters are passed through a map[string]interface{}.
  967. Name | Type | Description | Notes
  968. ------------- | ------------- | ------------- | -------------
  969. **owner** | **String**| owner of the repo |
  970. **repo** | **String**| name of the repo |
  971. **sha** | **String**| SHA or branch to start listing commits from (usually &#39;master&#39;) |
  972. **page** | **i32**| page number of requested commits |
  973. ### Return type
  974. [**Vec<::models::Commit>**](Commit.md)
  975. ### Authorization
  976. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  977. ### HTTP request headers
  978. - **Content-Type**: application/json, text/plain
  979. - **Accept**: application/json
  980. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  981. # **repo_get_archive**
  982. > repo_get_archive(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, archive)
  983. Get an archive of a repository
  984. ### Required Parameters
  985. Name | Type | Description | Notes
  986. ------------- | ------------- | ------------- | -------------
  987. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  988. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  989. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  990. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  991. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  992. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  993. **owner** | **String**| owner of the repo |
  994. **repo** | **String**| name of the repo |
  995. **archive** | **String**| archive to download, consisting of a git reference and archive |
  996. ### Return type
  997. (empty response body)
  998. ### Authorization
  999. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1000. ### HTTP request headers
  1001. - **Content-Type**: application/json, text/plain
  1002. - **Accept**: application/json
  1003. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1004. # **repo_get_branch**
  1005. > ::models::Branch repo_get_branch(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, branch)
  1006. Retrieve a specific branch from a repository, including its effective branch protection
  1007. ### Required Parameters
  1008. Name | Type | Description | Notes
  1009. ------------- | ------------- | ------------- | -------------
  1010. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1011. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1012. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1013. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1014. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1015. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1016. **owner** | **String**| owner of the repo |
  1017. **repo** | **String**| name of the repo |
  1018. **branch** | **String**| branch to get |
  1019. ### Return type
  1020. [**::models::Branch**](Branch.md)
  1021. ### Authorization
  1022. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1023. ### HTTP request headers
  1024. - **Content-Type**: application/json, text/plain
  1025. - **Accept**: application/json
  1026. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1027. # **repo_get_by_id**
  1028. > ::models::Repository repo_get_by_id(ctx, ctx, ctx, ctx, ctx, ctx, id)
  1029. Get a repository by id
  1030. ### Required Parameters
  1031. Name | Type | Description | Notes
  1032. ------------- | ------------- | ------------- | -------------
  1033. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1034. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1035. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1036. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1037. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1038. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1039. **id** | **i64**| id of the repo to get |
  1040. ### Return type
  1041. [**::models::Repository**](Repository.md)
  1042. ### Authorization
  1043. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1044. ### HTTP request headers
  1045. - **Content-Type**: application/json, text/plain
  1046. - **Accept**: application/json
  1047. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1048. # **repo_get_combined_status_by_ref**
  1049. > ::models::Status repo_get_combined_status_by_ref(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, _ref, optional)
  1050. Get a commit's combined status, by branch/tag/commit reference
  1051. ### Required Parameters
  1052. Name | Type | Description | Notes
  1053. ------------- | ------------- | ------------- | -------------
  1054. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1055. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1056. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1057. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1058. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1059. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1060. **owner** | **String**| owner of the repo |
  1061. **repo** | **String**| name of the repo |
  1062. **_ref** | **String**| name of branch/tag/commit |
  1063. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1064. ### Optional Parameters
  1065. Optional parameters are passed through a map[string]interface{}.
  1066. Name | Type | Description | Notes
  1067. ------------- | ------------- | ------------- | -------------
  1068. **owner** | **String**| owner of the repo |
  1069. **repo** | **String**| name of the repo |
  1070. **_ref** | **String**| name of branch/tag/commit |
  1071. **page** | **i32**| page number of results |
  1072. ### Return type
  1073. [**::models::Status**](Status.md)
  1074. ### Authorization
  1075. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1076. ### HTTP request headers
  1077. - **Content-Type**: application/json, text/plain
  1078. - **Accept**: application/json
  1079. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1080. # **repo_get_contents**
  1081. > ::models::ContentsResponse repo_get_contents(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, filepath, optional)
  1082. Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
  1083. ### Required Parameters
  1084. Name | Type | Description | Notes
  1085. ------------- | ------------- | ------------- | -------------
  1086. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1087. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1088. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1089. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1090. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1091. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1092. **owner** | **String**| owner of the repo |
  1093. **repo** | **String**| name of the repo |
  1094. **filepath** | **String**| path of the dir, file, symlink or submodule in the repo |
  1095. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1096. ### Optional Parameters
  1097. Optional parameters are passed through a map[string]interface{}.
  1098. Name | Type | Description | Notes
  1099. ------------- | ------------- | ------------- | -------------
  1100. **owner** | **String**| owner of the repo |
  1101. **repo** | **String**| name of the repo |
  1102. **filepath** | **String**| path of the dir, file, symlink or submodule in the repo |
  1103. **_ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
  1104. ### Return type
  1105. [**::models::ContentsResponse**](ContentsResponse.md)
  1106. ### Authorization
  1107. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1108. ### HTTP request headers
  1109. - **Content-Type**: application/json, text/plain
  1110. - **Accept**: application/json
  1111. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1112. # **repo_get_contents_list**
  1113. > Vec<::models::ContentsResponse> repo_get_contents_list(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  1114. Gets the metadata of all the entries of the root dir
  1115. ### Required Parameters
  1116. Name | Type | Description | Notes
  1117. ------------- | ------------- | ------------- | -------------
  1118. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1119. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1120. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1121. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1122. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1123. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1124. **owner** | **String**| owner of the repo |
  1125. **repo** | **String**| name of the repo |
  1126. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1127. ### Optional Parameters
  1128. Optional parameters are passed through a map[string]interface{}.
  1129. Name | Type | Description | Notes
  1130. ------------- | ------------- | ------------- | -------------
  1131. **owner** | **String**| owner of the repo |
  1132. **repo** | **String**| name of the repo |
  1133. **_ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
  1134. ### Return type
  1135. [**Vec<::models::ContentsResponse>**](ContentsResponse.md)
  1136. ### Authorization
  1137. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1138. ### HTTP request headers
  1139. - **Content-Type**: application/json, text/plain
  1140. - **Accept**: application/json
  1141. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1142. # **repo_get_editor_config**
  1143. > repo_get_editor_config(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, filepath)
  1144. Get the EditorConfig definitions of a file in a repository
  1145. ### Required Parameters
  1146. Name | Type | Description | Notes
  1147. ------------- | ------------- | ------------- | -------------
  1148. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1149. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1150. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1151. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1152. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1153. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1154. **owner** | **String**| owner of the repo |
  1155. **repo** | **String**| name of the repo |
  1156. **filepath** | **String**| filepath of file to get |
  1157. ### Return type
  1158. (empty response body)
  1159. ### Authorization
  1160. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1161. ### HTTP request headers
  1162. - **Content-Type**: application/json, text/plain
  1163. - **Accept**: application/json
  1164. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1165. # **repo_get_git_hook**
  1166. > ::models::GitHook repo_get_git_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  1167. Get a Git hook
  1168. ### Required Parameters
  1169. Name | Type | Description | Notes
  1170. ------------- | ------------- | ------------- | -------------
  1171. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1172. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1173. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1174. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1175. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1176. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1177. **owner** | **String**| owner of the repo |
  1178. **repo** | **String**| name of the repo |
  1179. **id** | **String**| id of the hook to get |
  1180. ### Return type
  1181. [**::models::GitHook**](GitHook.md)
  1182. ### Authorization
  1183. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1184. ### HTTP request headers
  1185. - **Content-Type**: application/json, text/plain
  1186. - **Accept**: application/json
  1187. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1188. # **repo_get_hook**
  1189. > ::models::Hook repo_get_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  1190. Get a hook
  1191. ### Required Parameters
  1192. Name | Type | Description | Notes
  1193. ------------- | ------------- | ------------- | -------------
  1194. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1195. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1196. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1197. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1198. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1199. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1200. **owner** | **String**| owner of the repo |
  1201. **repo** | **String**| name of the repo |
  1202. **id** | **i64**| id of the hook to get |
  1203. ### Return type
  1204. [**::models::Hook**](Hook.md)
  1205. ### Authorization
  1206. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1207. ### HTTP request headers
  1208. - **Content-Type**: application/json, text/plain
  1209. - **Accept**: application/json
  1210. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1211. # **repo_get_key**
  1212. > ::models::DeployKey repo_get_key(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  1213. Get a repository's key by id
  1214. ### Required Parameters
  1215. Name | Type | Description | Notes
  1216. ------------- | ------------- | ------------- | -------------
  1217. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1218. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1219. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1220. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1221. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1222. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1223. **owner** | **String**| owner of the repo |
  1224. **repo** | **String**| name of the repo |
  1225. **id** | **i64**| id of the key to get |
  1226. ### Return type
  1227. [**::models::DeployKey**](DeployKey.md)
  1228. ### Authorization
  1229. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1230. ### HTTP request headers
  1231. - **Content-Type**: application/json, text/plain
  1232. - **Accept**: application/json
  1233. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1234. # **repo_get_pull_request**
  1235. > ::models::PullRequest repo_get_pull_request(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, index)
  1236. Get a pull request
  1237. ### Required Parameters
  1238. Name | Type | Description | Notes
  1239. ------------- | ------------- | ------------- | -------------
  1240. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1241. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1242. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1243. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1244. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1245. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1246. **owner** | **String**| owner of the repo |
  1247. **repo** | **String**| name of the repo |
  1248. **index** | **i64**| index of the pull request to get |
  1249. ### Return type
  1250. [**::models::PullRequest**](PullRequest.md)
  1251. ### Authorization
  1252. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1253. ### HTTP request headers
  1254. - **Content-Type**: application/json, text/plain
  1255. - **Accept**: application/json
  1256. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1257. # **repo_get_raw_file**
  1258. > repo_get_raw_file(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, filepath)
  1259. Get a file from a repository
  1260. ### Required Parameters
  1261. Name | Type | Description | Notes
  1262. ------------- | ------------- | ------------- | -------------
  1263. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1264. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1265. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1266. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1267. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1268. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1269. **owner** | **String**| owner of the repo |
  1270. **repo** | **String**| name of the repo |
  1271. **filepath** | **String**| filepath of the file to get |
  1272. ### Return type
  1273. (empty response body)
  1274. ### Authorization
  1275. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1276. ### HTTP request headers
  1277. - **Content-Type**: application/json, text/plain
  1278. - **Accept**: application/json
  1279. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1280. # **repo_get_release**
  1281. > ::models::Release repo_get_release(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  1282. Get a release
  1283. ### Required Parameters
  1284. Name | Type | Description | Notes
  1285. ------------- | ------------- | ------------- | -------------
  1286. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1287. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1288. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1289. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1290. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1291. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1292. **owner** | **String**| owner of the repo |
  1293. **repo** | **String**| name of the repo |
  1294. **id** | **i64**| id of the release to get |
  1295. ### Return type
  1296. [**::models::Release**](Release.md)
  1297. ### Authorization
  1298. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1299. ### HTTP request headers
  1300. - **Content-Type**: application/json, text/plain
  1301. - **Accept**: application/json
  1302. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1303. # **repo_get_release_attachment**
  1304. > ::models::Attachment repo_get_release_attachment(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id, attachment_id)
  1305. Get a release attachment
  1306. ### Required Parameters
  1307. Name | Type | Description | Notes
  1308. ------------- | ------------- | ------------- | -------------
  1309. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1310. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1311. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1312. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1313. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1314. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1315. **owner** | **String**| owner of the repo |
  1316. **repo** | **String**| name of the repo |
  1317. **id** | **i64**| id of the release |
  1318. **attachment_id** | **i64**| id of the attachment to get |
  1319. ### Return type
  1320. [**::models::Attachment**](Attachment.md)
  1321. ### Authorization
  1322. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1323. ### HTTP request headers
  1324. - **Content-Type**: application/json, text/plain
  1325. - **Accept**: application/json
  1326. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1327. # **repo_get_single_commit**
  1328. > ::models::Commit repo_get_single_commit(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, sha)
  1329. Get a single commit from a repository
  1330. ### Required Parameters
  1331. Name | Type | Description | Notes
  1332. ------------- | ------------- | ------------- | -------------
  1333. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1334. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1335. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1336. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1337. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1338. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1339. **owner** | **String**| owner of the repo |
  1340. **repo** | **String**| name of the repo |
  1341. **sha** | **String**| the commit hash |
  1342. ### Return type
  1343. [**::models::Commit**](Commit.md)
  1344. ### Authorization
  1345. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1346. ### HTTP request headers
  1347. - **Content-Type**: application/json, text/plain
  1348. - **Accept**: application/json
  1349. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1350. # **repo_list_all_git_refs**
  1351. > Vec<::models::Reference> repo_list_all_git_refs(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1352. Get specified ref or filtered repository's refs
  1353. ### Required Parameters
  1354. Name | Type | Description | Notes
  1355. ------------- | ------------- | ------------- | -------------
  1356. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1357. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1358. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1359. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1360. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1361. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1362. **owner** | **String**| owner of the repo |
  1363. **repo** | **String**| name of the repo |
  1364. ### Return type
  1365. [**Vec<::models::Reference>**](Reference.md)
  1366. ### Authorization
  1367. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1368. ### HTTP request headers
  1369. - **Content-Type**: application/json, text/plain
  1370. - **Accept**: application/json
  1371. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1372. # **repo_list_branches**
  1373. > Vec<::models::Branch> repo_list_branches(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1374. List a repository's branches
  1375. ### Required Parameters
  1376. Name | Type | Description | Notes
  1377. ------------- | ------------- | ------------- | -------------
  1378. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1379. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1380. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1381. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1382. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1383. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1384. **owner** | **String**| owner of the repo |
  1385. **repo** | **String**| name of the repo |
  1386. ### Return type
  1387. [**Vec<::models::Branch>**](Branch.md)
  1388. ### Authorization
  1389. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1390. ### HTTP request headers
  1391. - **Content-Type**: application/json, text/plain
  1392. - **Accept**: application/json
  1393. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1394. # **repo_list_collaborators**
  1395. > Vec<::models::User> repo_list_collaborators(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1396. List a repository's collaborators
  1397. ### Required Parameters
  1398. Name | Type | Description | Notes
  1399. ------------- | ------------- | ------------- | -------------
  1400. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1401. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1402. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1403. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1404. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1405. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1406. **owner** | **String**| owner of the repo |
  1407. **repo** | **String**| name of the repo |
  1408. ### Return type
  1409. [**Vec<::models::User>**](User.md)
  1410. ### Authorization
  1411. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1412. ### HTTP request headers
  1413. - **Content-Type**: application/json, text/plain
  1414. - **Accept**: application/json
  1415. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1416. # **repo_list_git_hooks**
  1417. > Vec<::models::GitHook> repo_list_git_hooks(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1418. List the Git hooks in a repository
  1419. ### Required Parameters
  1420. Name | Type | Description | Notes
  1421. ------------- | ------------- | ------------- | -------------
  1422. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1423. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1424. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1425. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1426. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1427. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1428. **owner** | **String**| owner of the repo |
  1429. **repo** | **String**| name of the repo |
  1430. ### Return type
  1431. [**Vec<::models::GitHook>**](GitHook.md)
  1432. ### Authorization
  1433. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1434. ### HTTP request headers
  1435. - **Content-Type**: application/json, text/plain
  1436. - **Accept**: application/json
  1437. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1438. # **repo_list_git_refs**
  1439. > Vec<::models::Reference> repo_list_git_refs(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, _ref)
  1440. Get specified ref or filtered repository's refs
  1441. ### Required Parameters
  1442. Name | Type | Description | Notes
  1443. ------------- | ------------- | ------------- | -------------
  1444. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1445. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1446. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1447. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1448. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1449. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1450. **owner** | **String**| owner of the repo |
  1451. **repo** | **String**| name of the repo |
  1452. **_ref** | **String**| part or full name of the ref |
  1453. ### Return type
  1454. [**Vec<::models::Reference>**](Reference.md)
  1455. ### Authorization
  1456. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1457. ### HTTP request headers
  1458. - **Content-Type**: application/json, text/plain
  1459. - **Accept**: application/json
  1460. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1461. # **repo_list_hooks**
  1462. > Vec<::models::Hook> repo_list_hooks(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1463. List the hooks in a repository
  1464. ### Required Parameters
  1465. Name | Type | Description | Notes
  1466. ------------- | ------------- | ------------- | -------------
  1467. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1468. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1469. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1470. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1471. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1472. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1473. **owner** | **String**| owner of the repo |
  1474. **repo** | **String**| name of the repo |
  1475. ### Return type
  1476. [**Vec<::models::Hook>**](Hook.md)
  1477. ### Authorization
  1478. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1479. ### HTTP request headers
  1480. - **Content-Type**: application/json, text/plain
  1481. - **Accept**: application/json
  1482. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1483. # **repo_list_keys**
  1484. > Vec<::models::DeployKey> repo_list_keys(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  1485. List a repository's keys
  1486. ### Required Parameters
  1487. Name | Type | Description | Notes
  1488. ------------- | ------------- | ------------- | -------------
  1489. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1490. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1491. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1492. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1493. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1494. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1495. **owner** | **String**| owner of the repo |
  1496. **repo** | **String**| name of the repo |
  1497. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1498. ### Optional Parameters
  1499. Optional parameters are passed through a map[string]interface{}.
  1500. Name | Type | Description | Notes
  1501. ------------- | ------------- | ------------- | -------------
  1502. **owner** | **String**| owner of the repo |
  1503. **repo** | **String**| name of the repo |
  1504. **key_id** | **i32**| the key_id to search for |
  1505. **fingerprint** | **String**| fingerprint of the key |
  1506. ### Return type
  1507. [**Vec<::models::DeployKey>**](DeployKey.md)
  1508. ### Authorization
  1509. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1510. ### HTTP request headers
  1511. - **Content-Type**: application/json, text/plain
  1512. - **Accept**: application/json
  1513. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1514. # **repo_list_pull_requests**
  1515. > Vec<::models::PullRequest> repo_list_pull_requests(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  1516. List a repo's pull requests
  1517. ### Required Parameters
  1518. Name | Type | Description | Notes
  1519. ------------- | ------------- | ------------- | -------------
  1520. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1521. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1522. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1523. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1524. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1525. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1526. **owner** | **String**| owner of the repo |
  1527. **repo** | **String**| name of the repo |
  1528. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1529. ### Optional Parameters
  1530. Optional parameters are passed through a map[string]interface{}.
  1531. Name | Type | Description | Notes
  1532. ------------- | ------------- | ------------- | -------------
  1533. **owner** | **String**| owner of the repo |
  1534. **repo** | **String**| name of the repo |
  1535. **page** | **i32**| Page number |
  1536. **state** | **String**| State of pull request: open or closed (optional) |
  1537. **sort** | **String**| Type of sort |
  1538. **milestone** | **i64**| ID of the milestone |
  1539. **labels** | [**Vec&lt;i64&gt;**](i64.md)| Label IDs |
  1540. ### Return type
  1541. [**Vec<::models::PullRequest>**](PullRequest.md)
  1542. ### Authorization
  1543. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1544. ### HTTP request headers
  1545. - **Content-Type**: application/json, text/plain
  1546. - **Accept**: application/json
  1547. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1548. # **repo_list_release_attachments**
  1549. > Vec<::models::Attachment> repo_list_release_attachments(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  1550. List release's attachments
  1551. ### Required Parameters
  1552. Name | Type | Description | Notes
  1553. ------------- | ------------- | ------------- | -------------
  1554. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1555. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1556. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1557. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1558. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1559. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1560. **owner** | **String**| owner of the repo |
  1561. **repo** | **String**| name of the repo |
  1562. **id** | **i64**| id of the release |
  1563. ### Return type
  1564. [**Vec<::models::Attachment>**](Attachment.md)
  1565. ### Authorization
  1566. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1567. ### HTTP request headers
  1568. - **Content-Type**: application/json, text/plain
  1569. - **Accept**: application/json
  1570. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1571. # **repo_list_releases**
  1572. > Vec<::models::Release> repo_list_releases(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  1573. List a repo's releases
  1574. ### Required Parameters
  1575. Name | Type | Description | Notes
  1576. ------------- | ------------- | ------------- | -------------
  1577. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1578. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1579. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1580. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1581. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1582. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1583. **owner** | **String**| owner of the repo |
  1584. **repo** | **String**| name of the repo |
  1585. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1586. ### Optional Parameters
  1587. Optional parameters are passed through a map[string]interface{}.
  1588. Name | Type | Description | Notes
  1589. ------------- | ------------- | ------------- | -------------
  1590. **owner** | **String**| owner of the repo |
  1591. **repo** | **String**| name of the repo |
  1592. **page** | **i32**| page wants to load |
  1593. **per_page** | **i32**| items count every page wants to load |
  1594. ### Return type
  1595. [**Vec<::models::Release>**](Release.md)
  1596. ### Authorization
  1597. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1598. ### HTTP request headers
  1599. - **Content-Type**: application/json, text/plain
  1600. - **Accept**: application/json
  1601. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1602. # **repo_list_stargazers**
  1603. > Vec<::models::User> repo_list_stargazers(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1604. List a repo's stargazers
  1605. ### Required Parameters
  1606. Name | Type | Description | Notes
  1607. ------------- | ------------- | ------------- | -------------
  1608. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1609. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1610. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1611. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1612. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1613. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1614. **owner** | **String**| owner of the repo |
  1615. **repo** | **String**| name of the repo |
  1616. ### Return type
  1617. [**Vec<::models::User>**](User.md)
  1618. ### Authorization
  1619. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1620. ### HTTP request headers
  1621. - **Content-Type**: application/json, text/plain
  1622. - **Accept**: application/json
  1623. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1624. # **repo_list_statuses**
  1625. > Vec<::models::Status> repo_list_statuses(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, sha, optional)
  1626. Get a commit's statuses
  1627. ### Required Parameters
  1628. Name | Type | Description | Notes
  1629. ------------- | ------------- | ------------- | -------------
  1630. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1631. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1632. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1633. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1634. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1635. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1636. **owner** | **String**| owner of the repo |
  1637. **repo** | **String**| name of the repo |
  1638. **sha** | **String**| sha of the commit |
  1639. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1640. ### Optional Parameters
  1641. Optional parameters are passed through a map[string]interface{}.
  1642. Name | Type | Description | Notes
  1643. ------------- | ------------- | ------------- | -------------
  1644. **owner** | **String**| owner of the repo |
  1645. **repo** | **String**| name of the repo |
  1646. **sha** | **String**| sha of the commit |
  1647. **page** | **i32**| page number of results |
  1648. **sort** | **String**| type of sort |
  1649. **state** | **String**| type of state |
  1650. ### Return type
  1651. [**Vec<::models::Status>**](Status.md)
  1652. ### Authorization
  1653. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1654. ### HTTP request headers
  1655. - **Content-Type**: application/json, text/plain
  1656. - **Accept**: application/json
  1657. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1658. # **repo_list_subscribers**
  1659. > Vec<::models::User> repo_list_subscribers(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1660. List a repo's watchers
  1661. ### Required Parameters
  1662. Name | Type | Description | Notes
  1663. ------------- | ------------- | ------------- | -------------
  1664. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1665. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1666. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1667. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1668. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1669. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1670. **owner** | **String**| owner of the repo |
  1671. **repo** | **String**| name of the repo |
  1672. ### Return type
  1673. [**Vec<::models::User>**](User.md)
  1674. ### Authorization
  1675. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1676. ### HTTP request headers
  1677. - **Content-Type**: application/json, text/plain
  1678. - **Accept**: application/json
  1679. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1680. # **repo_list_tags**
  1681. > Vec<::models::Tag> repo_list_tags(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1682. List a repository's tags
  1683. ### Required Parameters
  1684. Name | Type | Description | Notes
  1685. ------------- | ------------- | ------------- | -------------
  1686. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1687. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1688. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1689. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1690. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1691. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1692. **owner** | **String**| owner of the repo |
  1693. **repo** | **String**| name of the repo |
  1694. ### Return type
  1695. [**Vec<::models::Tag>**](Tag.md)
  1696. ### Authorization
  1697. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1698. ### HTTP request headers
  1699. - **Content-Type**: application/json, text/plain
  1700. - **Accept**: application/json
  1701. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1702. # **repo_list_topics**
  1703. > ::models::TopicName repo_list_topics(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1704. Get list of topics that a repository has
  1705. ### Required Parameters
  1706. Name | Type | Description | Notes
  1707. ------------- | ------------- | ------------- | -------------
  1708. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1709. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1710. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1711. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1712. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1713. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1714. **owner** | **String**| owner of the repo |
  1715. **repo** | **String**| name of the repo |
  1716. ### Return type
  1717. [**::models::TopicName**](TopicName.md)
  1718. ### Authorization
  1719. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1720. ### HTTP request headers
  1721. - **Content-Type**: application/json, text/plain
  1722. - **Accept**: application/json
  1723. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1724. # **repo_merge_pull_request**
  1725. > repo_merge_pull_request(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, index, optional)
  1726. Merge a pull request
  1727. ### Required Parameters
  1728. Name | Type | Description | Notes
  1729. ------------- | ------------- | ------------- | -------------
  1730. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1731. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1732. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1733. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1734. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1735. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1736. **owner** | **String**| owner of the repo |
  1737. **repo** | **String**| name of the repo |
  1738. **index** | **i64**| index of the pull request to merge |
  1739. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1740. ### Optional Parameters
  1741. Optional parameters are passed through a map[string]interface{}.
  1742. Name | Type | Description | Notes
  1743. ------------- | ------------- | ------------- | -------------
  1744. **owner** | **String**| owner of the repo |
  1745. **repo** | **String**| name of the repo |
  1746. **index** | **i64**| index of the pull request to merge |
  1747. **body** | [**MergePullRequestOption**](MergePullRequestOption.md)| |
  1748. ### Return type
  1749. (empty response body)
  1750. ### Authorization
  1751. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1752. ### HTTP request headers
  1753. - **Content-Type**: application/json, text/plain
  1754. - **Accept**: application/json
  1755. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1756. # **repo_migrate**
  1757. > ::models::Repository repo_migrate(ctx, ctx, ctx, ctx, ctx, ctx, optional)
  1758. Migrate a remote git repository
  1759. ### Required Parameters
  1760. Name | Type | Description | Notes
  1761. ------------- | ------------- | ------------- | -------------
  1762. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1763. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1764. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1765. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1766. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1767. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1768. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1769. ### Optional Parameters
  1770. Optional parameters are passed through a map[string]interface{}.
  1771. Name | Type | Description | Notes
  1772. ------------- | ------------- | ------------- | -------------
  1773. **body** | [**MigrateRepoForm**](MigrateRepoForm.md)| |
  1774. ### Return type
  1775. [**::models::Repository**](Repository.md)
  1776. ### Authorization
  1777. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1778. ### HTTP request headers
  1779. - **Content-Type**: application/json
  1780. - **Accept**: application/json
  1781. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1782. # **repo_mirror_sync**
  1783. > repo_mirror_sync(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1784. Sync a mirrored repository
  1785. ### Required Parameters
  1786. Name | Type | Description | Notes
  1787. ------------- | ------------- | ------------- | -------------
  1788. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1789. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1790. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1791. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1792. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1793. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1794. **owner** | **String**| owner of the repo to sync |
  1795. **repo** | **String**| name of the repo to sync |
  1796. ### Return type
  1797. (empty response body)
  1798. ### Authorization
  1799. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1800. ### HTTP request headers
  1801. - **Content-Type**: application/json, text/plain
  1802. - **Accept**: application/json
  1803. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1804. # **repo_pull_request_is_merged**
  1805. > repo_pull_request_is_merged(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, index)
  1806. Check if a pull request has been merged
  1807. ### Required Parameters
  1808. Name | Type | Description | Notes
  1809. ------------- | ------------- | ------------- | -------------
  1810. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1811. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1812. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1813. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1814. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1815. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1816. **owner** | **String**| owner of the repo |
  1817. **repo** | **String**| name of the repo |
  1818. **index** | **i64**| index of the pull request |
  1819. ### Return type
  1820. (empty response body)
  1821. ### Authorization
  1822. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1823. ### HTTP request headers
  1824. - **Content-Type**: application/json, text/plain
  1825. - **Accept**: application/json
  1826. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1827. # **repo_search**
  1828. > ::models::SearchResults repo_search(ctx, ctx, ctx, ctx, ctx, ctx, optional)
  1829. Search for repositories
  1830. ### Required Parameters
  1831. Name | Type | Description | Notes
  1832. ------------- | ------------- | ------------- | -------------
  1833. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1834. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1835. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1836. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1837. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1838. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1839. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1840. ### Optional Parameters
  1841. Optional parameters are passed through a map[string]interface{}.
  1842. Name | Type | Description | Notes
  1843. ------------- | ------------- | ------------- | -------------
  1844. **q** | **String**| keyword |
  1845. **topic** | **bool**| Limit search to repositories with keyword as topic |
  1846. **include_desc** | **bool**| include search of keyword within repository description |
  1847. **uid** | **i64**| search only for repos that the user with the given id owns or contributes to |
  1848. **priority_owner_id** | **i64**| repo owner to prioritize in the results |
  1849. **starred_by** | **i64**| search only for repos that the user with the given id has starred |
  1850. **private** | **bool**| include private repositories this user has access to (defaults to true) |
  1851. **template** | **bool**| include template repositories this user has access to (defaults to true) |
  1852. **page** | **i32**| page number of results to return (1-based) |
  1853. **limit** | **i32**| page size of results, maximum page size is 50 |
  1854. **mode** | **String**| type of repository to search for. Supported values are \&quot;fork\&quot;, \&quot;source\&quot;, \&quot;mirror\&quot; and \&quot;collaborative\&quot; |
  1855. **exclusive** | **bool**| if &#x60;uid&#x60; is given, search only for repos that the user owns |
  1856. **sort** | **String**| sort repos by attribute. Supported values are \&quot;alpha\&quot;, \&quot;created\&quot;, \&quot;updated\&quot;, \&quot;size\&quot;, and \&quot;id\&quot;. Default is \&quot;alpha\&quot; |
  1857. **order** | **String**| sort order, either \&quot;asc\&quot; (ascending) or \&quot;desc\&quot; (descending). Default is \&quot;asc\&quot;, ignored if \&quot;sort\&quot; is not specified. |
  1858. ### Return type
  1859. [**::models::SearchResults**](SearchResults.md)
  1860. ### Authorization
  1861. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1862. ### HTTP request headers
  1863. - **Content-Type**: application/json, text/plain
  1864. - **Accept**: application/json
  1865. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1866. # **repo_signing_key**
  1867. > String repo_signing_key(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1868. Get signing-key.gpg for given repository
  1869. ### Required Parameters
  1870. Name | Type | Description | Notes
  1871. ------------- | ------------- | ------------- | -------------
  1872. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1873. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1874. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1875. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1876. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1877. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1878. **owner** | **String**| owner of the repo |
  1879. **repo** | **String**| name of the repo |
  1880. ### Return type
  1881. **String**
  1882. ### Authorization
  1883. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1884. ### HTTP request headers
  1885. - **Content-Type**: application/json, text/plain
  1886. - **Accept**: text/plain
  1887. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1888. # **repo_test_hook**
  1889. > repo_test_hook(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, id)
  1890. Test a push webhook
  1891. ### Required Parameters
  1892. Name | Type | Description | Notes
  1893. ------------- | ------------- | ------------- | -------------
  1894. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1895. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1896. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1897. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1898. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1899. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1900. **owner** | **String**| owner of the repo |
  1901. **repo** | **String**| name of the repo |
  1902. **id** | **i64**| id of the hook to test |
  1903. ### Return type
  1904. (empty response body)
  1905. ### Authorization
  1906. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1907. ### HTTP request headers
  1908. - **Content-Type**: application/json, text/plain
  1909. - **Accept**: application/json
  1910. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1911. # **repo_tracked_times**
  1912. > Vec<::models::TrackedTime> repo_tracked_times(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  1913. List a repo's tracked times
  1914. ### Required Parameters
  1915. Name | Type | Description | Notes
  1916. ------------- | ------------- | ------------- | -------------
  1917. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1918. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1919. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1920. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1921. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1922. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1923. **owner** | **String**| owner of the repo |
  1924. **repo** | **String**| name of the repo |
  1925. ### Return type
  1926. [**Vec<::models::TrackedTime>**](TrackedTime.md)
  1927. ### Authorization
  1928. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1929. ### HTTP request headers
  1930. - **Content-Type**: application/json, text/plain
  1931. - **Accept**: application/json
  1932. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1933. # **repo_update_file**
  1934. > ::models::FileResponse repo_update_file(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, filepath, body)
  1935. Update a file in a repository
  1936. ### Required Parameters
  1937. Name | Type | Description | Notes
  1938. ------------- | ------------- | ------------- | -------------
  1939. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1940. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1941. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1942. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1943. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1944. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1945. **owner** | **String**| owner of the repo |
  1946. **repo** | **String**| name of the repo |
  1947. **filepath** | **String**| path of the file to update |
  1948. **body** | [**UpdateFileOptions**](UpdateFileOptions.md)| |
  1949. ### Return type
  1950. [**::models::FileResponse**](FileResponse.md)
  1951. ### Authorization
  1952. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1953. ### HTTP request headers
  1954. - **Content-Type**: application/json
  1955. - **Accept**: application/json
  1956. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1957. # **repo_update_topics**
  1958. > repo_update_topics(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo, optional)
  1959. Replace list of topics for a repository
  1960. ### Required Parameters
  1961. Name | Type | Description | Notes
  1962. ------------- | ------------- | ------------- | -------------
  1963. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1964. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1965. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1966. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1967. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1968. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1969. **owner** | **String**| owner of the repo |
  1970. **repo** | **String**| name of the repo |
  1971. **optional** | **map[string]interface{}** | optional parameters | nil if no parameters
  1972. ### Optional Parameters
  1973. Optional parameters are passed through a map[string]interface{}.
  1974. Name | Type | Description | Notes
  1975. ------------- | ------------- | ------------- | -------------
  1976. **owner** | **String**| owner of the repo |
  1977. **repo** | **String**| name of the repo |
  1978. **body** | [**RepoTopicOptions**](RepoTopicOptions.md)| |
  1979. ### Return type
  1980. (empty response body)
  1981. ### Authorization
  1982. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  1983. ### HTTP request headers
  1984. - **Content-Type**: application/json, text/plain
  1985. - **Accept**: application/json
  1986. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  1987. # **topic_search**
  1988. > Vec<::models::TopicResponse> topic_search(ctx, ctx, ctx, ctx, ctx, ctx, q)
  1989. search topics via keyword
  1990. ### Required Parameters
  1991. Name | Type | Description | Notes
  1992. ------------- | ------------- | ------------- | -------------
  1993. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1994. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1995. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1996. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1997. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1998. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  1999. **q** | **String**| keywords to search |
  2000. ### Return type
  2001. [**Vec<::models::TopicResponse>**](TopicResponse.md)
  2002. ### Authorization
  2003. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  2004. ### HTTP request headers
  2005. - **Content-Type**: application/json, text/plain
  2006. - **Accept**: application/json
  2007. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  2008. # **user_current_check_subscription**
  2009. > ::models::WatchInfo user_current_check_subscription(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  2010. Check if the current user is watching a repo
  2011. ### Required Parameters
  2012. Name | Type | Description | Notes
  2013. ------------- | ------------- | ------------- | -------------
  2014. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2015. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2016. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2017. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2018. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2019. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2020. **owner** | **String**| owner of the repo |
  2021. **repo** | **String**| name of the repo |
  2022. ### Return type
  2023. [**::models::WatchInfo**](WatchInfo.md)
  2024. ### Authorization
  2025. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  2026. ### HTTP request headers
  2027. - **Content-Type**: application/json, text/plain
  2028. - **Accept**: application/json, text/html
  2029. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  2030. # **user_current_delete_subscription**
  2031. > user_current_delete_subscription(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  2032. Unwatch a repo
  2033. ### Required Parameters
  2034. Name | Type | Description | Notes
  2035. ------------- | ------------- | ------------- | -------------
  2036. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2037. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2038. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2039. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2040. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2041. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2042. **owner** | **String**| owner of the repo |
  2043. **repo** | **String**| name of the repo |
  2044. ### Return type
  2045. (empty response body)
  2046. ### Authorization
  2047. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  2048. ### HTTP request headers
  2049. - **Content-Type**: application/json, text/plain
  2050. - **Accept**: application/json, text/html
  2051. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
  2052. # **user_current_put_subscription**
  2053. > ::models::WatchInfo user_current_put_subscription(ctx, ctx, ctx, ctx, ctx, ctx, owner, repo)
  2054. Watch a repo
  2055. ### Required Parameters
  2056. Name | Type | Description | Notes
  2057. ------------- | ------------- | ------------- | -------------
  2058. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2059. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2060. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2061. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2062. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2063. **ctx** | **context.Context** | context containing the authentication | nil if no authentication
  2064. **owner** | **String**| owner of the repo |
  2065. **repo** | **String**| name of the repo |
  2066. ### Return type
  2067. [**::models::WatchInfo**](WatchInfo.md)
  2068. ### Authorization
  2069. [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)
  2070. ### HTTP request headers
  2071. - **Content-Type**: application/json, text/plain
  2072. - **Accept**: application/json, text/html
  2073. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)