162 KiB
\RepositoryApi
All URIs are relative to /api/v1
Method | HTTP request | Description |
---|---|---|
accept_repo_transfer | POST /repos/{owner}/{repo}/transfer/accept | Accept a repo transfer |
create_current_user_repo | POST /user/repos | Create a repository |
create_fork | POST /repos/{owner}/{repo}/forks | Fork a repository |
generate_repo | POST /repos/{template_owner}/{template_repo}/generate | Create a repository using a template |
get_annotated_tag | GET /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags) |
get_blob | GET /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository. |
get_tree | GET /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository. |
list_forks | GET /repos/{owner}/{repo}/forks | List a repository's forks |
reject_repo_transfer | POST /repos/{owner}/{repo}/transfer/reject | Reject a repo transfer |
repo_add_collaborator | PUT /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository |
repo_add_team | PUT /repos/{owner}/{repo}/teams/{team} | Add a team to a repository |
repo_add_topic | PUT /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository |
repo_apply_diff_patch | POST /repos/{owner}/{repo}/diffpatch | Apply diff patch to repository |
repo_cancel_scheduled_auto_merge | DELETE /repos/{owner}/{repo}/pulls/{index}/merge | Cancel the scheduled auto merge for the given pull request |
repo_check_collaborator | GET /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository |
repo_check_team | GET /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository |
repo_create_branch | POST /repos/{owner}/{repo}/branches | Create a branch |
repo_create_branch_protection | POST /repos/{owner}/{repo}/branch_protections | Create a branch protections for a repository |
repo_create_file | POST /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository |
repo_create_hook | POST /repos/{owner}/{repo}/hooks | Create a hook |
repo_create_key | POST /repos/{owner}/{repo}/keys | Add a key to a repository |
repo_create_pull_request | POST /repos/{owner}/{repo}/pulls | Create a pull request |
repo_create_pull_review | POST /repos/{owner}/{repo}/pulls/{index}/reviews | Create a review to an pull request |
repo_create_pull_review_requests | POST /repos/{owner}/{repo}/pulls/{index}/requested_reviewers | create review requests for a pull request |
repo_create_release | POST /repos/{owner}/{repo}/releases | Create a release |
repo_create_release_attachment | POST /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment |
repo_create_status | POST /repos/{owner}/{repo}/statuses/{sha} | Create a commit status |
repo_create_tag | POST /repos/{owner}/{repo}/tags | Create a new git tag in a repository |
repo_create_wiki_page | POST /repos/{owner}/{repo}/wiki/new | Create a wiki page |
repo_delete | DELETE /repos/{owner}/{repo} | Delete a repository |
repo_delete_branch | DELETE /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository |
repo_delete_branch_protection | DELETE /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository |
repo_delete_collaborator | DELETE /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository |
repo_delete_file | DELETE /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository |
repo_delete_git_hook | DELETE /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository |
repo_delete_hook | DELETE /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository |
repo_delete_key | DELETE /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository |
repo_delete_pull_review | DELETE /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Delete a specific review from a pull request |
repo_delete_pull_review_requests | DELETE /repos/{owner}/{repo}/pulls/{index}/requested_reviewers | cancel review requests for a pull request |
repo_delete_release | DELETE /repos/{owner}/{repo}/releases/{id} | Delete a release |
repo_delete_release_attachment | DELETE /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment |
repo_delete_release_by_tag | DELETE /repos/{owner}/{repo}/releases/tags/{tag} | Delete a release by tag name |
repo_delete_tag | DELETE /repos/{owner}/{repo}/tags/{tag} | Delete a repository's tag by name |
repo_delete_team | DELETE /repos/{owner}/{repo}/teams/{team} | Delete a team from a repository |
repo_delete_topic | DELETE /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository |
repo_delete_wiki_page | DELETE /repos/{owner}/{repo}/wiki/page/{pageName} | Delete a wiki page |
repo_dismiss_pull_review | POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals | Dismiss a review for a pull request |
repo_download_commit_diff_or_patch | GET /repos/{owner}/{repo}/git/commits/{sha}.{diffType} | Get a commit's diff or patch |
repo_download_pull_diff_or_patch | GET /repos/{owner}/{repo}/pulls/{index}.{diffType} | Get a pull request diff or patch |
repo_edit | PATCH /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed. |
repo_edit_branch_protection | PATCH /repos/{owner}/{repo}/branch_protections/{name} | Edit a branch protections for a repository. Only fields that are set will be changed |
repo_edit_git_hook | PATCH /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository |
repo_edit_hook | PATCH /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository |
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. |
repo_edit_release | PATCH /repos/{owner}/{repo}/releases/{id} | Update a release |
repo_edit_release_attachment | PATCH /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment |
repo_edit_wiki_page | PATCH /repos/{owner}/{repo}/wiki/page/{pageName} | Edit a wiki page |
repo_get | GET /repos/{owner}/{repo} | Get a repository |
repo_get_all_commits | GET /repos/{owner}/{repo}/commits | Get a list of all commits from a repository |
repo_get_archive | GET /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository |
repo_get_assignees | GET /repos/{owner}/{repo}/assignees | Return all users that have write access and can be assigned to issues |
repo_get_branch | GET /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection |
repo_get_branch_protection | GET /repos/{owner}/{repo}/branch_protections/{name} | Get a specific branch protection for the repository |
repo_get_by_id | GET /repositories/{id} | Get a repository by id |
repo_get_combined_status_by_ref | GET /repos/{owner}/{repo}/commits/{ref}/status | Get a commit's combined status, by branch/tag/commit reference |
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 |
repo_get_contents_list | GET /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir |
repo_get_editor_config | GET /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository |
repo_get_git_hook | GET /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook |
repo_get_hook | GET /repos/{owner}/{repo}/hooks/{id} | Get a hook |
repo_get_issue_templates | GET /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository |
repo_get_key | GET /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id |
repo_get_languages | GET /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written |
repo_get_note | GET /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository |
repo_get_pull_request | GET /repos/{owner}/{repo}/pulls/{index} | Get a pull request |
repo_get_pull_request_commits | GET /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request |
repo_get_pull_review | GET /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request |
repo_get_pull_review_comments | GET /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request |
repo_get_raw_file | GET /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository |
repo_get_raw_file_or_lfs | GET /repos/{owner}/{repo}/media/{filepath} | Get a file or it's LFS object from a repository |
repo_get_release | GET /repos/{owner}/{repo}/releases/{id} | Get a release |
repo_get_release_attachment | GET /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment |
repo_get_release_by_tag | GET /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name |
repo_get_repo_permissions | GET /repos/{owner}/{repo}/collaborators/{collaborator}/permission | Get repository permissions for a user |
repo_get_reviewers | GET /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo |
repo_get_single_commit | GET /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository |
repo_get_tag | GET /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name |
repo_get_wiki_page | GET /repos/{owner}/{repo}/wiki/page/{pageName} | Get a wiki page |
repo_get_wiki_page_revisions | GET /repos/{owner}/{repo}/wiki/revisions/{pageName} | Get revisions of a wiki page |
repo_get_wiki_pages | GET /repos/{owner}/{repo}/wiki/pages | Get all wiki pages |
repo_list_all_git_refs | GET /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs |
repo_list_branch_protection | GET /repos/{owner}/{repo}/branch_protections | List branch protections for a repository |
repo_list_branches | GET /repos/{owner}/{repo}/branches | List a repository's branches |
repo_list_collaborators | GET /repos/{owner}/{repo}/collaborators | List a repository's collaborators |
repo_list_git_hooks | GET /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository |
repo_list_git_refs | GET /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository's refs |
repo_list_hooks | GET /repos/{owner}/{repo}/hooks | List the hooks in a repository |
repo_list_keys | GET /repos/{owner}/{repo}/keys | List a repository's keys |
repo_list_pull_requests | GET /repos/{owner}/{repo}/pulls | List a repo's pull requests |
repo_list_pull_reviews | GET /repos/{owner}/{repo}/pulls/{index}/reviews | List all reviews for a pull request |
repo_list_release_attachments | GET /repos/{owner}/{repo}/releases/{id}/assets | List release's attachments |
repo_list_releases | GET /repos/{owner}/{repo}/releases | List a repo's releases |
repo_list_stargazers | GET /repos/{owner}/{repo}/stargazers | List a repo's stargazers |
repo_list_statuses | GET /repos/{owner}/{repo}/statuses/{sha} | Get a commit's statuses |
repo_list_statuses_by_ref | GET /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit's statuses, by branch/tag/commit reference |
repo_list_subscribers | GET /repos/{owner}/{repo}/subscribers | List a repo's watchers |
repo_list_tags | GET /repos/{owner}/{repo}/tags | List a repository's tags |
repo_list_teams | GET /repos/{owner}/{repo}/teams | List a repository's teams |
repo_list_topics | GET /repos/{owner}/{repo}/topics | Get list of topics that a repository has |
repo_merge_pull_request | POST /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request |
repo_migrate | POST /repos/migrate | Migrate a remote git repository |
repo_mirror_sync | POST /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository |
repo_pull_request_is_merged | GET /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged |
repo_search | GET /repos/search | Search for repositories |
repo_signing_key | GET /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository |
repo_submit_pull_review | POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Submit a pending review to an pull request |
repo_test_hook | POST /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook |
repo_tracked_times | GET /repos/{owner}/{repo}/times | List a repo's tracked times |
repo_transfer | POST /repos/{owner}/{repo}/transfer | Transfer a repo ownership |
repo_un_dismiss_pull_review | POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals | Cancel to dismiss a review for a pull request |
repo_update_file | PUT /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository |
repo_update_pull_request | POST /repos/{owner}/{repo}/pulls/{index}/update | Merge PR's baseBranch into headBranch |
repo_update_topics | PUT /repos/{owner}/{repo}/topics | Replace list of topics for a repository |
topic_search | GET /topics/search | search topics via keyword |
user_current_check_subscription | GET /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo |
user_current_delete_subscription | DELETE /repos/{owner}/{repo}/subscription | Unwatch a repo |
user_current_put_subscription | PUT /repos/{owner}/{repo}/subscription | Watch a repo |
user_tracked_times | GET /repos/{owner}/{repo}/times/{user} | List a user's tracked times in a repo |
accept_repo_transfer
crate::models::Repository accept_repo_transfer(owner, repo) Accept a repo transfer
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo to transfer | [required] | |
repo | String | name of the repo to transfer | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create_current_user_repo
crate::models::Repository create_current_user_repo(body) Create a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
body | Option<CreateRepoOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create_fork
crate::models::Repository create_fork(owner, repo, body) Fork a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo to fork | [required] | |
repo | String | name of the repo to fork | [required] | |
body | Option<CreateForkOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generate_repo
crate::models::Repository generate_repo(template_owner, template_repo, body) Create a repository using a template
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
template_owner | String | name of the template repository owner | [required] | |
template_repo | String | name of the template repository | [required] | |
body | Option<GenerateRepoOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_annotated_tag
crate::models::AnnotatedTag get_annotated_tag(owner, repo, sha) Gets the tag object of an annotated tag (not lightweight tags)
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_blob
crate::models::GitBlobResponse get_blob(owner, repo, sha) Gets the blob of a repository.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | sha of the commit | [required] |
Return type
crate::models::GitBlobResponse
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_tree
crate::models::GitTreeResponse get_tree(owner, repo, sha, recursive, page, per_page) Gets the tree of a repository.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | sha of the commit | [required] | |
recursive | Option<bool> | show all directories and files | ||
page | Option<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 | ||
per_page | Option<i32> | number of items per page |
Return type
crate::models::GitTreeResponse
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_forks
Veccrate::models::Repository list_forks(owner, repo, page, limit) List a repository's forks
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
reject_repo_transfer
crate::models::Repository reject_repo_transfer(owner, repo) Reject a repo transfer
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo to transfer | [required] | |
repo | String | name of the repo to transfer | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_add_collaborator
repo_add_collaborator(owner, repo, collaborator, body) Add a collaborator to a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
collaborator | String | username of the collaborator to add | [required] | |
body | Option<AddCollaboratorOption> |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_add_team
repo_add_team(owner, repo, team) Add a team to a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
team | String | team name | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_add_topic
repo_add_topic(owner, repo, topic) Add a topic to a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
topic | String | name of the topic to add | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_apply_diff_patch
crate::models::FileResponse repo_apply_diff_patch(owner, repo, body) Apply diff patch to repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | UpdateFileOptions | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_cancel_scheduled_auto_merge
repo_cancel_scheduled_auto_merge(owner, repo, index) Cancel the scheduled auto merge for the given pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request to merge | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_check_collaborator
repo_check_collaborator(owner, repo, collaborator) Check if a user is a collaborator of a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
collaborator | String | username of the collaborator | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_check_team
crate::models::Team repo_check_team(owner, repo, team) Check if a team is assigned to a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
team | String | team name | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_branch
crate::models::Branch repo_create_branch(owner, repo, body) Create a branch
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreateBranchRepoOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_branch_protection
crate::models::BranchProtection repo_create_branch_protection(owner, repo, body) Create a branch protections for a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreateBranchProtectionOption> |
Return type
crate::models::BranchProtection
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_file
crate::models::FileResponse repo_create_file(owner, repo, filepath, body) Create a file in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
filepath | String | path of the file to create | [required] | |
body | CreateFileOptions | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_hook
crate::models::Hook repo_create_hook(owner, repo, body) Create a hook
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreateHookOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_key
crate::models::DeployKey repo_create_key(owner, repo, body) Add a key to a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreateKeyOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_pull_request
crate::models::PullRequest repo_create_pull_request(owner, repo, body) Create a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreatePullRequestOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_pull_review
crate::models::PullReview repo_create_pull_review(owner, repo, index, body) Create a review to an pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
body | CreatePullReviewOptions | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_pull_review_requests
Veccrate::models::PullReview repo_create_pull_review_requests(owner, repo, index, body) create review requests for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
body | PullReviewRequestOptions | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_release
crate::models::Release repo_create_release(owner, repo, body) Create a release
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreateReleaseOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_release_attachment
crate::models::Attachment repo_create_release_attachment(owner, repo, id, attachment, name) Create a release attachment
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release | [required] | |
attachment | std::path::PathBuf | attachment to upload | [required] | |
name | Option<String> | name of the attachment |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_status
crate::models::CommitStatus repo_create_status(owner, repo, sha, body) Create a commit status
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | sha of the commit | [required] | |
body | Option<CreateStatusOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_tag
crate::models::Tag repo_create_tag(owner, repo, body) Create a new git tag in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreateTagOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_create_wiki_page
crate::models::WikiPage repo_create_wiki_page(owner, repo, body) Create a wiki page
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<CreateWikiPageOptions> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete
repo_delete(owner, repo) Delete a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo to delete | [required] | |
repo | String | name of the repo to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_branch
repo_delete_branch(owner, repo, branch) Delete a specific branch from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
branch | String | branch to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_branch_protection
repo_delete_branch_protection(owner, repo, name) Delete a specific branch protection for the repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
name | String | name of protected branch | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_collaborator
repo_delete_collaborator(owner, repo, collaborator) Delete a collaborator from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
collaborator | String | username of the collaborator to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_file
crate::models::FileDeleteResponse repo_delete_file(owner, repo, filepath, body) Delete a file in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
filepath | String | path of the file to delete | [required] | |
body | DeleteFileOptions | [required] |
Return type
crate::models::FileDeleteResponse
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_git_hook
repo_delete_git_hook(owner, repo, id) Delete a Git hook in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | String | id of the hook to get | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_hook
repo_delete_hook(owner, repo, id) Delete a hook in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the hook to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_key
repo_delete_key(owner, repo, id) Delete a key from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the key to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_pull_review
repo_delete_pull_review(owner, repo, index, id) Delete a specific review from a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
id | i64 | id of the review | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_pull_review_requests
repo_delete_pull_review_requests(owner, repo, index, body) cancel review requests for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
body | PullReviewRequestOptions | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_release
repo_delete_release(owner, repo, id) Delete a release
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_release_attachment
repo_delete_release_attachment(owner, repo, id, attachment_id) Delete a release attachment
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release | [required] | |
attachment_id | i64 | id of the attachment to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_release_by_tag
repo_delete_release_by_tag(owner, repo, tag) Delete a release by tag name
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
tag | String | tag name of the release to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_tag
repo_delete_tag(owner, repo, tag) Delete a repository's tag by name
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
tag | String | name of tag to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_team
repo_delete_team(owner, repo, team) Delete a team from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
team | String | team name | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_topic
repo_delete_topic(owner, repo, topic) Delete a topic from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
topic | String | name of the topic to delete | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_delete_wiki_page
repo_delete_wiki_page(owner, repo, page_name) Delete a wiki page
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page_name | String | name of the page | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_dismiss_pull_review
crate::models::PullReview repo_dismiss_pull_review(owner, repo, index, id, body) Dismiss a review for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
id | i64 | id of the review | [required] | |
body | DismissPullReviewOptions | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_download_commit_diff_or_patch
String repo_download_commit_diff_or_patch(owner, repo, sha, diff_type) Get a commit's diff or patch
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | SHA of the commit to get | [required] | |
diff_type | String | whether the output is diff or patch | [required] |
Return type
String
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_download_pull_diff_or_patch
String repo_download_pull_diff_or_patch(owner, repo, index, diff_type, binary) Get a pull request diff or patch
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request to get | [required] | |
diff_type | String | whether the output is diff or patch | [required] | |
binary | Option<bool> | whether to include binary file changes. if true, the diff is applicable with git apply |
Return type
String
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit
crate::models::Repository repo_edit(owner, repo, body) Edit a repository's properties. Only fields that are set will be changed.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo to edit | [required] | |
repo | String | name of the repo to edit | [required] | |
body | Option<EditRepoOption> | Properties of a repo that you can edit |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit_branch_protection
crate::models::BranchProtection repo_edit_branch_protection(owner, repo, name, body) Edit a branch protections for a repository. Only fields that are set will be changed
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
name | String | name of protected branch | [required] | |
body | Option<EditBranchProtectionOption> |
Return type
crate::models::BranchProtection
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit_git_hook
crate::models::GitHook repo_edit_git_hook(owner, repo, id, body) Edit a Git hook in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | String | id of the hook to get | [required] | |
body | Option<EditGitHookOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit_hook
crate::models::Hook repo_edit_hook(owner, repo, id, body) Edit a hook in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | index of the hook | [required] | |
body | Option<EditHookOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit_pull_request
crate::models::PullRequest repo_edit_pull_request(owner, repo, index, body) Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request to edit | [required] | |
body | Option<EditPullRequestOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit_release
crate::models::Release repo_edit_release(owner, repo, id, body) Update a release
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release to edit | [required] | |
body | Option<EditReleaseOption> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit_release_attachment
crate::models::Attachment repo_edit_release_attachment(owner, repo, id, attachment_id, body) Edit a release attachment
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release | [required] | |
attachment_id | i64 | id of the attachment to edit | [required] | |
body | Option<EditAttachmentOptions> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_edit_wiki_page
crate::models::WikiPage repo_edit_wiki_page(owner, repo, page_name, body) Edit a wiki page
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page_name | String | name of the page | [required] | |
body | Option<CreateWikiPageOptions> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get
crate::models::Repository repo_get(owner, repo) Get a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_all_commits
Veccrate::models::Commit repo_get_all_commits(owner, repo, sha, path, page, limit) Get a list of all commits from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | Option<String> | SHA or branch to start listing commits from (usually 'master') | ||
path | Option<String> | filepath of a file/dir | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results (ignored if used with 'path') |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_archive
repo_get_archive(owner, repo, archive) Get an archive of a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
archive | String | the git reference for download with attached archive format (e.g. master.zip) | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_assignees
Veccrate::models::User repo_get_assignees(owner, repo) Return all users that have write access and can be assigned to issues
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_branch
crate::models::Branch repo_get_branch(owner, repo, branch) Retrieve a specific branch from a repository, including its effective branch protection
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
branch | String | branch to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_branch_protection
crate::models::BranchProtection repo_get_branch_protection(owner, repo, name) Get a specific branch protection for the repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
name | String | name of protected branch | [required] |
Return type
crate::models::BranchProtection
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_by_id
crate::models::Repository repo_get_by_id(id) Get a repository by id
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | i64 | id of the repo to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_combined_status_by_ref
crate::models::CombinedStatus repo_get_combined_status_by_ref(owner, repo, r#ref, page, limit) Get a commit's combined status, by branch/tag/commit reference
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
r#ref | String | name of branch/tag/commit | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_contents
crate::models::ContentsResponse repo_get_contents(owner, repo, filepath, r#ref) Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
filepath | String | path of the dir, file, symlink or submodule in the repo | [required] | |
r#ref | Option<String> | The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Return type
crate::models::ContentsResponse
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_contents_list
Veccrate::models::ContentsResponse repo_get_contents_list(owner, repo, r#ref) Gets the metadata of all the entries of the root dir
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
r#ref | Option<String> | The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Return type
Veccrate::models::ContentsResponse
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_editor_config
repo_get_editor_config(owner, repo, filepath, r#ref) Get the EditorConfig definitions of a file in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
filepath | String | filepath of file to get | [required] | |
r#ref | Option<String> | The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_git_hook
crate::models::GitHook repo_get_git_hook(owner, repo, id) Get a Git hook
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | String | id of the hook to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_hook
crate::models::Hook repo_get_hook(owner, repo, id) Get a hook
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the hook to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_issue_templates
Veccrate::models::IssueTemplate repo_get_issue_templates(owner, repo) Get available issue templates for a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Veccrate::models::IssueTemplate
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_key
crate::models::DeployKey repo_get_key(owner, repo, id) Get a repository's key by id
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the key to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_languages
::std::collections::HashMap<String, i64> repo_get_languages(owner, repo) Get languages and number of bytes of code written
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
::std::collections::HashMap<String, i64>
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_note
crate::models::Note repo_get_note(owner, repo, sha) Get a note corresponding to a single commit from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | a git ref or commit sha | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_pull_request
crate::models::PullRequest repo_get_pull_request(owner, repo, index) Get a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_pull_request_commits
Veccrate::models::Commit repo_get_pull_request_commits(owner, repo, index, page, limit) Get commits for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request to get | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_pull_review
crate::models::PullReview repo_get_pull_review(owner, repo, index, id) Get a specific review for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
id | i64 | id of the review | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_pull_review_comments
Veccrate::models::PullReviewComment repo_get_pull_review_comments(owner, repo, index, id) Get a specific review for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
id | i64 | id of the review | [required] |
Return type
Veccrate::models::PullReviewComment
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_raw_file
repo_get_raw_file(owner, repo, filepath, r#ref) Get a file from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
filepath | String | filepath of the file to get | [required] | |
r#ref | Option<String> | The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_raw_file_or_lfs
repo_get_raw_file_or_lfs(owner, repo, filepath, r#ref) Get a file or it's LFS object from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
filepath | String | filepath of the file to get | [required] | |
r#ref | Option<String> | The name of the commit/branch/tag. Default the repository’s default branch (usually master) |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_release
crate::models::Release repo_get_release(owner, repo, id) Get a release
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_release_attachment
crate::models::Attachment repo_get_release_attachment(owner, repo, id, attachment_id) Get a release attachment
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release | [required] | |
attachment_id | i64 | id of the attachment to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_release_by_tag
crate::models::Release repo_get_release_by_tag(owner, repo, tag) Get a release by tag name
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
tag | String | tag name of the release to get | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_repo_permissions
crate::models::RepoCollaboratorPermission repo_get_repo_permissions(owner, repo, collaborator) Get repository permissions for a user
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
collaborator | String | username of the collaborator | [required] |
Return type
crate::models::RepoCollaboratorPermission
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_reviewers
Veccrate::models::User repo_get_reviewers(owner, repo) Return all users that can be requested to review in this repo
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_single_commit
crate::models::Commit repo_get_single_commit(owner, repo, sha) Get a single commit from a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | a git ref or commit sha | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_tag
crate::models::Tag repo_get_tag(owner, repo, tag) Get the tag of a repository by tag name
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
tag | String | name of tag | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_wiki_page
crate::models::WikiPage repo_get_wiki_page(owner, repo, page_name) Get a wiki page
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page_name | String | name of the page | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_wiki_page_revisions
crate::models::WikiCommitList repo_get_wiki_page_revisions(owner, repo, page_name, page) Get revisions of a wiki page
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page_name | String | name of the page | [required] | |
page | Option<i32> | page number of results to return (1-based) |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_get_wiki_pages
Veccrate::models::WikiPageMetaData repo_get_wiki_pages(owner, repo, page, limit) Get all wiki pages
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Veccrate::models::WikiPageMetaData
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_all_git_refs
Veccrate::models::Reference repo_list_all_git_refs(owner, repo) Get specified ref or filtered repository's refs
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_branch_protection
Veccrate::models::BranchProtection repo_list_branch_protection(owner, repo) List branch protections for a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Veccrate::models::BranchProtection
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_branches
Veccrate::models::Branch repo_list_branches(owner, repo, page, limit) List a repository's branches
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_collaborators
Veccrate::models::User repo_list_collaborators(owner, repo, page, limit) List a repository's collaborators
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_git_hooks
Veccrate::models::GitHook repo_list_git_hooks(owner, repo) List the Git hooks in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_git_refs
Veccrate::models::Reference repo_list_git_refs(owner, repo, r#ref) Get specified ref or filtered repository's refs
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
r#ref | String | part or full name of the ref | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_hooks
Veccrate::models::Hook repo_list_hooks(owner, repo, page, limit) List the hooks in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_keys
Veccrate::models::DeployKey repo_list_keys(owner, repo, key_id, fingerprint, page, limit) List a repository's keys
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
key_id | Option<i32> | the key_id to search for | ||
fingerprint | Option<String> | fingerprint of the key | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_pull_requests
Veccrate::models::PullRequest repo_list_pull_requests(owner, repo, state, sort, milestone, labels, page, limit) List a repo's pull requests
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
state | Option<String> | State of pull request: open or closed (optional) | ||
sort | Option<String> | Type of sort | ||
milestone | Option<i64> | ID of the milestone | ||
labels | Option<Vec> | Label IDs | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_pull_reviews
Veccrate::models::PullReview repo_list_pull_reviews(owner, repo, index, page, limit) List all reviews for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_release_attachments
Veccrate::models::Attachment repo_list_release_attachments(owner, repo, id) List release's attachments
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the release | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_releases
Veccrate::models::Release repo_list_releases(owner, repo, draft, pre_release, per_page, page, limit) List a repo's releases
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
draft | Option<bool> | filter (exclude / include) drafts, if you dont have repo write access none will show | ||
pre_release | Option<bool> | filter (exclude / include) pre-releases | ||
per_page | Option<i32> | page size of results, deprecated - use limit | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_stargazers
Veccrate::models::User repo_list_stargazers(owner, repo, page, limit) List a repo's stargazers
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_statuses
Veccrate::models::CommitStatus repo_list_statuses(owner, repo, sha, sort, state, page, limit) Get a commit's statuses
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
sha | String | sha of the commit | [required] | |
sort | Option<String> | type of sort | ||
state | Option<String> | type of state | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Veccrate::models::CommitStatus
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_statuses_by_ref
Veccrate::models::CommitStatus repo_list_statuses_by_ref(owner, repo, r#ref, sort, state, page, limit) Get a commit's statuses, by branch/tag/commit reference
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
r#ref | String | name of branch/tag/commit | [required] | |
sort | Option<String> | type of sort | ||
state | Option<String> | type of state | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Veccrate::models::CommitStatus
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_subscribers
Veccrate::models::User repo_list_subscribers(owner, repo, page, limit) List a repo's watchers
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_tags
Veccrate::models::Tag repo_list_tags(owner, repo, page, limit) List a repository's tags
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results, default maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_teams
Veccrate::models::Team repo_list_teams(owner, repo) List a repository's teams
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_list_topics
crate::models::TopicName repo_list_topics(owner, repo, page, limit) Get list of topics that a repository has
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_merge_pull_request
repo_merge_pull_request(owner, repo, index, body) Merge a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request to merge | [required] | |
body | Option<MergePullRequestOption> |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_migrate
crate::models::Repository repo_migrate(body) Migrate a remote git repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
body | Option<MigrateRepoOptions> |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_mirror_sync
repo_mirror_sync(owner, repo) Sync a mirrored repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo to sync | [required] | |
repo | String | name of the repo to sync | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_pull_request_is_merged
repo_pull_request_is_merged(owner, repo, index) Check if a pull request has been merged
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_search
crate::models::SearchResults repo_search(q, topic, include_desc, uid, priority_owner_id, team_id, starred_by, private, is_private, template, archived, mode, exclusive, sort, order, page, limit) Search for repositories
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
q | Option<String> | keyword | ||
topic | Option<bool> | Limit search to repositories with keyword as topic | ||
include_desc | Option<bool> | include search of keyword within repository description | ||
uid | Option<i64> | search only for repos that the user with the given id owns or contributes to | ||
priority_owner_id | Option<i64> | repo owner to prioritize in the results | ||
team_id | Option<i64> | search only for repos that belong to the given team id | ||
starred_by | Option<i64> | search only for repos that the user with the given id has starred | ||
private | Option<bool> | include private repositories this user has access to (defaults to true) | ||
is_private | Option<bool> | show only pubic, private or all repositories (defaults to all) | ||
template | Option<bool> | include template repositories this user has access to (defaults to true) | ||
archived | Option<bool> | show only archived, non-archived or all repositories (defaults to all) | ||
mode | Option<String> | type of repository to search for. Supported values are "fork", "source", "mirror" and "collaborative" | ||
exclusive | Option<bool> | if uid is given, search only for repos that the user owns |
||
sort | Option<String> | sort repos by attribute. Supported values are "alpha", "created", "updated", "size", and "id". Default is "alpha" | ||
order | Option<String> | sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified. | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_signing_key
String repo_signing_key(owner, repo) Get signing-key.gpg for given repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
String
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_submit_pull_review
crate::models::PullReview repo_submit_pull_review(owner, repo, index, id, body) Submit a pending review to an pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
id | i64 | id of the review | [required] | |
body | SubmitPullReviewOptions | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_test_hook
repo_test_hook(owner, repo, id, r#ref) Test a push webhook
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
id | i64 | id of the hook to test | [required] | |
r#ref | Option<String> | The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_tracked_times
Veccrate::models::TrackedTime repo_tracked_times(owner, repo, user, since, before, page, limit) List a repo's tracked times
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
user | Option<String> | optional filter by user (available for issue managers) | ||
since | Option<String> | Only show times updated after the given time. This is a timestamp in RFC 3339 format | ||
before | Option<String> | Only show times updated before the given time. This is a timestamp in RFC 3339 format | ||
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_transfer
crate::models::Repository repo_transfer(owner, repo, body) Transfer a repo ownership
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo to transfer | [required] | |
repo | String | name of the repo to transfer | [required] | |
body | TransferRepoOption | Transfer Options | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_un_dismiss_pull_review
crate::models::PullReview repo_un_dismiss_pull_review(owner, repo, index, id) Cancel to dismiss a review for a pull request
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request | [required] | |
id | i64 | id of the review | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_update_file
crate::models::FileResponse repo_update_file(owner, repo, filepath, body) Update a file in a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
filepath | String | path of the file to update | [required] | |
body | UpdateFileOptions | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_update_pull_request
repo_update_pull_request(owner, repo, index, style) Merge PR's baseBranch into headBranch
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
index | i64 | index of the pull request to get | [required] | |
style | Option<String> | how to update pull request |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repo_update_topics
repo_update_topics(owner, repo, body) Replace list of topics for a repository
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
body | Option<RepoTopicOptions> |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
topic_search
Veccrate::models::TopicResponse topic_search(q, page, limit) search topics via keyword
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
q | String | keywords to search | [required] | |
page | Option<i32> | page number of results to return (1-based) | ||
limit | Option<i32> | page size of results |
Return type
Veccrate::models::TopicResponse
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_current_check_subscription
crate::models::WatchInfo user_current_check_subscription(owner, repo) Check if the current user is watching a repo
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_current_delete_subscription
user_current_delete_subscription(owner, repo) Unwatch a repo
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_current_put_subscription
crate::models::WatchInfo user_current_put_subscription(owner, repo) Watch a repo
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_tracked_times
Veccrate::models::TrackedTime user_tracked_times(owner, repo, user) List a user's tracked times in a repo
Parameters
Name | Type | Description | Required | Notes |
---|---|---|---|---|
owner | String | owner of the repo | [required] | |
repo | String | name of the repo | [required] | |
user | String | username of user | [required] |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, TOTPHeader, Token
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]