forgejo 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CHANGELOG.md~ +3 -0
- data/Makefile +16 -16
- data/README.md +68 -12
- data/config.yaml +21 -0
- data/config.yaml~ +13 -0
- data/docs/APIForbiddenError.md +20 -0
- data/docs/APIInvalidTopicsError.md +20 -0
- data/docs/APINotFound.md +22 -0
- data/docs/APIRepoArchivedError.md +20 -0
- data/docs/APIUnauthorizedError.md +20 -0
- data/docs/APIValidationError.md +20 -0
- data/docs/ActivitypubApi.md +133 -0
- data/docs/AdminApi.md +1305 -184
- data/docs/Attachment.md +2 -0
- data/docs/CreatePushMirrorOption.md +3 -1
- data/docs/CreateQuotaGroupOptions.md +20 -0
- data/docs/CreateQuotaRuleOptions.md +22 -0
- data/docs/EditAttachmentOptions.md +2 -0
- data/docs/EditQuotaRuleOptions.md +20 -0
- data/docs/EditRepoOption.md +2 -0
- data/docs/IssueApi.md +55 -55
- data/docs/MarkupOption.md +2 -0
- data/docs/NoteOptions.md +18 -0
- data/docs/OrganizationApi.md +386 -19
- data/docs/PackageApi.md +1 -1
- data/docs/PullRequest.md +2 -0
- data/docs/PushMirror.md +2 -0
- data/docs/QuotaGroup.md +20 -0
- data/docs/QuotaInfo.md +20 -0
- data/docs/QuotaRuleInfo.md +22 -0
- data/docs/QuotaUsed.md +18 -0
- data/docs/QuotaUsedArtifact.md +22 -0
- data/docs/QuotaUsedAttachment.md +24 -0
- data/docs/QuotaUsedAttachmentContainedIn.md +20 -0
- data/docs/QuotaUsedPackage.md +26 -0
- data/docs/QuotaUsedSize.md +22 -0
- data/docs/QuotaUsedSizeAssets.md +22 -0
- data/docs/QuotaUsedSizeAssetsAttachments.md +20 -0
- data/docs/QuotaUsedSizeAssetsPackages.md +18 -0
- data/docs/QuotaUsedSizeGit.md +18 -0
- data/docs/QuotaUsedSizeRepos.md +20 -0
- data/docs/RepoCreateReleaseAttachmentRequest.md +4 -2
- data/docs/Repository.md +2 -0
- data/docs/RepositoryApi.md +308 -72
- data/docs/SetUserQuotaGroupsOptions.md +18 -0
- data/docs/UpdateBranchRepoOption.md +18 -0
- data/docs/UserApi.md +390 -33
- data/forgejo.gemspec +12 -13
- data/lib/forgejo/api/activitypub_api.rb +110 -2
- data/lib/forgejo/api/admin_api.rb +1148 -109
- data/lib/forgejo/api/issue_api.rb +94 -36
- data/lib/forgejo/api/miscellaneous_api.rb +2 -2
- data/lib/forgejo/api/notification_api.rb +2 -2
- data/lib/forgejo/api/organization_api.rb +363 -2
- data/lib/forgejo/api/package_api.rb +4 -2
- data/lib/forgejo/api/repository_api.rb +370 -26
- data/lib/forgejo/api/settings_api.rb +2 -2
- data/lib/forgejo/api/user_api.rb +350 -8
- data/lib/forgejo/api_client.rb +2 -2
- data/lib/forgejo/api_error.rb +2 -2
- data/lib/forgejo/configuration.rb +2 -2
- data/lib/forgejo/models/access_token.rb +11 -5
- data/lib/forgejo/models/action_task.rb +11 -5
- data/lib/forgejo/models/action_task_response.rb +11 -5
- data/lib/forgejo/models/action_variable.rb +11 -5
- data/lib/forgejo/models/activity.rb +11 -5
- data/lib/forgejo/models/activity_pub.rb +11 -5
- data/lib/forgejo/models/add_collaborator_option.rb +45 -5
- data/lib/forgejo/models/add_time_option.rb +21 -5
- data/lib/forgejo/models/annotated_tag.rb +11 -5
- data/lib/forgejo/models/annotated_tag_object.rb +11 -5
- data/lib/forgejo/models/api_error.rb +11 -5
- data/lib/forgejo/models/api_forbidden_error.rb +229 -0
- data/lib/forgejo/models/api_invalid_topics_error.rb +231 -0
- data/lib/forgejo/models/api_not_found.rb +240 -0
- data/lib/forgejo/models/api_repo_archived_error.rb +229 -0
- data/lib/forgejo/models/api_unauthorized_error.rb +229 -0
- data/lib/forgejo/models/api_validation_error.rb +229 -0
- data/lib/forgejo/models/attachment.rb +55 -6
- data/lib/forgejo/models/blocked_user.rb +11 -5
- data/lib/forgejo/models/branch.rb +11 -5
- data/lib/forgejo/models/branch_protection.rb +11 -5
- data/lib/forgejo/models/change_file_operation.rb +21 -5
- data/lib/forgejo/models/change_files_options.rb +21 -5
- data/lib/forgejo/models/changed_file.rb +11 -5
- data/lib/forgejo/models/combined_status.rb +11 -5
- data/lib/forgejo/models/comment.rb +11 -5
- data/lib/forgejo/models/commit.rb +11 -5
- data/lib/forgejo/models/commit_affected_files.rb +11 -5
- data/lib/forgejo/models/commit_date_options.rb +11 -5
- data/lib/forgejo/models/commit_meta.rb +11 -5
- data/lib/forgejo/models/commit_stats.rb +11 -5
- data/lib/forgejo/models/commit_status.rb +11 -5
- data/lib/forgejo/models/commit_user.rb +11 -5
- data/lib/forgejo/models/compare.rb +11 -5
- data/lib/forgejo/models/contents_response.rb +11 -5
- data/lib/forgejo/models/create_access_token_option.rb +21 -5
- data/lib/forgejo/models/create_branch_protection_option.rb +11 -5
- data/lib/forgejo/models/create_branch_repo_option.rb +21 -5
- data/lib/forgejo/models/create_email_option.rb +11 -5
- data/lib/forgejo/models/create_file_options.rb +21 -5
- data/lib/forgejo/models/create_fork_option.rb +11 -5
- data/lib/forgejo/models/create_gpg_key_option.rb +21 -5
- data/lib/forgejo/models/create_hook_option.rb +21 -5
- data/lib/forgejo/models/create_issue_comment_option.rb +21 -5
- data/lib/forgejo/models/create_issue_option.rb +21 -5
- data/lib/forgejo/models/create_key_option.rb +31 -5
- data/lib/forgejo/models/create_label_option.rb +31 -5
- data/lib/forgejo/models/create_milestone_option.rb +11 -5
- data/lib/forgejo/models/create_o_auth2_application_options.rb +11 -5
- data/lib/forgejo/models/create_or_update_secret_option.rb +21 -5
- data/lib/forgejo/models/create_org_option.rb +21 -5
- data/lib/forgejo/models/create_pull_request_option.rb +11 -5
- data/lib/forgejo/models/create_pull_review_comment.rb +11 -5
- data/lib/forgejo/models/create_pull_review_options.rb +11 -5
- data/lib/forgejo/models/create_push_mirror_option.rb +24 -9
- data/lib/forgejo/models/create_quota_group_options.rb +234 -0
- data/lib/forgejo/models/create_quota_rule_options.rb +244 -0
- data/lib/forgejo/models/create_release_option.rb +21 -5
- data/lib/forgejo/models/create_repo_option.rb +21 -5
- data/lib/forgejo/models/create_status_option.rb +11 -5
- data/lib/forgejo/models/create_tag_option.rb +21 -5
- data/lib/forgejo/models/create_tag_protection_option.rb +11 -5
- data/lib/forgejo/models/create_team_option.rb +21 -5
- data/lib/forgejo/models/create_user_option.rb +31 -5
- data/lib/forgejo/models/create_variable_option.rb +21 -5
- data/lib/forgejo/models/create_wiki_page_options.rb +11 -5
- data/lib/forgejo/models/cron.rb +11 -5
- data/lib/forgejo/models/delete_email_option.rb +11 -5
- data/lib/forgejo/models/delete_file_options.rb +21 -5
- data/lib/forgejo/models/delete_labels_option.rb +11 -5
- data/lib/forgejo/models/deploy_key.rb +11 -5
- data/lib/forgejo/models/dismiss_pull_review_options.rb +11 -5
- data/lib/forgejo/models/dispatch_workflow_option.rb +21 -5
- data/lib/forgejo/models/edit_attachment_options.rb +22 -6
- data/lib/forgejo/models/edit_branch_protection_option.rb +11 -5
- data/lib/forgejo/models/edit_deadline_option.rb +21 -5
- data/lib/forgejo/models/edit_git_hook_option.rb +11 -5
- data/lib/forgejo/models/edit_hook_option.rb +11 -5
- data/lib/forgejo/models/edit_issue_comment_option.rb +21 -5
- data/lib/forgejo/models/edit_issue_option.rb +11 -5
- data/lib/forgejo/models/edit_label_option.rb +11 -5
- data/lib/forgejo/models/edit_milestone_option.rb +11 -5
- data/lib/forgejo/models/edit_org_option.rb +11 -5
- data/lib/forgejo/models/edit_pull_request_option.rb +11 -5
- data/lib/forgejo/models/edit_quota_rule_options.rb +234 -0
- data/lib/forgejo/models/edit_reaction_option.rb +11 -5
- data/lib/forgejo/models/edit_release_option.rb +11 -5
- data/lib/forgejo/models/edit_repo_option.rb +22 -6
- data/lib/forgejo/models/edit_tag_protection_option.rb +11 -5
- data/lib/forgejo/models/edit_team_option.rb +21 -5
- data/lib/forgejo/models/edit_user_option.rb +11 -5
- data/lib/forgejo/models/email.rb +11 -5
- data/lib/forgejo/models/external_tracker.rb +11 -5
- data/lib/forgejo/models/external_wiki.rb +11 -5
- data/lib/forgejo/models/file_commit_response.rb +11 -5
- data/lib/forgejo/models/file_delete_response.rb +11 -5
- data/lib/forgejo/models/file_links_response.rb +11 -5
- data/lib/forgejo/models/file_response.rb +11 -5
- data/lib/forgejo/models/files_response.rb +11 -5
- data/lib/forgejo/models/general_api_settings.rb +11 -5
- data/lib/forgejo/models/general_attachment_settings.rb +11 -5
- data/lib/forgejo/models/general_repo_settings.rb +11 -5
- data/lib/forgejo/models/general_ui_settings.rb +11 -5
- data/lib/forgejo/models/generate_repo_option.rb +31 -5
- data/lib/forgejo/models/git_blob_response.rb +11 -5
- data/lib/forgejo/models/git_entry.rb +11 -5
- data/lib/forgejo/models/git_hook.rb +11 -5
- data/lib/forgejo/models/git_object.rb +11 -5
- data/lib/forgejo/models/git_tree_response.rb +11 -5
- data/lib/forgejo/models/gitignore_template_info.rb +11 -5
- data/lib/forgejo/models/gpg_key.rb +11 -5
- data/lib/forgejo/models/gpg_key_email.rb +11 -5
- data/lib/forgejo/models/hook.rb +11 -5
- data/lib/forgejo/models/identity.rb +11 -5
- data/lib/forgejo/models/internal_tracker.rb +11 -5
- data/lib/forgejo/models/issue.rb +11 -5
- data/lib/forgejo/models/issue_config.rb +11 -5
- data/lib/forgejo/models/issue_config_contact_link.rb +11 -5
- data/lib/forgejo/models/issue_config_validation.rb +11 -5
- data/lib/forgejo/models/issue_deadline.rb +11 -5
- data/lib/forgejo/models/issue_form_field.rb +11 -5
- data/lib/forgejo/models/issue_labels_option.rb +11 -5
- data/lib/forgejo/models/issue_meta.rb +11 -5
- data/lib/forgejo/models/issue_template.rb +11 -5
- data/lib/forgejo/models/label.rb +11 -5
- data/lib/forgejo/models/label_template.rb +11 -5
- data/lib/forgejo/models/license_template_info.rb +11 -5
- data/lib/forgejo/models/licenses_template_list_entry.rb +11 -5
- data/lib/forgejo/models/markdown_option.rb +11 -5
- data/lib/forgejo/models/markup_option.rb +22 -6
- data/lib/forgejo/models/merge_pull_request_option.rb +11 -5
- data/lib/forgejo/models/migrate_repo_options.rb +31 -5
- data/lib/forgejo/models/milestone.rb +11 -5
- data/lib/forgejo/models/new_issue_pins_allowed.rb +11 -5
- data/lib/forgejo/models/node_info.rb +11 -5
- data/lib/forgejo/models/node_info_services.rb +11 -5
- data/lib/forgejo/models/node_info_software.rb +11 -5
- data/lib/forgejo/models/node_info_usage.rb +11 -5
- data/lib/forgejo/models/node_info_usage_users.rb +11 -5
- data/lib/forgejo/models/note.rb +11 -5
- data/lib/forgejo/models/note_options.rb +220 -0
- data/lib/forgejo/models/notification_count.rb +11 -5
- data/lib/forgejo/models/notification_subject.rb +11 -5
- data/lib/forgejo/models/notification_thread.rb +11 -5
- data/lib/forgejo/models/o_auth2_application.rb +11 -5
- data/lib/forgejo/models/organization.rb +11 -5
- data/lib/forgejo/models/organization_permissions.rb +11 -5
- data/lib/forgejo/models/package.rb +11 -5
- data/lib/forgejo/models/package_file.rb +11 -5
- data/lib/forgejo/models/payload_commit.rb +11 -5
- data/lib/forgejo/models/payload_commit_verification.rb +11 -5
- data/lib/forgejo/models/payload_user.rb +11 -5
- data/lib/forgejo/models/permission.rb +11 -5
- data/lib/forgejo/models/pr_branch_info.rb +11 -5
- data/lib/forgejo/models/public_key.rb +11 -5
- data/lib/forgejo/models/pull_request.rb +23 -6
- data/lib/forgejo/models/pull_request_meta.rb +11 -5
- data/lib/forgejo/models/pull_review.rb +11 -5
- data/lib/forgejo/models/pull_review_comment.rb +11 -5
- data/lib/forgejo/models/pull_review_request_options.rb +11 -5
- data/lib/forgejo/models/push_mirror.rb +21 -6
- data/lib/forgejo/models/quota_group.rb +234 -0
- data/lib/forgejo/models/quota_info.rb +233 -0
- data/lib/forgejo/models/quota_rule_info.rb +244 -0
- data/lib/forgejo/models/quota_used.rb +221 -0
- data/lib/forgejo/models/quota_used_artifact.rb +242 -0
- data/lib/forgejo/models/quota_used_attachment.rb +251 -0
- data/lib/forgejo/models/quota_used_attachment_contained_in.rb +232 -0
- data/lib/forgejo/models/quota_used_package.rb +262 -0
- data/lib/forgejo/models/quota_used_size.rb +239 -0
- data/lib/forgejo/models/quota_used_size_assets.rb +240 -0
- data/lib/forgejo/models/quota_used_size_assets_attachments.rb +232 -0
- data/lib/forgejo/models/quota_used_size_assets_packages.rb +222 -0
- data/lib/forgejo/models/quota_used_size_git.rb +222 -0
- data/lib/forgejo/models/quota_used_size_repos.rb +232 -0
- data/lib/forgejo/models/reaction.rb +11 -5
- data/lib/forgejo/models/reference.rb +11 -5
- data/lib/forgejo/models/release.rb +11 -5
- data/lib/forgejo/models/rename_user_option.rb +21 -5
- data/lib/forgejo/models/replace_flags_option.rb +11 -5
- data/lib/forgejo/models/repo_collaborator_permission.rb +11 -5
- data/lib/forgejo/models/repo_commit.rb +11 -5
- data/lib/forgejo/models/repo_create_release_attachment_request.rb +26 -10
- data/lib/forgejo/models/repo_topic_options.rb +11 -5
- data/lib/forgejo/models/repo_transfer.rb +11 -5
- data/lib/forgejo/models/repository.rb +21 -6
- data/lib/forgejo/models/repository_meta.rb +11 -5
- data/lib/forgejo/models/search_results.rb +11 -5
- data/lib/forgejo/models/secret.rb +11 -5
- data/lib/forgejo/models/server_version.rb +11 -5
- data/lib/forgejo/models/set_user_quota_groups_options.rb +241 -0
- data/lib/forgejo/models/stop_watch.rb +11 -5
- data/lib/forgejo/models/submit_pull_review_options.rb +11 -5
- data/lib/forgejo/models/tag.rb +11 -5
- data/lib/forgejo/models/tag_archive_download_count.rb +11 -5
- data/lib/forgejo/models/tag_protection.rb +11 -5
- data/lib/forgejo/models/team.rb +11 -5
- data/lib/forgejo/models/team_search200_response.rb +11 -5
- data/lib/forgejo/models/timeline_comment.rb +11 -5
- data/lib/forgejo/models/topic_name.rb +11 -5
- data/lib/forgejo/models/topic_response.rb +11 -5
- data/lib/forgejo/models/tracked_time.rb +11 -5
- data/lib/forgejo/models/transfer_repo_option.rb +21 -5
- data/lib/forgejo/models/update_branch_repo_option.rb +239 -0
- data/lib/forgejo/models/update_file_options.rb +31 -5
- data/lib/forgejo/models/update_repo_avatar_option.rb +11 -5
- data/lib/forgejo/models/update_user_avatar_option.rb +11 -5
- data/lib/forgejo/models/update_variable_option.rb +21 -5
- data/lib/forgejo/models/user.rb +11 -5
- data/lib/forgejo/models/user_heatmap_data.rb +11 -5
- data/lib/forgejo/models/user_search200_response.rb +11 -5
- data/lib/forgejo/models/user_settings.rb +11 -5
- data/lib/forgejo/models/user_settings_options.rb +11 -5
- data/lib/forgejo/models/watch_info.rb +11 -5
- data/lib/forgejo/models/wiki_commit.rb +11 -5
- data/lib/forgejo/models/wiki_commit_list.rb +11 -5
- data/lib/forgejo/models/wiki_page.rb +11 -5
- data/lib/forgejo/models/wiki_page_meta_data.rb +11 -5
- data/lib/forgejo/version.rb +3 -3
- data/lib/forgejo.rb +28 -2
- data/manifest.scm +6 -2
- data/openapi-generator-cli.jar +0 -0
- data/pom.xml~ +22 -0
- data/smoke +1 -1
- data/spec/models/api_forbidden_error_spec.rb +42 -0
- data/spec/models/api_invalid_topics_error_spec.rb +42 -0
- data/spec/models/api_not_found_spec.rb +48 -0
- data/spec/models/api_repo_archived_error_spec.rb +42 -0
- data/spec/models/api_unauthorized_error_spec.rb +42 -0
- data/spec/models/api_validation_error_spec.rb +42 -0
- data/spec/models/create_quota_group_options_spec.rb +42 -0
- data/spec/models/create_quota_rule_options_spec.rb +48 -0
- data/spec/models/edit_quota_rule_options_spec.rb +42 -0
- data/spec/models/note_options_spec.rb +36 -0
- data/spec/models/quota_group_spec.rb +42 -0
- data/spec/models/quota_info_spec.rb +42 -0
- data/spec/models/quota_rule_info_spec.rb +48 -0
- data/spec/models/quota_used_artifact_spec.rb +48 -0
- data/spec/models/quota_used_attachment_contained_in_spec.rb +42 -0
- data/spec/models/quota_used_attachment_spec.rb +54 -0
- data/spec/models/quota_used_package_spec.rb +60 -0
- data/spec/models/quota_used_size_assets_attachments_spec.rb +42 -0
- data/spec/models/quota_used_size_assets_packages_spec.rb +36 -0
- data/spec/models/quota_used_size_assets_spec.rb +48 -0
- data/spec/models/quota_used_size_git_spec.rb +36 -0
- data/spec/models/quota_used_size_repos_spec.rb +42 -0
- data/spec/models/quota_used_size_spec.rb +48 -0
- data/spec/models/quota_used_spec.rb +36 -0
- data/spec/models/set_user_quota_groups_options_spec.rb +36 -0
- data/spec/models/update_branch_repo_option_spec.rb +36 -0
- data/spec/spec_helper.rb +2 -2
- data/swagger.v1.json +2563 -338
- data/swagger.v1.patched.json +1 -1
- metadata +291 -182
- data/LICENSE~ +0 -9
- data/Makefile~ +0 -2
- data/patch~ +0 -1
- data/smoke~ +0 -1
data/docs/RepositoryApi.md
CHANGED
@@ -117,7 +117,7 @@ All URIs are relative to */api/v1*
|
|
117
117
|
| [**repo_get_release_by_tag**](RepositoryApi.md#repo_get_release_by_tag) | **GET** /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name |
|
118
118
|
| [**repo_get_repo_permissions**](RepositoryApi.md#repo_get_repo_permissions) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator}/permission | Get repository permissions for a user |
|
119
119
|
| [**repo_get_reviewers**](RepositoryApi.md#repo_get_reviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo |
|
120
|
-
| [**repo_get_runner_registration_token**](RepositoryApi.md#repo_get_runner_registration_token) | **GET** /repos/{owner}/{repo}/runners/registration-token | Get a repository's actions runner registration token |
|
120
|
+
| [**repo_get_runner_registration_token**](RepositoryApi.md#repo_get_runner_registration_token) | **GET** /repos/{owner}/{repo}/actions/runners/registration-token | Get a repository's actions runner registration token |
|
121
121
|
| [**repo_get_single_commit**](RepositoryApi.md#repo_get_single_commit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository |
|
122
122
|
| [**repo_get_tag**](RepositoryApi.md#repo_get_tag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name |
|
123
123
|
| [**repo_get_tag_protection**](RepositoryApi.md#repo_get_tag_protection) | **GET** /repos/{owner}/{repo}/tag_protections/{id} | Get a specific tag protection for the repository |
|
@@ -156,8 +156,10 @@ All URIs are relative to */api/v1*
|
|
156
156
|
| [**repo_new_pin_allowed**](RepositoryApi.md#repo_new_pin_allowed) | **GET** /repos/{owner}/{repo}/new_pin_allowed | Returns if new Issue Pins are allowed |
|
157
157
|
| [**repo_pull_request_is_merged**](RepositoryApi.md#repo_pull_request_is_merged) | **GET** /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged |
|
158
158
|
| [**repo_push_mirror_sync**](RepositoryApi.md#repo_push_mirror_sync) | **POST** /repos/{owner}/{repo}/push_mirrors-sync | Sync all push mirrored repository |
|
159
|
+
| [**repo_remove_note**](RepositoryApi.md#repo_remove_note) | **DELETE** /repos/{owner}/{repo}/git/notes/{sha} | Removes a note corresponding to a single commit from a repository |
|
159
160
|
| [**repo_replace_all_flags**](RepositoryApi.md#repo_replace_all_flags) | **PUT** /repos/{owner}/{repo}/flags | Replace all flags of a repository |
|
160
161
|
| [**repo_search**](RepositoryApi.md#repo_search) | **GET** /repos/search | Search for repositories |
|
162
|
+
| [**repo_set_note**](RepositoryApi.md#repo_set_note) | **POST** /repos/{owner}/{repo}/git/notes/{sha} | Set a note corresponding to a single commit from a repository |
|
161
163
|
| [**repo_signing_key**](RepositoryApi.md#repo_signing_key) | **GET** /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository |
|
162
164
|
| [**repo_submit_pull_review**](RepositoryApi.md#repo_submit_pull_review) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Submit a pending review to an pull request |
|
163
165
|
| [**repo_test_hook**](RepositoryApi.md#repo_test_hook) | **POST** /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook |
|
@@ -165,6 +167,7 @@ All URIs are relative to */api/v1*
|
|
165
167
|
| [**repo_transfer**](RepositoryApi.md#repo_transfer) | **POST** /repos/{owner}/{repo}/transfer | Transfer a repo ownership |
|
166
168
|
| [**repo_un_dismiss_pull_review**](RepositoryApi.md#repo_un_dismiss_pull_review) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals | Cancel to dismiss a review for a pull request |
|
167
169
|
| [**repo_update_avatar**](RepositoryApi.md#repo_update_avatar) | **POST** /repos/{owner}/{repo}/avatar | Update avatar |
|
170
|
+
| [**repo_update_branch**](RepositoryApi.md#repo_update_branch) | **PATCH** /repos/{owner}/{repo}/branches/{branch} | Update a branch |
|
168
171
|
| [**repo_update_file**](RepositoryApi.md#repo_update_file) | **PUT** /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository |
|
169
172
|
| [**repo_update_pull_request**](RepositoryApi.md#repo_update_pull_request) | **POST** /repos/{owner}/{repo}/pulls/{index}/update | Merge PR's baseBranch into headBranch |
|
170
173
|
| [**repo_update_topics**](RepositoryApi.md#repo_update_topics) | **PUT** /repos/{owner}/{repo}/topics | Replace list of topics for a repository |
|
@@ -468,7 +471,7 @@ nil (empty response body)
|
|
468
471
|
### HTTP request headers
|
469
472
|
|
470
473
|
- **Content-Type**: application/json, text/plain
|
471
|
-
- **Accept**:
|
474
|
+
- **Accept**: application/json
|
472
475
|
|
473
476
|
|
474
477
|
## delete_repo_secret
|
@@ -540,7 +543,7 @@ nil (empty response body)
|
|
540
543
|
### HTTP request headers
|
541
544
|
|
542
545
|
- **Content-Type**: Not defined
|
543
|
-
- **Accept**:
|
546
|
+
- **Accept**: application/json
|
544
547
|
|
545
548
|
|
546
549
|
## delete_repo_variable
|
@@ -689,7 +692,7 @@ nil (empty response body)
|
|
689
692
|
### HTTP request headers
|
690
693
|
|
691
694
|
- **Content-Type**: application/json
|
692
|
-
- **Accept**:
|
695
|
+
- **Accept**: application/json, text/html
|
693
696
|
|
694
697
|
|
695
698
|
## generate_repo
|
@@ -1442,7 +1445,7 @@ nil (empty response body)
|
|
1442
1445
|
### HTTP request headers
|
1443
1446
|
|
1444
1447
|
- **Content-Type**: application/json, text/plain
|
1445
|
-
- **Accept**:
|
1448
|
+
- **Accept**: application/json
|
1446
1449
|
|
1447
1450
|
|
1448
1451
|
## repo_add_flag
|
@@ -1514,7 +1517,7 @@ nil (empty response body)
|
|
1514
1517
|
### HTTP request headers
|
1515
1518
|
|
1516
1519
|
- **Content-Type**: Not defined
|
1517
|
-
- **Accept**:
|
1520
|
+
- **Accept**: application/json
|
1518
1521
|
|
1519
1522
|
|
1520
1523
|
## repo_add_push_mirror
|
@@ -1661,7 +1664,7 @@ nil (empty response body)
|
|
1661
1664
|
### HTTP request headers
|
1662
1665
|
|
1663
1666
|
- **Content-Type**: Not defined
|
1664
|
-
- **Accept**:
|
1667
|
+
- **Accept**: application/json
|
1665
1668
|
|
1666
1669
|
|
1667
1670
|
## repo_add_topic
|
@@ -1733,7 +1736,7 @@ nil (empty response body)
|
|
1733
1736
|
### HTTP request headers
|
1734
1737
|
|
1735
1738
|
- **Content-Type**: Not defined
|
1736
|
-
- **Accept**:
|
1739
|
+
- **Accept**: application/json
|
1737
1740
|
|
1738
1741
|
|
1739
1742
|
## repo_apply_diff_patch
|
@@ -1878,7 +1881,7 @@ nil (empty response body)
|
|
1878
1881
|
### HTTP request headers
|
1879
1882
|
|
1880
1883
|
- **Content-Type**: Not defined
|
1881
|
-
- **Accept**:
|
1884
|
+
- **Accept**: application/json
|
1882
1885
|
|
1883
1886
|
|
1884
1887
|
## repo_change_files
|
@@ -2023,7 +2026,7 @@ nil (empty response body)
|
|
2023
2026
|
### HTTP request headers
|
2024
2027
|
|
2025
2028
|
- **Content-Type**: Not defined
|
2026
|
-
- **Accept**:
|
2029
|
+
- **Accept**: application/json
|
2027
2030
|
|
2028
2031
|
|
2029
2032
|
## repo_check_flag
|
@@ -2095,7 +2098,7 @@ nil (empty response body)
|
|
2095
2098
|
### HTTP request headers
|
2096
2099
|
|
2097
2100
|
- **Content-Type**: Not defined
|
2098
|
-
- **Accept**:
|
2101
|
+
- **Accept**: application/json
|
2099
2102
|
|
2100
2103
|
|
2101
2104
|
## repo_check_team
|
@@ -3021,7 +3024,8 @@ repo = 'repo_example' # String | name of the repo
|
|
3021
3024
|
id = 789 # Integer | id of the release
|
3022
3025
|
opts = {
|
3023
3026
|
name: 'name_example', # String | name of the attachment
|
3024
|
-
attachment: File.new('/path/to/some/file') # File | attachment to upload
|
3027
|
+
attachment: File.new('/path/to/some/file'), # File | attachment to upload (this parameter is incompatible with `external_url`)
|
3028
|
+
external_url: 'external_url_example' # String | url to external asset (this parameter is incompatible with `attachment`)
|
3025
3029
|
}
|
3026
3030
|
|
3027
3031
|
begin
|
@@ -3059,7 +3063,8 @@ end
|
|
3059
3063
|
| **repo** | **String** | name of the repo | |
|
3060
3064
|
| **id** | **Integer** | id of the release | |
|
3061
3065
|
| **name** | **String** | name of the attachment | [optional] |
|
3062
|
-
| **attachment** | **File** | attachment to upload | [optional] |
|
3066
|
+
| **attachment** | **File** | attachment to upload (this parameter is incompatible with `external_url`) | [optional] |
|
3067
|
+
| **external_url** | **String** | url to external asset (this parameter is incompatible with `attachment`) | [optional] |
|
3063
3068
|
|
3064
3069
|
### Return type
|
3065
3070
|
|
@@ -3444,7 +3449,7 @@ nil (empty response body)
|
|
3444
3449
|
### HTTP request headers
|
3445
3450
|
|
3446
3451
|
- **Content-Type**: Not defined
|
3447
|
-
- **Accept**:
|
3452
|
+
- **Accept**: application/json
|
3448
3453
|
|
3449
3454
|
|
3450
3455
|
## repo_delete_all_flags
|
@@ -3514,7 +3519,7 @@ nil (empty response body)
|
|
3514
3519
|
### HTTP request headers
|
3515
3520
|
|
3516
3521
|
- **Content-Type**: Not defined
|
3517
|
-
- **Accept**:
|
3522
|
+
- **Accept**: application/json
|
3518
3523
|
|
3519
3524
|
|
3520
3525
|
## repo_delete_avatar
|
@@ -3584,7 +3589,7 @@ nil (empty response body)
|
|
3584
3589
|
### HTTP request headers
|
3585
3590
|
|
3586
3591
|
- **Content-Type**: Not defined
|
3587
|
-
- **Accept**:
|
3592
|
+
- **Accept**: application/json
|
3588
3593
|
|
3589
3594
|
|
3590
3595
|
## repo_delete_branch
|
@@ -3656,7 +3661,7 @@ nil (empty response body)
|
|
3656
3661
|
### HTTP request headers
|
3657
3662
|
|
3658
3663
|
- **Content-Type**: Not defined
|
3659
|
-
- **Accept**:
|
3664
|
+
- **Accept**: application/json
|
3660
3665
|
|
3661
3666
|
|
3662
3667
|
## repo_delete_branch_protection
|
@@ -3728,7 +3733,7 @@ nil (empty response body)
|
|
3728
3733
|
### HTTP request headers
|
3729
3734
|
|
3730
3735
|
- **Content-Type**: Not defined
|
3731
|
-
- **Accept**:
|
3736
|
+
- **Accept**: application/json
|
3732
3737
|
|
3733
3738
|
|
3734
3739
|
## repo_delete_collaborator
|
@@ -3800,7 +3805,7 @@ nil (empty response body)
|
|
3800
3805
|
### HTTP request headers
|
3801
3806
|
|
3802
3807
|
- **Content-Type**: Not defined
|
3803
|
-
- **Accept**:
|
3808
|
+
- **Accept**: application/json
|
3804
3809
|
|
3805
3810
|
|
3806
3811
|
## repo_delete_file
|
@@ -3947,7 +3952,7 @@ nil (empty response body)
|
|
3947
3952
|
### HTTP request headers
|
3948
3953
|
|
3949
3954
|
- **Content-Type**: Not defined
|
3950
|
-
- **Accept**:
|
3955
|
+
- **Accept**: application/json
|
3951
3956
|
|
3952
3957
|
|
3953
3958
|
## repo_delete_git_hook
|
@@ -4019,7 +4024,7 @@ nil (empty response body)
|
|
4019
4024
|
### HTTP request headers
|
4020
4025
|
|
4021
4026
|
- **Content-Type**: Not defined
|
4022
|
-
- **Accept**:
|
4027
|
+
- **Accept**: application/json
|
4023
4028
|
|
4024
4029
|
|
4025
4030
|
## repo_delete_hook
|
@@ -4091,7 +4096,7 @@ nil (empty response body)
|
|
4091
4096
|
### HTTP request headers
|
4092
4097
|
|
4093
4098
|
- **Content-Type**: Not defined
|
4094
|
-
- **Accept**:
|
4099
|
+
- **Accept**: application/json
|
4095
4100
|
|
4096
4101
|
|
4097
4102
|
## repo_delete_key
|
@@ -4163,7 +4168,7 @@ nil (empty response body)
|
|
4163
4168
|
### HTTP request headers
|
4164
4169
|
|
4165
4170
|
- **Content-Type**: Not defined
|
4166
|
-
- **Accept**:
|
4171
|
+
- **Accept**: application/json, text/html
|
4167
4172
|
|
4168
4173
|
|
4169
4174
|
## repo_delete_pull_review
|
@@ -4237,7 +4242,7 @@ nil (empty response body)
|
|
4237
4242
|
### HTTP request headers
|
4238
4243
|
|
4239
4244
|
- **Content-Type**: Not defined
|
4240
|
-
- **Accept**:
|
4245
|
+
- **Accept**: application/json
|
4241
4246
|
|
4242
4247
|
|
4243
4248
|
## repo_delete_pull_review_comment
|
@@ -4313,7 +4318,7 @@ nil (empty response body)
|
|
4313
4318
|
### HTTP request headers
|
4314
4319
|
|
4315
4320
|
- **Content-Type**: Not defined
|
4316
|
-
- **Accept**:
|
4321
|
+
- **Accept**: application/json
|
4317
4322
|
|
4318
4323
|
|
4319
4324
|
## repo_delete_pull_review_requests
|
@@ -4387,7 +4392,7 @@ nil (empty response body)
|
|
4387
4392
|
### HTTP request headers
|
4388
4393
|
|
4389
4394
|
- **Content-Type**: application/json, text/plain
|
4390
|
-
- **Accept**:
|
4395
|
+
- **Accept**: application/json
|
4391
4396
|
|
4392
4397
|
|
4393
4398
|
## repo_delete_push_mirror
|
@@ -4459,7 +4464,7 @@ nil (empty response body)
|
|
4459
4464
|
### HTTP request headers
|
4460
4465
|
|
4461
4466
|
- **Content-Type**: Not defined
|
4462
|
-
- **Accept**:
|
4467
|
+
- **Accept**: application/json
|
4463
4468
|
|
4464
4469
|
|
4465
4470
|
## repo_delete_release
|
@@ -4531,7 +4536,7 @@ nil (empty response body)
|
|
4531
4536
|
### HTTP request headers
|
4532
4537
|
|
4533
4538
|
- **Content-Type**: Not defined
|
4534
|
-
- **Accept**:
|
4539
|
+
- **Accept**: application/json, text/html
|
4535
4540
|
|
4536
4541
|
|
4537
4542
|
## repo_delete_release_attachment
|
@@ -4605,7 +4610,7 @@ nil (empty response body)
|
|
4605
4610
|
### HTTP request headers
|
4606
4611
|
|
4607
4612
|
- **Content-Type**: Not defined
|
4608
|
-
- **Accept**:
|
4613
|
+
- **Accept**: application/json
|
4609
4614
|
|
4610
4615
|
|
4611
4616
|
## repo_delete_release_by_tag
|
@@ -4677,7 +4682,7 @@ nil (empty response body)
|
|
4677
4682
|
### HTTP request headers
|
4678
4683
|
|
4679
4684
|
- **Content-Type**: Not defined
|
4680
|
-
- **Accept**:
|
4685
|
+
- **Accept**: application/json, text/html
|
4681
4686
|
|
4682
4687
|
|
4683
4688
|
## repo_delete_tag
|
@@ -4749,7 +4754,7 @@ nil (empty response body)
|
|
4749
4754
|
### HTTP request headers
|
4750
4755
|
|
4751
4756
|
- **Content-Type**: Not defined
|
4752
|
-
- **Accept**:
|
4757
|
+
- **Accept**: application/json
|
4753
4758
|
|
4754
4759
|
|
4755
4760
|
## repo_delete_tag_protection
|
@@ -4821,7 +4826,7 @@ nil (empty response body)
|
|
4821
4826
|
### HTTP request headers
|
4822
4827
|
|
4823
4828
|
- **Content-Type**: Not defined
|
4824
|
-
- **Accept**:
|
4829
|
+
- **Accept**: application/json
|
4825
4830
|
|
4826
4831
|
|
4827
4832
|
## repo_delete_team
|
@@ -4893,7 +4898,7 @@ nil (empty response body)
|
|
4893
4898
|
### HTTP request headers
|
4894
4899
|
|
4895
4900
|
- **Content-Type**: Not defined
|
4896
|
-
- **Accept**:
|
4901
|
+
- **Accept**: application/json
|
4897
4902
|
|
4898
4903
|
|
4899
4904
|
## repo_delete_topic
|
@@ -4965,7 +4970,7 @@ nil (empty response body)
|
|
4965
4970
|
### HTTP request headers
|
4966
4971
|
|
4967
4972
|
- **Content-Type**: Not defined
|
4968
|
-
- **Accept**:
|
4973
|
+
- **Accept**: application/json
|
4969
4974
|
|
4970
4975
|
|
4971
4976
|
## repo_delete_wiki_page
|
@@ -5037,7 +5042,7 @@ nil (empty response body)
|
|
5037
5042
|
### HTTP request headers
|
5038
5043
|
|
5039
5044
|
- **Content-Type**: Not defined
|
5040
|
-
- **Accept**:
|
5045
|
+
- **Accept**: application/json, text/html
|
5041
5046
|
|
5042
5047
|
|
5043
5048
|
## repo_dismiss_pull_review
|
@@ -6193,7 +6198,7 @@ nil (empty response body)
|
|
6193
6198
|
### HTTP request headers
|
6194
6199
|
|
6195
6200
|
- **Content-Type**: Not defined
|
6196
|
-
- **Accept**:
|
6201
|
+
- **Accept**: application/octet-stream, application/zip, application/gzip
|
6197
6202
|
|
6198
6203
|
|
6199
6204
|
## repo_get_assignees
|
@@ -6859,7 +6864,7 @@ nil (empty response body)
|
|
6859
6864
|
### HTTP request headers
|
6860
6865
|
|
6861
6866
|
- **Content-Type**: Not defined
|
6862
|
-
- **Accept**:
|
6867
|
+
- **Accept**: application/json
|
6863
6868
|
|
6864
6869
|
|
6865
6870
|
## repo_get_git_hook
|
@@ -8060,7 +8065,7 @@ end
|
|
8060
8065
|
|
8061
8066
|
## repo_get_raw_file
|
8062
8067
|
|
8063
|
-
> repo_get_raw_file(owner, repo, filepath, opts)
|
8068
|
+
> File repo_get_raw_file(owner, repo, filepath, opts)
|
8064
8069
|
|
8065
8070
|
Get a file from a repository
|
8066
8071
|
|
@@ -8087,7 +8092,8 @@ opts = {
|
|
8087
8092
|
|
8088
8093
|
begin
|
8089
8094
|
# Get a file from a repository
|
8090
|
-
api_instance.repo_get_raw_file(owner, repo, filepath, opts)
|
8095
|
+
result = api_instance.repo_get_raw_file(owner, repo, filepath, opts)
|
8096
|
+
p result
|
8091
8097
|
rescue Forgejo::ApiError => e
|
8092
8098
|
puts "Error when calling RepositoryApi->repo_get_raw_file: #{e}"
|
8093
8099
|
end
|
@@ -8095,9 +8101,9 @@ end
|
|
8095
8101
|
|
8096
8102
|
#### Using the repo_get_raw_file_with_http_info variant
|
8097
8103
|
|
8098
|
-
This returns an Array which contains the response data
|
8104
|
+
This returns an Array which contains the response data, status code and headers.
|
8099
8105
|
|
8100
|
-
> <Array(
|
8106
|
+
> <Array(File, Integer, Hash)> repo_get_raw_file_with_http_info(owner, repo, filepath, opts)
|
8101
8107
|
|
8102
8108
|
```ruby
|
8103
8109
|
begin
|
@@ -8105,7 +8111,7 @@ begin
|
|
8105
8111
|
data, status_code, headers = api_instance.repo_get_raw_file_with_http_info(owner, repo, filepath, opts)
|
8106
8112
|
p status_code # => 2xx
|
8107
8113
|
p headers # => { ... }
|
8108
|
-
p data # =>
|
8114
|
+
p data # => File
|
8109
8115
|
rescue Forgejo::ApiError => e
|
8110
8116
|
puts "Error when calling RepositoryApi->repo_get_raw_file_with_http_info: #{e}"
|
8111
8117
|
end
|
@@ -8122,7 +8128,7 @@ end
|
|
8122
8128
|
|
8123
8129
|
### Return type
|
8124
8130
|
|
8125
|
-
|
8131
|
+
**File**
|
8126
8132
|
|
8127
8133
|
### Authorization
|
8128
8134
|
|
@@ -8131,12 +8137,12 @@ nil (empty response body)
|
|
8131
8137
|
### HTTP request headers
|
8132
8138
|
|
8133
8139
|
- **Content-Type**: Not defined
|
8134
|
-
- **Accept**:
|
8140
|
+
- **Accept**: application/octet-stream
|
8135
8141
|
|
8136
8142
|
|
8137
8143
|
## repo_get_raw_file_or_lfs
|
8138
8144
|
|
8139
|
-
> repo_get_raw_file_or_lfs(owner, repo, filepath, opts)
|
8145
|
+
> File repo_get_raw_file_or_lfs(owner, repo, filepath, opts)
|
8140
8146
|
|
8141
8147
|
Get a file or it's LFS object from a repository
|
8142
8148
|
|
@@ -8163,7 +8169,8 @@ opts = {
|
|
8163
8169
|
|
8164
8170
|
begin
|
8165
8171
|
# Get a file or it's LFS object from a repository
|
8166
|
-
api_instance.repo_get_raw_file_or_lfs(owner, repo, filepath, opts)
|
8172
|
+
result = api_instance.repo_get_raw_file_or_lfs(owner, repo, filepath, opts)
|
8173
|
+
p result
|
8167
8174
|
rescue Forgejo::ApiError => e
|
8168
8175
|
puts "Error when calling RepositoryApi->repo_get_raw_file_or_lfs: #{e}"
|
8169
8176
|
end
|
@@ -8171,9 +8178,9 @@ end
|
|
8171
8178
|
|
8172
8179
|
#### Using the repo_get_raw_file_or_lfs_with_http_info variant
|
8173
8180
|
|
8174
|
-
This returns an Array which contains the response data
|
8181
|
+
This returns an Array which contains the response data, status code and headers.
|
8175
8182
|
|
8176
|
-
> <Array(
|
8183
|
+
> <Array(File, Integer, Hash)> repo_get_raw_file_or_lfs_with_http_info(owner, repo, filepath, opts)
|
8177
8184
|
|
8178
8185
|
```ruby
|
8179
8186
|
begin
|
@@ -8181,7 +8188,7 @@ begin
|
|
8181
8188
|
data, status_code, headers = api_instance.repo_get_raw_file_or_lfs_with_http_info(owner, repo, filepath, opts)
|
8182
8189
|
p status_code # => 2xx
|
8183
8190
|
p headers # => { ... }
|
8184
|
-
p data # =>
|
8191
|
+
p data # => File
|
8185
8192
|
rescue Forgejo::ApiError => e
|
8186
8193
|
puts "Error when calling RepositoryApi->repo_get_raw_file_or_lfs_with_http_info: #{e}"
|
8187
8194
|
end
|
@@ -8198,7 +8205,7 @@ end
|
|
8198
8205
|
|
8199
8206
|
### Return type
|
8200
8207
|
|
8201
|
-
|
8208
|
+
**File**
|
8202
8209
|
|
8203
8210
|
### Authorization
|
8204
8211
|
|
@@ -8207,7 +8214,7 @@ nil (empty response body)
|
|
8207
8214
|
### HTTP request headers
|
8208
8215
|
|
8209
8216
|
- **Content-Type**: Not defined
|
8210
|
-
- **Accept**:
|
8217
|
+
- **Accept**: application/octet-stream
|
8211
8218
|
|
8212
8219
|
|
8213
8220
|
## repo_get_release
|
@@ -10086,15 +10093,16 @@ Forgejo.configure do |config|
|
|
10086
10093
|
end
|
10087
10094
|
|
10088
10095
|
api_instance = Forgejo::RepositoryApi.new
|
10089
|
-
owner = 'owner_example' # String |
|
10090
|
-
repo = 'repo_example' # String |
|
10096
|
+
owner = 'owner_example' # String | Owner of the repo
|
10097
|
+
repo = 'repo_example' # String | Name of the repo
|
10091
10098
|
opts = {
|
10092
|
-
state: '
|
10099
|
+
state: 'open', # String | State of pull request
|
10093
10100
|
sort: 'oldest', # String | Type of sort
|
10094
10101
|
milestone: 789, # Integer | ID of the milestone
|
10095
10102
|
labels: [3.56], # Array<Integer> | Label IDs
|
10096
|
-
|
10097
|
-
|
10103
|
+
poster: 'poster_example', # String | Filter by pull request author
|
10104
|
+
page: 56, # Integer | Page number of results to return (1-based)
|
10105
|
+
limit: 56 # Integer | Page size of results
|
10098
10106
|
}
|
10099
10107
|
|
10100
10108
|
begin
|
@@ -10128,14 +10136,15 @@ end
|
|
10128
10136
|
|
10129
10137
|
| Name | Type | Description | Notes |
|
10130
10138
|
| ---- | ---- | ----------- | ----- |
|
10131
|
-
| **owner** | **String** |
|
10132
|
-
| **repo** | **String** |
|
10133
|
-
| **state** | **String** | State of pull request
|
10139
|
+
| **owner** | **String** | Owner of the repo | |
|
10140
|
+
| **repo** | **String** | Name of the repo | |
|
10141
|
+
| **state** | **String** | State of pull request | [optional][default to 'open'] |
|
10134
10142
|
| **sort** | **String** | Type of sort | [optional] |
|
10135
10143
|
| **milestone** | **Integer** | ID of the milestone | [optional] |
|
10136
10144
|
| **labels** | [**Array<Integer>**](Integer.md) | Label IDs | [optional] |
|
10137
|
-
| **
|
10138
|
-
| **
|
10145
|
+
| **poster** | **String** | Filter by pull request author | [optional] |
|
10146
|
+
| **page** | **Integer** | Page number of results to return (1-based) | [optional][default to 1] |
|
10147
|
+
| **limit** | **Integer** | Page size of results | [optional] |
|
10139
10148
|
|
10140
10149
|
### Return type
|
10141
10150
|
|
@@ -10405,6 +10414,7 @@ repo = 'repo_example' # String | name of the repo
|
|
10405
10414
|
opts = {
|
10406
10415
|
draft: true, # Boolean | filter (exclude / include) drafts, if you dont have repo write access none will show
|
10407
10416
|
pre_release: true, # Boolean | filter (exclude / include) pre-releases
|
10417
|
+
q: 'q_example', # String | Search string
|
10408
10418
|
page: 56, # Integer | page number of results to return (1-based)
|
10409
10419
|
limit: 56 # Integer | page size of results
|
10410
10420
|
}
|
@@ -10444,6 +10454,7 @@ end
|
|
10444
10454
|
| **repo** | **String** | name of the repo | |
|
10445
10455
|
| **draft** | **Boolean** | filter (exclude / include) drafts, if you dont have repo write access none will show | [optional] |
|
10446
10456
|
| **pre_release** | **Boolean** | filter (exclude / include) pre-releases | [optional] |
|
10457
|
+
| **q** | **String** | Search string | [optional] |
|
10447
10458
|
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
10448
10459
|
| **limit** | **Integer** | page size of results | [optional] |
|
10449
10460
|
|
@@ -11150,7 +11161,7 @@ nil (empty response body)
|
|
11150
11161
|
### HTTP request headers
|
11151
11162
|
|
11152
11163
|
- **Content-Type**: application/json, text/plain
|
11153
|
-
- **Accept**:
|
11164
|
+
- **Accept**: application/json
|
11154
11165
|
|
11155
11166
|
|
11156
11167
|
## repo_migrate
|
@@ -11291,7 +11302,7 @@ nil (empty response body)
|
|
11291
11302
|
### HTTP request headers
|
11292
11303
|
|
11293
11304
|
- **Content-Type**: Not defined
|
11294
|
-
- **Accept**:
|
11305
|
+
- **Accept**: application/json
|
11295
11306
|
|
11296
11307
|
|
11297
11308
|
## repo_new_pin_allowed
|
@@ -11504,7 +11515,79 @@ nil (empty response body)
|
|
11504
11515
|
### HTTP request headers
|
11505
11516
|
|
11506
11517
|
- **Content-Type**: Not defined
|
11507
|
-
- **Accept**:
|
11518
|
+
- **Accept**: application/json
|
11519
|
+
|
11520
|
+
|
11521
|
+
## repo_remove_note
|
11522
|
+
|
11523
|
+
> repo_remove_note(owner, repo, sha)
|
11524
|
+
|
11525
|
+
Removes a note corresponding to a single commit from a repository
|
11526
|
+
|
11527
|
+
### Examples
|
11528
|
+
|
11529
|
+
```ruby
|
11530
|
+
require 'time'
|
11531
|
+
require 'forgejo'
|
11532
|
+
# setup authorization
|
11533
|
+
Forgejo.configure do |config|
|
11534
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
11535
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
11536
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
11537
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
11538
|
+
end
|
11539
|
+
|
11540
|
+
api_instance = Forgejo::RepositoryApi.new
|
11541
|
+
owner = 'owner_example' # String | owner of the repo
|
11542
|
+
repo = 'repo_example' # String | name of the repo
|
11543
|
+
sha = 'sha_example' # String | a git ref or commit sha
|
11544
|
+
|
11545
|
+
begin
|
11546
|
+
# Removes a note corresponding to a single commit from a repository
|
11547
|
+
api_instance.repo_remove_note(owner, repo, sha)
|
11548
|
+
rescue Forgejo::ApiError => e
|
11549
|
+
puts "Error when calling RepositoryApi->repo_remove_note: #{e}"
|
11550
|
+
end
|
11551
|
+
```
|
11552
|
+
|
11553
|
+
#### Using the repo_remove_note_with_http_info variant
|
11554
|
+
|
11555
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
11556
|
+
|
11557
|
+
> <Array(nil, Integer, Hash)> repo_remove_note_with_http_info(owner, repo, sha)
|
11558
|
+
|
11559
|
+
```ruby
|
11560
|
+
begin
|
11561
|
+
# Removes a note corresponding to a single commit from a repository
|
11562
|
+
data, status_code, headers = api_instance.repo_remove_note_with_http_info(owner, repo, sha)
|
11563
|
+
p status_code # => 2xx
|
11564
|
+
p headers # => { ... }
|
11565
|
+
p data # => nil
|
11566
|
+
rescue Forgejo::ApiError => e
|
11567
|
+
puts "Error when calling RepositoryApi->repo_remove_note_with_http_info: #{e}"
|
11568
|
+
end
|
11569
|
+
```
|
11570
|
+
|
11571
|
+
### Parameters
|
11572
|
+
|
11573
|
+
| Name | Type | Description | Notes |
|
11574
|
+
| ---- | ---- | ----------- | ----- |
|
11575
|
+
| **owner** | **String** | owner of the repo | |
|
11576
|
+
| **repo** | **String** | name of the repo | |
|
11577
|
+
| **sha** | **String** | a git ref or commit sha | |
|
11578
|
+
|
11579
|
+
### Return type
|
11580
|
+
|
11581
|
+
nil (empty response body)
|
11582
|
+
|
11583
|
+
### Authorization
|
11584
|
+
|
11585
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
11586
|
+
|
11587
|
+
### HTTP request headers
|
11588
|
+
|
11589
|
+
- **Content-Type**: Not defined
|
11590
|
+
- **Accept**: application/json
|
11508
11591
|
|
11509
11592
|
|
11510
11593
|
## repo_replace_all_flags
|
@@ -11578,7 +11661,7 @@ nil (empty response body)
|
|
11578
11661
|
### HTTP request headers
|
11579
11662
|
|
11580
11663
|
- **Content-Type**: application/json, text/plain
|
11581
|
-
- **Accept**:
|
11664
|
+
- **Accept**: application/json
|
11582
11665
|
|
11583
11666
|
|
11584
11667
|
## repo_search
|
@@ -11684,6 +11767,83 @@ end
|
|
11684
11767
|
- **Accept**: application/json
|
11685
11768
|
|
11686
11769
|
|
11770
|
+
## repo_set_note
|
11771
|
+
|
11772
|
+
> <Note> repo_set_note(owner, repo, sha, opts)
|
11773
|
+
|
11774
|
+
Set a note corresponding to a single commit from a repository
|
11775
|
+
|
11776
|
+
### Examples
|
11777
|
+
|
11778
|
+
```ruby
|
11779
|
+
require 'time'
|
11780
|
+
require 'forgejo'
|
11781
|
+
# setup authorization
|
11782
|
+
Forgejo.configure do |config|
|
11783
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
11784
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
11785
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
11786
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
11787
|
+
end
|
11788
|
+
|
11789
|
+
api_instance = Forgejo::RepositoryApi.new
|
11790
|
+
owner = 'owner_example' # String | owner of the repo
|
11791
|
+
repo = 'repo_example' # String | name of the repo
|
11792
|
+
sha = 'sha_example' # String | a git ref or commit sha
|
11793
|
+
opts = {
|
11794
|
+
body: Forgejo::NoteOptions.new # NoteOptions |
|
11795
|
+
}
|
11796
|
+
|
11797
|
+
begin
|
11798
|
+
# Set a note corresponding to a single commit from a repository
|
11799
|
+
result = api_instance.repo_set_note(owner, repo, sha, opts)
|
11800
|
+
p result
|
11801
|
+
rescue Forgejo::ApiError => e
|
11802
|
+
puts "Error when calling RepositoryApi->repo_set_note: #{e}"
|
11803
|
+
end
|
11804
|
+
```
|
11805
|
+
|
11806
|
+
#### Using the repo_set_note_with_http_info variant
|
11807
|
+
|
11808
|
+
This returns an Array which contains the response data, status code and headers.
|
11809
|
+
|
11810
|
+
> <Array(<Note>, Integer, Hash)> repo_set_note_with_http_info(owner, repo, sha, opts)
|
11811
|
+
|
11812
|
+
```ruby
|
11813
|
+
begin
|
11814
|
+
# Set a note corresponding to a single commit from a repository
|
11815
|
+
data, status_code, headers = api_instance.repo_set_note_with_http_info(owner, repo, sha, opts)
|
11816
|
+
p status_code # => 2xx
|
11817
|
+
p headers # => { ... }
|
11818
|
+
p data # => <Note>
|
11819
|
+
rescue Forgejo::ApiError => e
|
11820
|
+
puts "Error when calling RepositoryApi->repo_set_note_with_http_info: #{e}"
|
11821
|
+
end
|
11822
|
+
```
|
11823
|
+
|
11824
|
+
### Parameters
|
11825
|
+
|
11826
|
+
| Name | Type | Description | Notes |
|
11827
|
+
| ---- | ---- | ----------- | ----- |
|
11828
|
+
| **owner** | **String** | owner of the repo | |
|
11829
|
+
| **repo** | **String** | name of the repo | |
|
11830
|
+
| **sha** | **String** | a git ref or commit sha | |
|
11831
|
+
| **body** | [**NoteOptions**](NoteOptions.md) | | [optional] |
|
11832
|
+
|
11833
|
+
### Return type
|
11834
|
+
|
11835
|
+
[**Note**](Note.md)
|
11836
|
+
|
11837
|
+
### Authorization
|
11838
|
+
|
11839
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
11840
|
+
|
11841
|
+
### HTTP request headers
|
11842
|
+
|
11843
|
+
- **Content-Type**: application/json, text/plain
|
11844
|
+
- **Accept**: application/json
|
11845
|
+
|
11846
|
+
|
11687
11847
|
## repo_signing_key
|
11688
11848
|
|
11689
11849
|
> String repo_signing_key(owner, repo)
|
@@ -11905,7 +12065,7 @@ nil (empty response body)
|
|
11905
12065
|
### HTTP request headers
|
11906
12066
|
|
11907
12067
|
- **Content-Type**: Not defined
|
11908
|
-
- **Accept**:
|
12068
|
+
- **Accept**: application/json
|
11909
12069
|
|
11910
12070
|
|
11911
12071
|
## repo_tracked_times
|
@@ -12210,7 +12370,83 @@ nil (empty response body)
|
|
12210
12370
|
### HTTP request headers
|
12211
12371
|
|
12212
12372
|
- **Content-Type**: application/json, text/plain
|
12213
|
-
- **Accept**:
|
12373
|
+
- **Accept**: application/json
|
12374
|
+
|
12375
|
+
|
12376
|
+
## repo_update_branch
|
12377
|
+
|
12378
|
+
> repo_update_branch(owner, repo, branch, opts)
|
12379
|
+
|
12380
|
+
Update a branch
|
12381
|
+
|
12382
|
+
### Examples
|
12383
|
+
|
12384
|
+
```ruby
|
12385
|
+
require 'time'
|
12386
|
+
require 'forgejo'
|
12387
|
+
# setup authorization
|
12388
|
+
Forgejo.configure do |config|
|
12389
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
12390
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
12391
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
12392
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
12393
|
+
end
|
12394
|
+
|
12395
|
+
api_instance = Forgejo::RepositoryApi.new
|
12396
|
+
owner = 'owner_example' # String | owner of the repo
|
12397
|
+
repo = 'repo_example' # String | name of the repo
|
12398
|
+
branch = 'branch_example' # String | name of the branch
|
12399
|
+
opts = {
|
12400
|
+
body: Forgejo::UpdateBranchRepoOption.new({name: 'name_example'}) # UpdateBranchRepoOption |
|
12401
|
+
}
|
12402
|
+
|
12403
|
+
begin
|
12404
|
+
# Update a branch
|
12405
|
+
api_instance.repo_update_branch(owner, repo, branch, opts)
|
12406
|
+
rescue Forgejo::ApiError => e
|
12407
|
+
puts "Error when calling RepositoryApi->repo_update_branch: #{e}"
|
12408
|
+
end
|
12409
|
+
```
|
12410
|
+
|
12411
|
+
#### Using the repo_update_branch_with_http_info variant
|
12412
|
+
|
12413
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
12414
|
+
|
12415
|
+
> <Array(nil, Integer, Hash)> repo_update_branch_with_http_info(owner, repo, branch, opts)
|
12416
|
+
|
12417
|
+
```ruby
|
12418
|
+
begin
|
12419
|
+
# Update a branch
|
12420
|
+
data, status_code, headers = api_instance.repo_update_branch_with_http_info(owner, repo, branch, opts)
|
12421
|
+
p status_code # => 2xx
|
12422
|
+
p headers # => { ... }
|
12423
|
+
p data # => nil
|
12424
|
+
rescue Forgejo::ApiError => e
|
12425
|
+
puts "Error when calling RepositoryApi->repo_update_branch_with_http_info: #{e}"
|
12426
|
+
end
|
12427
|
+
```
|
12428
|
+
|
12429
|
+
### Parameters
|
12430
|
+
|
12431
|
+
| Name | Type | Description | Notes |
|
12432
|
+
| ---- | ---- | ----------- | ----- |
|
12433
|
+
| **owner** | **String** | owner of the repo | |
|
12434
|
+
| **repo** | **String** | name of the repo | |
|
12435
|
+
| **branch** | **String** | name of the branch | |
|
12436
|
+
| **body** | [**UpdateBranchRepoOption**](UpdateBranchRepoOption.md) | | [optional] |
|
12437
|
+
|
12438
|
+
### Return type
|
12439
|
+
|
12440
|
+
nil (empty response body)
|
12441
|
+
|
12442
|
+
### Authorization
|
12443
|
+
|
12444
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
12445
|
+
|
12446
|
+
### HTTP request headers
|
12447
|
+
|
12448
|
+
- **Content-Type**: application/json
|
12449
|
+
- **Accept**: application/json
|
12214
12450
|
|
12215
12451
|
|
12216
12452
|
## repo_update_file
|
@@ -12361,7 +12597,7 @@ nil (empty response body)
|
|
12361
12597
|
### HTTP request headers
|
12362
12598
|
|
12363
12599
|
- **Content-Type**: Not defined
|
12364
|
-
- **Accept**:
|
12600
|
+
- **Accept**: application/json
|
12365
12601
|
|
12366
12602
|
|
12367
12603
|
## repo_update_topics
|
@@ -12435,7 +12671,7 @@ nil (empty response body)
|
|
12435
12671
|
### HTTP request headers
|
12436
12672
|
|
12437
12673
|
- **Content-Type**: application/json, text/plain
|
12438
|
-
- **Accept**:
|
12674
|
+
- **Accept**: application/json
|
12439
12675
|
|
12440
12676
|
|
12441
12677
|
## repo_validate_issue_config
|
@@ -12657,7 +12893,7 @@ nil (empty response body)
|
|
12657
12893
|
### HTTP request headers
|
12658
12894
|
|
12659
12895
|
- **Content-Type**: application/json
|
12660
|
-
- **Accept**:
|
12896
|
+
- **Accept**: application/json
|
12661
12897
|
|
12662
12898
|
|
12663
12899
|
## update_repo_variable
|
@@ -12733,7 +12969,7 @@ nil (empty response body)
|
|
12733
12969
|
### HTTP request headers
|
12734
12970
|
|
12735
12971
|
- **Content-Type**: application/json, text/plain
|
12736
|
-
- **Accept**:
|
12972
|
+
- **Accept**: application/json
|
12737
12973
|
|
12738
12974
|
|
12739
12975
|
## user_current_check_subscription
|
@@ -12874,7 +13110,7 @@ nil (empty response body)
|
|
12874
13110
|
### HTTP request headers
|
12875
13111
|
|
12876
13112
|
- **Content-Type**: Not defined
|
12877
|
-
- **Accept**:
|
13113
|
+
- **Accept**: application/json, text/html
|
12878
13114
|
|
12879
13115
|
|
12880
13116
|
## user_current_put_subscription
|