forgejo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +9 -0
- data/LICENSE~ +9 -0
- data/Makefile +23 -0
- data/Makefile~ +2 -0
- data/README.md +717 -0
- data/Rakefile +10 -0
- data/docs/APIError.md +20 -0
- data/docs/AccessToken.md +26 -0
- data/docs/ActionTask.md +42 -0
- data/docs/ActionTaskResponse.md +20 -0
- data/docs/ActionVariable.md +24 -0
- data/docs/Activity.md +42 -0
- data/docs/ActivityPub.md +18 -0
- data/docs/ActivitypubApi.md +289 -0
- data/docs/AddCollaboratorOption.md +18 -0
- data/docs/AddTimeOption.md +22 -0
- data/docs/AdminApi.md +1672 -0
- data/docs/AnnotatedTag.md +32 -0
- data/docs/AnnotatedTagObject.md +22 -0
- data/docs/Attachment.md +30 -0
- data/docs/BlockedUser.md +20 -0
- data/docs/Branch.md +34 -0
- data/docs/BranchProtection.md +70 -0
- data/docs/ChangeFileOperation.md +26 -0
- data/docs/ChangeFilesOptions.md +32 -0
- data/docs/ChangedFile.md +34 -0
- data/docs/CombinedStatus.md +30 -0
- data/docs/Comment.md +38 -0
- data/docs/Commit.md +36 -0
- data/docs/CommitAffectedFiles.md +20 -0
- data/docs/CommitDateOptions.md +20 -0
- data/docs/CommitMeta.md +22 -0
- data/docs/CommitStats.md +22 -0
- data/docs/CommitStatus.md +34 -0
- data/docs/CommitUser.md +22 -0
- data/docs/Compare.md +20 -0
- data/docs/ContentsResponse.md +46 -0
- data/docs/CreateAccessTokenOption.md +20 -0
- data/docs/CreateBranchProtectionOption.md +66 -0
- data/docs/CreateBranchRepoOption.md +22 -0
- data/docs/CreateEmailOption.md +18 -0
- data/docs/CreateFileOptions.md +32 -0
- data/docs/CreateForkOption.md +20 -0
- data/docs/CreateGPGKeyOption.md +20 -0
- data/docs/CreateHookOption.md +28 -0
- data/docs/CreateIssueCommentOption.md +20 -0
- data/docs/CreateIssueOption.md +34 -0
- data/docs/CreateKeyOption.md +22 -0
- data/docs/CreateLabelOption.md +26 -0
- data/docs/CreateMilestoneOption.md +24 -0
- data/docs/CreateOAuth2ApplicationOptions.md +22 -0
- data/docs/CreateOrUpdateSecretOption.md +18 -0
- data/docs/CreateOrgOption.md +32 -0
- data/docs/CreatePullRequestOption.md +34 -0
- data/docs/CreatePullReviewComment.md +24 -0
- data/docs/CreatePullReviewOptions.md +24 -0
- data/docs/CreatePushMirrorOption.md +26 -0
- data/docs/CreateReleaseOption.md +30 -0
- data/docs/CreateRepoOption.md +40 -0
- data/docs/CreateStatusOption.md +24 -0
- data/docs/CreateTagOption.md +22 -0
- data/docs/CreateTagProtectionOption.md +22 -0
- data/docs/CreateTeamOption.md +30 -0
- data/docs/CreateUserOption.md +38 -0
- data/docs/CreateVariableOption.md +18 -0
- data/docs/CreateWikiPageOptions.md +22 -0
- data/docs/Cron.md +26 -0
- data/docs/DeleteEmailOption.md +18 -0
- data/docs/DeleteFileOptions.md +32 -0
- data/docs/DeleteLabelsOption.md +18 -0
- data/docs/DeployKey.md +34 -0
- data/docs/DismissPullReviewOptions.md +20 -0
- data/docs/DispatchWorkflowOption.md +20 -0
- data/docs/EditAttachmentOptions.md +18 -0
- data/docs/EditBranchProtectionOption.md +62 -0
- data/docs/EditDeadlineOption.md +18 -0
- data/docs/EditGitHookOption.md +18 -0
- data/docs/EditHookOption.md +26 -0
- data/docs/EditIssueCommentOption.md +20 -0
- data/docs/EditIssueOption.md +36 -0
- data/docs/EditLabelOption.md +26 -0
- data/docs/EditMilestoneOption.md +24 -0
- data/docs/EditOrgOption.md +30 -0
- data/docs/EditPullRequestOption.md +38 -0
- data/docs/EditReactionOption.md +18 -0
- data/docs/EditReleaseOption.md +30 -0
- data/docs/EditRepoOption.md +82 -0
- data/docs/EditTagProtectionOption.md +22 -0
- data/docs/EditTeamOption.md +30 -0
- data/docs/EditUserOption.md +54 -0
- data/docs/Email.md +26 -0
- data/docs/ExternalTracker.md +24 -0
- data/docs/ExternalWiki.md +18 -0
- data/docs/FileCommitResponse.md +34 -0
- data/docs/FileDeleteResponse.md +22 -0
- data/docs/FileLinksResponse.md +22 -0
- data/docs/FileResponse.md +22 -0
- data/docs/FilesResponse.md +22 -0
- data/docs/GPGKey.md +42 -0
- data/docs/GPGKeyEmail.md +20 -0
- data/docs/GeneralAPISettings.md +24 -0
- data/docs/GeneralAttachmentSettings.md +24 -0
- data/docs/GeneralRepoSettings.md +30 -0
- data/docs/GeneralUISettings.md +22 -0
- data/docs/GenerateRepoOption.md +40 -0
- data/docs/GitBlobResponse.md +26 -0
- data/docs/GitEntry.md +28 -0
- data/docs/GitHook.md +22 -0
- data/docs/GitObject.md +22 -0
- data/docs/GitTreeResponse.md +28 -0
- data/docs/GitignoreTemplateInfo.md +20 -0
- data/docs/Hook.md +40 -0
- data/docs/Identity.md +20 -0
- data/docs/InternalTracker.md +22 -0
- data/docs/Issue.md +66 -0
- data/docs/IssueApi.md +5206 -0
- data/docs/IssueConfig.md +20 -0
- data/docs/IssueConfigContactLink.md +22 -0
- data/docs/IssueConfigValidation.md +20 -0
- data/docs/IssueDeadline.md +18 -0
- data/docs/IssueFormField.md +26 -0
- data/docs/IssueLabelsOption.md +20 -0
- data/docs/IssueMeta.md +22 -0
- data/docs/IssueTemplate.md +32 -0
- data/docs/Label.md +30 -0
- data/docs/LabelTemplate.md +24 -0
- data/docs/LicenseTemplateInfo.md +26 -0
- data/docs/LicensesTemplateListEntry.md +22 -0
- data/docs/MarkdownOption.md +24 -0
- data/docs/MarkupOption.md +26 -0
- data/docs/MergePullRequestOption.md +32 -0
- data/docs/MigrateRepoOptions.md +56 -0
- data/docs/Milestone.md +36 -0
- data/docs/MiscellaneousApi.md +833 -0
- data/docs/NewIssuePinsAllowed.md +20 -0
- data/docs/NodeInfo.md +30 -0
- data/docs/NodeInfoServices.md +20 -0
- data/docs/NodeInfoSoftware.md +24 -0
- data/docs/NodeInfoUsage.md +22 -0
- data/docs/NodeInfoUsageUsers.md +22 -0
- data/docs/Note.md +20 -0
- data/docs/NotificationApi.md +550 -0
- data/docs/NotificationCount.md +18 -0
- data/docs/NotificationSubject.md +30 -0
- data/docs/NotificationThread.md +30 -0
- data/docs/OAuth2Application.md +30 -0
- data/docs/Organization.md +38 -0
- data/docs/OrganizationApi.md +4259 -0
- data/docs/OrganizationPermissions.md +26 -0
- data/docs/PRBranchInfo.md +26 -0
- data/docs/Package.md +34 -0
- data/docs/PackageApi.md +314 -0
- data/docs/PackageFile.md +30 -0
- data/docs/PayloadCommit.md +36 -0
- data/docs/PayloadCommitVerification.md +26 -0
- data/docs/PayloadUser.md +22 -0
- data/docs/Permission.md +22 -0
- data/docs/PublicKey.md +34 -0
- data/docs/PullRequest.md +88 -0
- data/docs/PullRequestMeta.md +24 -0
- data/docs/PullReview.md +44 -0
- data/docs/PullReviewComment.md +46 -0
- data/docs/PullReviewRequestOptions.md +20 -0
- data/docs/PushMirror.md +32 -0
- data/docs/Reaction.md +22 -0
- data/docs/Reference.md +22 -0
- data/docs/Release.md +52 -0
- data/docs/RenameUserOption.md +18 -0
- data/docs/ReplaceFlagsOption.md +18 -0
- data/docs/RepoCollaboratorPermission.md +22 -0
- data/docs/RepoCommit.md +28 -0
- data/docs/RepoCreateReleaseAttachmentRequest.md +18 -0
- data/docs/RepoTopicOptions.md +18 -0
- data/docs/RepoTransfer.md +22 -0
- data/docs/Repository.md +140 -0
- data/docs/RepositoryApi.md +13022 -0
- data/docs/RepositoryMeta.md +24 -0
- data/docs/SearchResults.md +20 -0
- data/docs/Secret.md +20 -0
- data/docs/ServerVersion.md +18 -0
- data/docs/SettingsApi.md +275 -0
- data/docs/StopWatch.md +30 -0
- data/docs/SubmitPullReviewOptions.md +20 -0
- data/docs/Tag.md +30 -0
- data/docs/TagArchiveDownloadCount.md +20 -0
- data/docs/TagProtection.md +28 -0
- data/docs/Team.md +34 -0
- data/docs/TeamSearch200Response.md +20 -0
- data/docs/TimelineComment.md +74 -0
- data/docs/TopicName.md +18 -0
- data/docs/TopicResponse.md +26 -0
- data/docs/TrackedTime.md +30 -0
- data/docs/TransferRepoOption.md +20 -0
- data/docs/UpdateFileOptions.md +36 -0
- data/docs/UpdateRepoAvatarOption.md +18 -0
- data/docs/UpdateUserAvatarOption.md +18 -0
- data/docs/UpdateVariableOption.md +20 -0
- data/docs/User.md +62 -0
- data/docs/UserApi.md +4969 -0
- data/docs/UserHeatmapData.md +20 -0
- data/docs/UserSearch200Response.md +20 -0
- data/docs/UserSettings.md +38 -0
- data/docs/UserSettingsOptions.md +38 -0
- data/docs/WatchInfo.md +28 -0
- data/docs/WikiCommit.md +24 -0
- data/docs/WikiCommitList.md +20 -0
- data/docs/WikiPage.md +32 -0
- data/docs/WikiPageMetaData.md +24 -0
- data/forgejo.gemspec +49 -0
- data/git_push.sh +57 -0
- data/lib/forgejo/api/activitypub_api.rb +269 -0
- data/lib/forgejo/api/admin_api.rb +1496 -0
- data/lib/forgejo/api/issue_api.rb +5282 -0
- data/lib/forgejo/api/miscellaneous_api.rb +725 -0
- data/lib/forgejo/api/notification_api.rb +520 -0
- data/lib/forgejo/api/organization_api.rb +3898 -0
- data/lib/forgejo/api/package_api.rb +334 -0
- data/lib/forgejo/api/repository_api.rb +12849 -0
- data/lib/forgejo/api/settings_api.rb +242 -0
- data/lib/forgejo/api/user_api.rb +4314 -0
- data/lib/forgejo/api_client.rb +437 -0
- data/lib/forgejo/api_error.rb +58 -0
- data/lib/forgejo/configuration.rb +392 -0
- data/lib/forgejo/models/access_token.rb +252 -0
- data/lib/forgejo/models/action_task.rb +323 -0
- data/lib/forgejo/models/action_task_response.rb +226 -0
- data/lib/forgejo/models/action_variable.rb +246 -0
- data/lib/forgejo/models/activity.rb +357 -0
- data/lib/forgejo/models/activity_pub.rb +215 -0
- data/lib/forgejo/models/add_collaborator_option.rb +215 -0
- data/lib/forgejo/models/add_time_option.rb +242 -0
- data/lib/forgejo/models/annotated_tag.rb +278 -0
- data/lib/forgejo/models/annotated_tag_object.rb +233 -0
- data/lib/forgejo/models/api_error.rb +224 -0
- data/lib/forgejo/models/attachment.rb +269 -0
- data/lib/forgejo/models/blocked_user.rb +223 -0
- data/lib/forgejo/models/branch.rb +289 -0
- data/lib/forgejo/models/branch_protection.rb +464 -0
- data/lib/forgejo/models/change_file_operation.rb +304 -0
- data/lib/forgejo/models/change_files_options.rb +292 -0
- data/lib/forgejo/models/changed_file.rb +287 -0
- data/lib/forgejo/models/combined_status.rb +272 -0
- data/lib/forgejo/models/comment.rb +307 -0
- data/lib/forgejo/models/commit.rb +299 -0
- data/lib/forgejo/models/commit_affected_files.rb +224 -0
- data/lib/forgejo/models/commit_date_options.rb +224 -0
- data/lib/forgejo/models/commit_meta.rb +232 -0
- data/lib/forgejo/models/commit_stats.rb +233 -0
- data/lib/forgejo/models/commit_status.rb +288 -0
- data/lib/forgejo/models/commit_user.rb +232 -0
- data/lib/forgejo/models/compare.rb +225 -0
- data/lib/forgejo/models/contents_response.rb +346 -0
- data/lib/forgejo/models/create_access_token_option.rb +233 -0
- data/lib/forgejo/models/create_branch_protection_option.rb +446 -0
- data/lib/forgejo/models/create_branch_repo_option.rb +243 -0
- data/lib/forgejo/models/create_email_option.rb +218 -0
- data/lib/forgejo/models/create_file_options.rb +290 -0
- data/lib/forgejo/models/create_fork_option.rb +226 -0
- data/lib/forgejo/models/create_gpg_key_option.rb +232 -0
- data/lib/forgejo/models/create_hook_option.rb +315 -0
- data/lib/forgejo/models/create_issue_comment_option.rb +231 -0
- data/lib/forgejo/models/create_issue_option.rb +301 -0
- data/lib/forgejo/models/create_key_option.rb +250 -0
- data/lib/forgejo/models/create_label_option.rb +265 -0
- data/lib/forgejo/models/create_milestone_option.rb +276 -0
- data/lib/forgejo/models/create_o_auth2_application_options.rb +235 -0
- data/lib/forgejo/models/create_or_update_secret_option.rb +223 -0
- data/lib/forgejo/models/create_org_option.rb +320 -0
- data/lib/forgejo/models/create_pull_request_option.rb +291 -0
- data/lib/forgejo/models/create_pull_review_comment.rb +245 -0
- data/lib/forgejo/models/create_pull_review_options.rb +245 -0
- data/lib/forgejo/models/create_push_mirror_option.rb +250 -0
- data/lib/forgejo/models/create_release_option.rb +276 -0
- data/lib/forgejo/models/create_repo_option.rb +379 -0
- data/lib/forgejo/models/create_status_option.rb +243 -0
- data/lib/forgejo/models/create_tag_option.rb +240 -0
- data/lib/forgejo/models/create_tag_protection_option.rb +237 -0
- data/lib/forgejo/models/create_team_option.rb +314 -0
- data/lib/forgejo/models/create_user_option.rb +320 -0
- data/lib/forgejo/models/create_variable_option.rb +223 -0
- data/lib/forgejo/models/create_wiki_page_options.rb +236 -0
- data/lib/forgejo/models/cron.rb +251 -0
- data/lib/forgejo/models/delete_email_option.rb +218 -0
- data/lib/forgejo/models/delete_file_options.rb +290 -0
- data/lib/forgejo/models/delete_labels_option.rb +215 -0
- data/lib/forgejo/models/deploy_key.rb +287 -0
- data/lib/forgejo/models/dismiss_pull_review_options.rb +224 -0
- data/lib/forgejo/models/dispatch_workflow_option.rb +235 -0
- data/lib/forgejo/models/edit_attachment_options.rb +215 -0
- data/lib/forgejo/models/edit_branch_protection_option.rb +427 -0
- data/lib/forgejo/models/edit_deadline_option.rb +222 -0
- data/lib/forgejo/models/edit_git_hook_option.rb +215 -0
- data/lib/forgejo/models/edit_hook_option.rb +255 -0
- data/lib/forgejo/models/edit_issue_comment_option.rb +231 -0
- data/lib/forgejo/models/edit_issue_option.rb +299 -0
- data/lib/forgejo/models/edit_label_option.rb +251 -0
- data/lib/forgejo/models/edit_milestone_option.rb +242 -0
- data/lib/forgejo/models/edit_org_option.rb +304 -0
- data/lib/forgejo/models/edit_pull_request_option.rb +309 -0
- data/lib/forgejo/models/edit_reaction_option.rb +215 -0
- data/lib/forgejo/models/edit_release_option.rb +269 -0
- data/lib/forgejo/models/edit_repo_option.rb +533 -0
- data/lib/forgejo/models/edit_tag_protection_option.rb +237 -0
- data/lib/forgejo/models/edit_team_option.rb +314 -0
- data/lib/forgejo/models/edit_user_option.rb +377 -0
- data/lib/forgejo/models/email.rb +251 -0
- data/lib/forgejo/models/external_tracker.rb +246 -0
- data/lib/forgejo/models/external_wiki.rb +216 -0
- data/lib/forgejo/models/file_commit_response.rb +288 -0
- data/lib/forgejo/models/file_delete_response.rb +233 -0
- data/lib/forgejo/models/file_links_response.rb +233 -0
- data/lib/forgejo/models/file_response.rb +233 -0
- data/lib/forgejo/models/files_response.rb +235 -0
- data/lib/forgejo/models/general_api_settings.rb +242 -0
- data/lib/forgejo/models/general_attachment_settings.rb +242 -0
- data/lib/forgejo/models/general_repo_settings.rb +269 -0
- data/lib/forgejo/models/general_ui_settings.rb +237 -0
- data/lib/forgejo/models/generate_repo_option.rb +340 -0
- data/lib/forgejo/models/git_blob_response.rb +251 -0
- data/lib/forgejo/models/git_entry.rb +260 -0
- data/lib/forgejo/models/git_hook.rb +233 -0
- data/lib/forgejo/models/git_object.rb +232 -0
- data/lib/forgejo/models/git_tree_response.rb +262 -0
- data/lib/forgejo/models/gitignore_template_info.rb +224 -0
- data/lib/forgejo/models/gpg_key.rb +327 -0
- data/lib/forgejo/models/gpg_key_email.rb +224 -0
- data/lib/forgejo/models/hook.rb +319 -0
- data/lib/forgejo/models/identity.rb +224 -0
- data/lib/forgejo/models/internal_tracker.rb +236 -0
- data/lib/forgejo/models/issue.rb +438 -0
- data/lib/forgejo/models/issue_config.rb +225 -0
- data/lib/forgejo/models/issue_config_contact_link.rb +232 -0
- data/lib/forgejo/models/issue_config_validation.rb +223 -0
- data/lib/forgejo/models/issue_deadline.rb +215 -0
- data/lib/forgejo/models/issue_form_field.rb +257 -0
- data/lib/forgejo/models/issue_labels_option.rb +227 -0
- data/lib/forgejo/models/issue_meta.rb +233 -0
- data/lib/forgejo/models/issue_template.rb +282 -0
- data/lib/forgejo/models/label.rb +269 -0
- data/lib/forgejo/models/label_template.rb +242 -0
- data/lib/forgejo/models/license_template_info.rb +251 -0
- data/lib/forgejo/models/licenses_template_list_entry.rb +233 -0
- data/lib/forgejo/models/markdown_option.rb +246 -0
- data/lib/forgejo/models/markup_option.rb +256 -0
- data/lib/forgejo/models/merge_pull_request_option.rb +319 -0
- data/lib/forgejo/models/migrate_repo_options.rb +436 -0
- data/lib/forgejo/models/milestone.rb +297 -0
- data/lib/forgejo/models/new_issue_pins_allowed.rb +224 -0
- data/lib/forgejo/models/node_info.rb +271 -0
- data/lib/forgejo/models/node_info_services.rb +228 -0
- data/lib/forgejo/models/node_info_software.rb +242 -0
- data/lib/forgejo/models/node_info_usage.rb +233 -0
- data/lib/forgejo/models/node_info_usage_users.rb +233 -0
- data/lib/forgejo/models/note.rb +224 -0
- data/lib/forgejo/models/notification_count.rb +215 -0
- data/lib/forgejo/models/notification_subject.rb +271 -0
- data/lib/forgejo/models/notification_thread.rb +269 -0
- data/lib/forgejo/models/o_auth2_application.rb +270 -0
- data/lib/forgejo/models/organization.rb +306 -0
- data/lib/forgejo/models/organization_permissions.rb +251 -0
- data/lib/forgejo/models/package.rb +287 -0
- data/lib/forgejo/models/package_file.rb +269 -0
- data/lib/forgejo/models/payload_commit.rb +303 -0
- data/lib/forgejo/models/payload_commit_verification.rb +251 -0
- data/lib/forgejo/models/payload_user.rb +234 -0
- data/lib/forgejo/models/permission.rb +233 -0
- data/lib/forgejo/models/pr_branch_info.rb +251 -0
- data/lib/forgejo/models/public_key.rb +287 -0
- data/lib/forgejo/models/pull_request.rb +538 -0
- data/lib/forgejo/models/pull_request_meta.rb +242 -0
- data/lib/forgejo/models/pull_review.rb +333 -0
- data/lib/forgejo/models/pull_review_comment.rb +341 -0
- data/lib/forgejo/models/pull_review_request_options.rb +228 -0
- data/lib/forgejo/models/push_mirror.rb +278 -0
- data/lib/forgejo/models/reaction.rb +233 -0
- data/lib/forgejo/models/reference.rb +232 -0
- data/lib/forgejo/models/release.rb +370 -0
- data/lib/forgejo/models/rename_user_option.rb +223 -0
- data/lib/forgejo/models/replace_flags_option.rb +217 -0
- data/lib/forgejo/models/repo_collaborator_permission.rb +233 -0
- data/lib/forgejo/models/repo_commit.rb +259 -0
- data/lib/forgejo/models/repo_create_release_attachment_request.rb +215 -0
- data/lib/forgejo/models/repo_topic_options.rb +218 -0
- data/lib/forgejo/models/repo_transfer.rb +235 -0
- data/lib/forgejo/models/repository.rb +801 -0
- data/lib/forgejo/models/repository_meta.rb +242 -0
- data/lib/forgejo/models/search_results.rb +226 -0
- data/lib/forgejo/models/secret.rb +225 -0
- data/lib/forgejo/models/server_version.rb +215 -0
- data/lib/forgejo/models/stop_watch.rb +269 -0
- data/lib/forgejo/models/submit_pull_review_options.rb +225 -0
- data/lib/forgejo/models/tag.rb +269 -0
- data/lib/forgejo/models/tag_archive_download_count.rb +224 -0
- data/lib/forgejo/models/tag_protection.rb +264 -0
- data/lib/forgejo/models/team.rb +325 -0
- data/lib/forgejo/models/team_search200_response.rb +225 -0
- data/lib/forgejo/models/timeline_comment.rb +469 -0
- data/lib/forgejo/models/topic_name.rb +217 -0
- data/lib/forgejo/models/topic_response.rb +251 -0
- data/lib/forgejo/models/tracked_time.rb +272 -0
- data/lib/forgejo/models/transfer_repo_option.rb +234 -0
- data/lib/forgejo/models/update_file_options.rb +317 -0
- data/lib/forgejo/models/update_repo_avatar_option.rb +216 -0
- data/lib/forgejo/models/update_user_avatar_option.rb +216 -0
- data/lib/forgejo/models/update_variable_option.rb +233 -0
- data/lib/forgejo/models/user.rb +433 -0
- data/lib/forgejo/models/user_heatmap_data.rb +225 -0
- data/lib/forgejo/models/user_search200_response.rb +225 -0
- data/lib/forgejo/models/user_settings.rb +306 -0
- data/lib/forgejo/models/user_settings_options.rb +306 -0
- data/lib/forgejo/models/watch_info.rb +260 -0
- data/lib/forgejo/models/wiki_commit.rb +242 -0
- data/lib/forgejo/models/wiki_commit_list.rb +226 -0
- data/lib/forgejo/models/wiki_page.rb +279 -0
- data/lib/forgejo/models/wiki_page_meta_data.rb +242 -0
- data/lib/forgejo/version.rb +15 -0
- data/lib/forgejo.rb +241 -0
- data/manifest.scm +2 -0
- data/patch +7 -0
- data/patch~ +1 -0
- data/smoke +16 -0
- data/smoke~ +1 -0
- data/spec/api/activitypub_api_spec.rb +80 -0
- data/spec/api/admin_api_spec.rb +308 -0
- data/spec/api/issue_api_spec.rb +998 -0
- data/spec/api/miscellaneous_api_spec.rb +161 -0
- data/spec/api/notification_api_spec.rb +134 -0
- data/spec/api/organization_api_spec.rb +752 -0
- data/spec/api/package_api_spec.rb +92 -0
- data/spec/api/repository_api_spec.rb +2366 -0
- data/spec/api/settings_api_spec.rb +75 -0
- data/spec/api/user_api_spec.rb +839 -0
- data/spec/models/access_token_spec.rb +60 -0
- data/spec/models/action_task_response_spec.rb +42 -0
- data/spec/models/action_task_spec.rb +108 -0
- data/spec/models/action_variable_spec.rb +54 -0
- data/spec/models/activity_pub_spec.rb +36 -0
- data/spec/models/activity_spec.rb +112 -0
- data/spec/models/add_collaborator_option_spec.rb +36 -0
- data/spec/models/add_time_option_spec.rb +48 -0
- data/spec/models/annotated_tag_object_spec.rb +48 -0
- data/spec/models/annotated_tag_spec.rb +78 -0
- data/spec/models/api_error_spec.rb +42 -0
- data/spec/models/attachment_spec.rb +72 -0
- data/spec/models/blocked_user_spec.rb +42 -0
- data/spec/models/branch_protection_spec.rb +192 -0
- data/spec/models/branch_spec.rb +84 -0
- data/spec/models/change_file_operation_spec.rb +64 -0
- data/spec/models/change_files_options_spec.rb +78 -0
- data/spec/models/changed_file_spec.rb +84 -0
- data/spec/models/combined_status_spec.rb +72 -0
- data/spec/models/comment_spec.rb +96 -0
- data/spec/models/commit_affected_files_spec.rb +42 -0
- data/spec/models/commit_date_options_spec.rb +42 -0
- data/spec/models/commit_meta_spec.rb +48 -0
- data/spec/models/commit_spec.rb +90 -0
- data/spec/models/commit_stats_spec.rb +48 -0
- data/spec/models/commit_status_spec.rb +84 -0
- data/spec/models/commit_user_spec.rb +48 -0
- data/spec/models/compare_spec.rb +42 -0
- data/spec/models/contents_response_spec.rb +120 -0
- data/spec/models/create_access_token_option_spec.rb +42 -0
- data/spec/models/create_branch_protection_option_spec.rb +180 -0
- data/spec/models/create_branch_repo_option_spec.rb +48 -0
- data/spec/models/create_email_option_spec.rb +36 -0
- data/spec/models/create_file_options_spec.rb +78 -0
- data/spec/models/create_fork_option_spec.rb +42 -0
- data/spec/models/create_gpg_key_option_spec.rb +42 -0
- data/spec/models/create_hook_option_spec.rb +70 -0
- data/spec/models/create_issue_comment_option_spec.rb +42 -0
- data/spec/models/create_issue_option_spec.rb +84 -0
- data/spec/models/create_key_option_spec.rb +48 -0
- data/spec/models/create_label_option_spec.rb +60 -0
- data/spec/models/create_milestone_option_spec.rb +58 -0
- data/spec/models/create_o_auth2_application_options_spec.rb +48 -0
- data/spec/models/create_or_update_secret_option_spec.rb +36 -0
- data/spec/models/create_org_option_spec.rb +82 -0
- data/spec/models/create_pull_request_option_spec.rb +84 -0
- data/spec/models/create_pull_review_comment_spec.rb +54 -0
- data/spec/models/create_pull_review_options_spec.rb +54 -0
- data/spec/models/create_push_mirror_option_spec.rb +60 -0
- data/spec/models/create_release_option_spec.rb +72 -0
- data/spec/models/create_repo_option_spec.rb +110 -0
- data/spec/models/create_status_option_spec.rb +54 -0
- data/spec/models/create_tag_option_spec.rb +48 -0
- data/spec/models/create_tag_protection_option_spec.rb +48 -0
- data/spec/models/create_team_option_spec.rb +76 -0
- data/spec/models/create_user_option_spec.rb +96 -0
- data/spec/models/create_variable_option_spec.rb +36 -0
- data/spec/models/create_wiki_page_options_spec.rb +48 -0
- data/spec/models/cron_spec.rb +60 -0
- data/spec/models/delete_email_option_spec.rb +36 -0
- data/spec/models/delete_file_options_spec.rb +78 -0
- data/spec/models/delete_labels_option_spec.rb +36 -0
- data/spec/models/deploy_key_spec.rb +84 -0
- data/spec/models/dismiss_pull_review_options_spec.rb +42 -0
- data/spec/models/dispatch_workflow_option_spec.rb +42 -0
- data/spec/models/edit_attachment_options_spec.rb +36 -0
- data/spec/models/edit_branch_protection_option_spec.rb +168 -0
- data/spec/models/edit_deadline_option_spec.rb +36 -0
- data/spec/models/edit_git_hook_option_spec.rb +36 -0
- data/spec/models/edit_hook_option_spec.rb +60 -0
- data/spec/models/edit_issue_comment_option_spec.rb +42 -0
- data/spec/models/edit_issue_option_spec.rb +90 -0
- data/spec/models/edit_label_option_spec.rb +60 -0
- data/spec/models/edit_milestone_option_spec.rb +54 -0
- data/spec/models/edit_org_option_spec.rb +76 -0
- data/spec/models/edit_pull_request_option_spec.rb +96 -0
- data/spec/models/edit_reaction_option_spec.rb +36 -0
- data/spec/models/edit_release_option_spec.rb +72 -0
- data/spec/models/edit_repo_option_spec.rb +228 -0
- data/spec/models/edit_tag_protection_option_spec.rb +48 -0
- data/spec/models/edit_team_option_spec.rb +76 -0
- data/spec/models/edit_user_option_spec.rb +144 -0
- data/spec/models/email_spec.rb +60 -0
- data/spec/models/external_tracker_spec.rb +54 -0
- data/spec/models/external_wiki_spec.rb +36 -0
- data/spec/models/file_commit_response_spec.rb +84 -0
- data/spec/models/file_delete_response_spec.rb +48 -0
- data/spec/models/file_links_response_spec.rb +48 -0
- data/spec/models/file_response_spec.rb +48 -0
- data/spec/models/files_response_spec.rb +48 -0
- data/spec/models/general_api_settings_spec.rb +54 -0
- data/spec/models/general_attachment_settings_spec.rb +54 -0
- data/spec/models/general_repo_settings_spec.rb +72 -0
- data/spec/models/general_ui_settings_spec.rb +48 -0
- data/spec/models/generate_repo_option_spec.rb +102 -0
- data/spec/models/git_blob_response_spec.rb +60 -0
- data/spec/models/git_entry_spec.rb +66 -0
- data/spec/models/git_hook_spec.rb +48 -0
- data/spec/models/git_object_spec.rb +48 -0
- data/spec/models/git_tree_response_spec.rb +66 -0
- data/spec/models/gitignore_template_info_spec.rb +42 -0
- data/spec/models/gpg_key_email_spec.rb +42 -0
- data/spec/models/gpg_key_spec.rb +108 -0
- data/spec/models/hook_spec.rb +102 -0
- data/spec/models/identity_spec.rb +42 -0
- data/spec/models/internal_tracker_spec.rb +48 -0
- data/spec/models/issue_config_contact_link_spec.rb +48 -0
- data/spec/models/issue_config_spec.rb +42 -0
- data/spec/models/issue_config_validation_spec.rb +42 -0
- data/spec/models/issue_deadline_spec.rb +36 -0
- data/spec/models/issue_form_field_spec.rb +60 -0
- data/spec/models/issue_labels_option_spec.rb +42 -0
- data/spec/models/issue_meta_spec.rb +48 -0
- data/spec/models/issue_spec.rb +180 -0
- data/spec/models/issue_template_spec.rb +78 -0
- data/spec/models/label_spec.rb +72 -0
- data/spec/models/label_template_spec.rb +54 -0
- data/spec/models/license_template_info_spec.rb +60 -0
- data/spec/models/licenses_template_list_entry_spec.rb +48 -0
- data/spec/models/markdown_option_spec.rb +54 -0
- data/spec/models/markup_option_spec.rb +60 -0
- data/spec/models/merge_pull_request_option_spec.rb +82 -0
- data/spec/models/migrate_repo_options_spec.rb +154 -0
- data/spec/models/milestone_spec.rb +90 -0
- data/spec/models/new_issue_pins_allowed_spec.rb +42 -0
- data/spec/models/node_info_services_spec.rb +42 -0
- data/spec/models/node_info_software_spec.rb +54 -0
- data/spec/models/node_info_spec.rb +72 -0
- data/spec/models/node_info_usage_spec.rb +48 -0
- data/spec/models/node_info_usage_users_spec.rb +48 -0
- data/spec/models/note_spec.rb +42 -0
- data/spec/models/notification_count_spec.rb +36 -0
- data/spec/models/notification_subject_spec.rb +72 -0
- data/spec/models/notification_thread_spec.rb +72 -0
- data/spec/models/o_auth2_application_spec.rb +72 -0
- data/spec/models/organization_permissions_spec.rb +60 -0
- data/spec/models/organization_spec.rb +96 -0
- data/spec/models/package_file_spec.rb +72 -0
- data/spec/models/package_spec.rb +84 -0
- data/spec/models/payload_commit_spec.rb +90 -0
- data/spec/models/payload_commit_verification_spec.rb +60 -0
- data/spec/models/payload_user_spec.rb +48 -0
- data/spec/models/permission_spec.rb +48 -0
- data/spec/models/pr_branch_info_spec.rb +60 -0
- data/spec/models/public_key_spec.rb +84 -0
- data/spec/models/pull_request_meta_spec.rb +54 -0
- data/spec/models/pull_request_spec.rb +246 -0
- data/spec/models/pull_review_comment_spec.rb +120 -0
- data/spec/models/pull_review_request_options_spec.rb +42 -0
- data/spec/models/pull_review_spec.rb +114 -0
- data/spec/models/push_mirror_spec.rb +78 -0
- data/spec/models/reaction_spec.rb +48 -0
- data/spec/models/reference_spec.rb +48 -0
- data/spec/models/release_spec.rb +138 -0
- data/spec/models/rename_user_option_spec.rb +36 -0
- data/spec/models/replace_flags_option_spec.rb +36 -0
- data/spec/models/repo_collaborator_permission_spec.rb +48 -0
- data/spec/models/repo_commit_spec.rb +66 -0
- data/spec/models/repo_create_release_attachment_request_spec.rb +36 -0
- data/spec/models/repo_topic_options_spec.rb +36 -0
- data/spec/models/repo_transfer_spec.rb +48 -0
- data/spec/models/repository_meta_spec.rb +54 -0
- data/spec/models/repository_spec.rb +406 -0
- data/spec/models/search_results_spec.rb +42 -0
- data/spec/models/secret_spec.rb +42 -0
- data/spec/models/server_version_spec.rb +36 -0
- data/spec/models/stop_watch_spec.rb +72 -0
- data/spec/models/submit_pull_review_options_spec.rb +42 -0
- data/spec/models/tag_archive_download_count_spec.rb +42 -0
- data/spec/models/tag_protection_spec.rb +66 -0
- data/spec/models/tag_spec.rb +72 -0
- data/spec/models/team_search200_response_spec.rb +42 -0
- data/spec/models/team_spec.rb +88 -0
- data/spec/models/timeline_comment_spec.rb +204 -0
- data/spec/models/topic_name_spec.rb +36 -0
- data/spec/models/topic_response_spec.rb +60 -0
- data/spec/models/tracked_time_spec.rb +72 -0
- data/spec/models/transfer_repo_option_spec.rb +42 -0
- data/spec/models/update_file_options_spec.rb +90 -0
- data/spec/models/update_repo_avatar_option_spec.rb +36 -0
- data/spec/models/update_user_avatar_option_spec.rb +36 -0
- data/spec/models/update_variable_option_spec.rb +42 -0
- data/spec/models/user_heatmap_data_spec.rb +42 -0
- data/spec/models/user_search200_response_spec.rb +42 -0
- data/spec/models/user_settings_options_spec.rb +96 -0
- data/spec/models/user_settings_spec.rb +96 -0
- data/spec/models/user_spec.rb +168 -0
- data/spec/models/watch_info_spec.rb +66 -0
- data/spec/models/wiki_commit_list_spec.rb +42 -0
- data/spec/models/wiki_commit_spec.rb +54 -0
- data/spec/models/wiki_page_meta_data_spec.rb +54 -0
- data/spec/models/wiki_page_spec.rb +78 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger.v1.json +26802 -0
- data/swagger.v1.patched.json +1 -0
- metadata +949 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
# Forgejo::OrganizationPermissions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **can_create_repository** | **Boolean** | | [optional] |
|
8
|
+
| **can_read** | **Boolean** | | [optional] |
|
9
|
+
| **can_write** | **Boolean** | | [optional] |
|
10
|
+
| **is_admin** | **Boolean** | | [optional] |
|
11
|
+
| **is_owner** | **Boolean** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'forgejo'
|
17
|
+
|
18
|
+
instance = Forgejo::OrganizationPermissions.new(
|
19
|
+
can_create_repository: null,
|
20
|
+
can_read: null,
|
21
|
+
can_write: null,
|
22
|
+
is_admin: null,
|
23
|
+
is_owner: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Forgejo::PRBranchInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **label** | **String** | | [optional] |
|
8
|
+
| **ref** | **String** | | [optional] |
|
9
|
+
| **repo** | [**Repository**](Repository.md) | | [optional] |
|
10
|
+
| **repo_id** | **Integer** | | [optional] |
|
11
|
+
| **sha** | **String** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'forgejo'
|
17
|
+
|
18
|
+
instance = Forgejo::PRBranchInfo.new(
|
19
|
+
label: null,
|
20
|
+
ref: null,
|
21
|
+
repo: null,
|
22
|
+
repo_id: null,
|
23
|
+
sha: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/Package.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Forgejo::Package
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional] |
|
8
|
+
| **creator** | [**User**](User.md) | | [optional] |
|
9
|
+
| **html_url** | **String** | | [optional] |
|
10
|
+
| **id** | **Integer** | | [optional] |
|
11
|
+
| **name** | **String** | | [optional] |
|
12
|
+
| **owner** | [**User**](User.md) | | [optional] |
|
13
|
+
| **repository** | [**Repository**](Repository.md) | | [optional] |
|
14
|
+
| **type** | **String** | | [optional] |
|
15
|
+
| **version** | **String** | | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'forgejo'
|
21
|
+
|
22
|
+
instance = Forgejo::Package.new(
|
23
|
+
created_at: null,
|
24
|
+
creator: null,
|
25
|
+
html_url: null,
|
26
|
+
id: null,
|
27
|
+
name: null,
|
28
|
+
owner: null,
|
29
|
+
repository: null,
|
30
|
+
type: null,
|
31
|
+
version: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
data/docs/PackageApi.md
ADDED
@@ -0,0 +1,314 @@
|
|
1
|
+
# Forgejo::PackageApi
|
2
|
+
|
3
|
+
All URIs are relative to */api/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_package**](PackageApi.md#delete_package) | **DELETE** /packages/{owner}/{type}/{name}/{version} | Delete a package |
|
8
|
+
| [**get_package**](PackageApi.md#get_package) | **GET** /packages/{owner}/{type}/{name}/{version} | Gets a package |
|
9
|
+
| [**list_package_files**](PackageApi.md#list_package_files) | **GET** /packages/{owner}/{type}/{name}/{version}/files | Gets all files of a package |
|
10
|
+
| [**list_packages**](PackageApi.md#list_packages) | **GET** /packages/{owner} | Gets all packages of an owner |
|
11
|
+
|
12
|
+
|
13
|
+
## delete_package
|
14
|
+
|
15
|
+
> delete_package(owner, type, name, version)
|
16
|
+
|
17
|
+
Delete a package
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'forgejo'
|
24
|
+
# setup authorization
|
25
|
+
Forgejo.configure do |config|
|
26
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
27
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = Forgejo::PackageApi.new
|
33
|
+
owner = 'owner_example' # String | owner of the package
|
34
|
+
type = 'type_example' # String | type of the package
|
35
|
+
name = 'name_example' # String | name of the package
|
36
|
+
version = 'version_example' # String | version of the package
|
37
|
+
|
38
|
+
begin
|
39
|
+
# Delete a package
|
40
|
+
api_instance.delete_package(owner, type, name, version)
|
41
|
+
rescue Forgejo::ApiError => e
|
42
|
+
puts "Error when calling PackageApi->delete_package: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the delete_package_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
49
|
+
|
50
|
+
> <Array(nil, Integer, Hash)> delete_package_with_http_info(owner, type, name, version)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Delete a package
|
55
|
+
data, status_code, headers = api_instance.delete_package_with_http_info(owner, type, name, version)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => nil
|
59
|
+
rescue Forgejo::ApiError => e
|
60
|
+
puts "Error when calling PackageApi->delete_package_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **owner** | **String** | owner of the package | |
|
69
|
+
| **type** | **String** | type of the package | |
|
70
|
+
| **name** | **String** | name of the package | |
|
71
|
+
| **version** | **String** | version of the package | |
|
72
|
+
|
73
|
+
### Return type
|
74
|
+
|
75
|
+
nil (empty response body)
|
76
|
+
|
77
|
+
### Authorization
|
78
|
+
|
79
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
80
|
+
|
81
|
+
### HTTP request headers
|
82
|
+
|
83
|
+
- **Content-Type**: Not defined
|
84
|
+
- **Accept**: Not defined
|
85
|
+
|
86
|
+
|
87
|
+
## get_package
|
88
|
+
|
89
|
+
> <Package> get_package(owner, type, name, version)
|
90
|
+
|
91
|
+
Gets a package
|
92
|
+
|
93
|
+
### Examples
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
require 'time'
|
97
|
+
require 'forgejo'
|
98
|
+
# setup authorization
|
99
|
+
Forgejo.configure do |config|
|
100
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
101
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
104
|
+
end
|
105
|
+
|
106
|
+
api_instance = Forgejo::PackageApi.new
|
107
|
+
owner = 'owner_example' # String | owner of the package
|
108
|
+
type = 'type_example' # String | type of the package
|
109
|
+
name = 'name_example' # String | name of the package
|
110
|
+
version = 'version_example' # String | version of the package
|
111
|
+
|
112
|
+
begin
|
113
|
+
# Gets a package
|
114
|
+
result = api_instance.get_package(owner, type, name, version)
|
115
|
+
p result
|
116
|
+
rescue Forgejo::ApiError => e
|
117
|
+
puts "Error when calling PackageApi->get_package: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
#### Using the get_package_with_http_info variant
|
122
|
+
|
123
|
+
This returns an Array which contains the response data, status code and headers.
|
124
|
+
|
125
|
+
> <Array(<Package>, Integer, Hash)> get_package_with_http_info(owner, type, name, version)
|
126
|
+
|
127
|
+
```ruby
|
128
|
+
begin
|
129
|
+
# Gets a package
|
130
|
+
data, status_code, headers = api_instance.get_package_with_http_info(owner, type, name, version)
|
131
|
+
p status_code # => 2xx
|
132
|
+
p headers # => { ... }
|
133
|
+
p data # => <Package>
|
134
|
+
rescue Forgejo::ApiError => e
|
135
|
+
puts "Error when calling PackageApi->get_package_with_http_info: #{e}"
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
139
|
+
### Parameters
|
140
|
+
|
141
|
+
| Name | Type | Description | Notes |
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
143
|
+
| **owner** | **String** | owner of the package | |
|
144
|
+
| **type** | **String** | type of the package | |
|
145
|
+
| **name** | **String** | name of the package | |
|
146
|
+
| **version** | **String** | version of the package | |
|
147
|
+
|
148
|
+
### Return type
|
149
|
+
|
150
|
+
[**Package**](Package.md)
|
151
|
+
|
152
|
+
### Authorization
|
153
|
+
|
154
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
155
|
+
|
156
|
+
### HTTP request headers
|
157
|
+
|
158
|
+
- **Content-Type**: Not defined
|
159
|
+
- **Accept**: application/json
|
160
|
+
|
161
|
+
|
162
|
+
## list_package_files
|
163
|
+
|
164
|
+
> <Array<PackageFile>> list_package_files(owner, type, name, version)
|
165
|
+
|
166
|
+
Gets all files of a package
|
167
|
+
|
168
|
+
### Examples
|
169
|
+
|
170
|
+
```ruby
|
171
|
+
require 'time'
|
172
|
+
require 'forgejo'
|
173
|
+
# setup authorization
|
174
|
+
Forgejo.configure do |config|
|
175
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
176
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
177
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
178
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
179
|
+
end
|
180
|
+
|
181
|
+
api_instance = Forgejo::PackageApi.new
|
182
|
+
owner = 'owner_example' # String | owner of the package
|
183
|
+
type = 'type_example' # String | type of the package
|
184
|
+
name = 'name_example' # String | name of the package
|
185
|
+
version = 'version_example' # String | version of the package
|
186
|
+
|
187
|
+
begin
|
188
|
+
# Gets all files of a package
|
189
|
+
result = api_instance.list_package_files(owner, type, name, version)
|
190
|
+
p result
|
191
|
+
rescue Forgejo::ApiError => e
|
192
|
+
puts "Error when calling PackageApi->list_package_files: #{e}"
|
193
|
+
end
|
194
|
+
```
|
195
|
+
|
196
|
+
#### Using the list_package_files_with_http_info variant
|
197
|
+
|
198
|
+
This returns an Array which contains the response data, status code and headers.
|
199
|
+
|
200
|
+
> <Array(<Array<PackageFile>>, Integer, Hash)> list_package_files_with_http_info(owner, type, name, version)
|
201
|
+
|
202
|
+
```ruby
|
203
|
+
begin
|
204
|
+
# Gets all files of a package
|
205
|
+
data, status_code, headers = api_instance.list_package_files_with_http_info(owner, type, name, version)
|
206
|
+
p status_code # => 2xx
|
207
|
+
p headers # => { ... }
|
208
|
+
p data # => <Array<PackageFile>>
|
209
|
+
rescue Forgejo::ApiError => e
|
210
|
+
puts "Error when calling PackageApi->list_package_files_with_http_info: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
| Name | Type | Description | Notes |
|
217
|
+
| ---- | ---- | ----------- | ----- |
|
218
|
+
| **owner** | **String** | owner of the package | |
|
219
|
+
| **type** | **String** | type of the package | |
|
220
|
+
| **name** | **String** | name of the package | |
|
221
|
+
| **version** | **String** | version of the package | |
|
222
|
+
|
223
|
+
### Return type
|
224
|
+
|
225
|
+
[**Array<PackageFile>**](PackageFile.md)
|
226
|
+
|
227
|
+
### Authorization
|
228
|
+
|
229
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
230
|
+
|
231
|
+
### HTTP request headers
|
232
|
+
|
233
|
+
- **Content-Type**: Not defined
|
234
|
+
- **Accept**: application/json
|
235
|
+
|
236
|
+
|
237
|
+
## list_packages
|
238
|
+
|
239
|
+
> <Array<Package>> list_packages(owner, opts)
|
240
|
+
|
241
|
+
Gets all packages of an owner
|
242
|
+
|
243
|
+
### Examples
|
244
|
+
|
245
|
+
```ruby
|
246
|
+
require 'time'
|
247
|
+
require 'forgejo'
|
248
|
+
# setup authorization
|
249
|
+
Forgejo.configure do |config|
|
250
|
+
# Configure API key authorization: AuthorizationHeaderToken
|
251
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
252
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
253
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
254
|
+
end
|
255
|
+
|
256
|
+
api_instance = Forgejo::PackageApi.new
|
257
|
+
owner = 'owner_example' # String | owner of the packages
|
258
|
+
opts = {
|
259
|
+
page: 56, # Integer | page number of results to return (1-based)
|
260
|
+
limit: 56, # Integer | page size of results
|
261
|
+
type: 'alpine', # String | package type filter
|
262
|
+
q: 'q_example' # String | name filter
|
263
|
+
}
|
264
|
+
|
265
|
+
begin
|
266
|
+
# Gets all packages of an owner
|
267
|
+
result = api_instance.list_packages(owner, opts)
|
268
|
+
p result
|
269
|
+
rescue Forgejo::ApiError => e
|
270
|
+
puts "Error when calling PackageApi->list_packages: #{e}"
|
271
|
+
end
|
272
|
+
```
|
273
|
+
|
274
|
+
#### Using the list_packages_with_http_info variant
|
275
|
+
|
276
|
+
This returns an Array which contains the response data, status code and headers.
|
277
|
+
|
278
|
+
> <Array(<Array<Package>>, Integer, Hash)> list_packages_with_http_info(owner, opts)
|
279
|
+
|
280
|
+
```ruby
|
281
|
+
begin
|
282
|
+
# Gets all packages of an owner
|
283
|
+
data, status_code, headers = api_instance.list_packages_with_http_info(owner, opts)
|
284
|
+
p status_code # => 2xx
|
285
|
+
p headers # => { ... }
|
286
|
+
p data # => <Array<Package>>
|
287
|
+
rescue Forgejo::ApiError => e
|
288
|
+
puts "Error when calling PackageApi->list_packages_with_http_info: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
### Parameters
|
293
|
+
|
294
|
+
| Name | Type | Description | Notes |
|
295
|
+
| ---- | ---- | ----------- | ----- |
|
296
|
+
| **owner** | **String** | owner of the packages | |
|
297
|
+
| **page** | **Integer** | page number of results to return (1-based) | [optional] |
|
298
|
+
| **limit** | **Integer** | page size of results | [optional] |
|
299
|
+
| **type** | **String** | package type filter | [optional] |
|
300
|
+
| **q** | **String** | name filter | [optional] |
|
301
|
+
|
302
|
+
### Return type
|
303
|
+
|
304
|
+
[**Array<Package>**](Package.md)
|
305
|
+
|
306
|
+
### Authorization
|
307
|
+
|
308
|
+
[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)
|
309
|
+
|
310
|
+
### HTTP request headers
|
311
|
+
|
312
|
+
- **Content-Type**: Not defined
|
313
|
+
- **Accept**: application/json
|
314
|
+
|
data/docs/PackageFile.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Forgejo::PackageFile
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **size** | **Integer** | | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **md5** | **String** | | [optional] |
|
10
|
+
| **name** | **String** | | [optional] |
|
11
|
+
| **sha1** | **String** | | [optional] |
|
12
|
+
| **sha256** | **String** | | [optional] |
|
13
|
+
| **sha512** | **String** | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'forgejo'
|
19
|
+
|
20
|
+
instance = Forgejo::PackageFile.new(
|
21
|
+
size: null,
|
22
|
+
id: null,
|
23
|
+
md5: null,
|
24
|
+
name: null,
|
25
|
+
sha1: null,
|
26
|
+
sha256: null,
|
27
|
+
sha512: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Forgejo::PayloadCommit
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **added** | **Array<String>** | | [optional] |
|
8
|
+
| **author** | [**PayloadUser**](PayloadUser.md) | | [optional] |
|
9
|
+
| **committer** | [**PayloadUser**](PayloadUser.md) | | [optional] |
|
10
|
+
| **id** | **String** | sha1 hash of the commit | [optional] |
|
11
|
+
| **message** | **String** | | [optional] |
|
12
|
+
| **modified** | **Array<String>** | | [optional] |
|
13
|
+
| **removed** | **Array<String>** | | [optional] |
|
14
|
+
| **timestamp** | **Time** | | [optional] |
|
15
|
+
| **url** | **String** | | [optional] |
|
16
|
+
| **verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'forgejo'
|
22
|
+
|
23
|
+
instance = Forgejo::PayloadCommit.new(
|
24
|
+
added: null,
|
25
|
+
author: null,
|
26
|
+
committer: null,
|
27
|
+
id: null,
|
28
|
+
message: null,
|
29
|
+
modified: null,
|
30
|
+
removed: null,
|
31
|
+
timestamp: null,
|
32
|
+
url: null,
|
33
|
+
verification: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Forgejo::PayloadCommitVerification
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **payload** | **String** | | [optional] |
|
8
|
+
| **reason** | **String** | | [optional] |
|
9
|
+
| **signature** | **String** | | [optional] |
|
10
|
+
| **signer** | [**PayloadUser**](PayloadUser.md) | | [optional] |
|
11
|
+
| **verified** | **Boolean** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'forgejo'
|
17
|
+
|
18
|
+
instance = Forgejo::PayloadCommitVerification.new(
|
19
|
+
payload: null,
|
20
|
+
reason: null,
|
21
|
+
signature: null,
|
22
|
+
signer: null,
|
23
|
+
verified: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/PayloadUser.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Forgejo::PayloadUser
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | **String** | | [optional] |
|
8
|
+
| **name** | **String** | Full name of the commit author | [optional] |
|
9
|
+
| **username** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'forgejo'
|
15
|
+
|
16
|
+
instance = Forgejo::PayloadUser.new(
|
17
|
+
email: null,
|
18
|
+
name: null,
|
19
|
+
username: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Permission.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Forgejo::Permission
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **admin** | **Boolean** | | [optional] |
|
8
|
+
| **pull** | **Boolean** | | [optional] |
|
9
|
+
| **push** | **Boolean** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'forgejo'
|
15
|
+
|
16
|
+
instance = Forgejo::Permission.new(
|
17
|
+
admin: null,
|
18
|
+
pull: null,
|
19
|
+
push: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/PublicKey.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Forgejo::PublicKey
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional] |
|
8
|
+
| **fingerprint** | **String** | | [optional] |
|
9
|
+
| **id** | **Integer** | | [optional] |
|
10
|
+
| **key** | **String** | | [optional] |
|
11
|
+
| **key_type** | **String** | | [optional] |
|
12
|
+
| **read_only** | **Boolean** | | [optional] |
|
13
|
+
| **title** | **String** | | [optional] |
|
14
|
+
| **url** | **String** | | [optional] |
|
15
|
+
| **user** | [**User**](User.md) | | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'forgejo'
|
21
|
+
|
22
|
+
instance = Forgejo::PublicKey.new(
|
23
|
+
created_at: null,
|
24
|
+
fingerprint: null,
|
25
|
+
id: null,
|
26
|
+
key: null,
|
27
|
+
key_type: null,
|
28
|
+
read_only: null,
|
29
|
+
title: null,
|
30
|
+
url: null,
|
31
|
+
user: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
data/docs/PullRequest.md
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# Forgejo::PullRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **additions** | **Integer** | | [optional] |
|
8
|
+
| **allow_maintainer_edit** | **Boolean** | | [optional] |
|
9
|
+
| **assignee** | [**User**](User.md) | | [optional] |
|
10
|
+
| **assignees** | [**Array<User>**](User.md) | | [optional] |
|
11
|
+
| **base** | [**PRBranchInfo**](PRBranchInfo.md) | | [optional] |
|
12
|
+
| **body** | **String** | | [optional] |
|
13
|
+
| **changed_files** | **Integer** | | [optional] |
|
14
|
+
| **closed_at** | **Time** | | [optional] |
|
15
|
+
| **comments** | **Integer** | | [optional] |
|
16
|
+
| **created_at** | **Time** | | [optional] |
|
17
|
+
| **deletions** | **Integer** | | [optional] |
|
18
|
+
| **diff_url** | **String** | | [optional] |
|
19
|
+
| **draft** | **Boolean** | | [optional] |
|
20
|
+
| **due_date** | **Time** | | [optional] |
|
21
|
+
| **head** | [**PRBranchInfo**](PRBranchInfo.md) | | [optional] |
|
22
|
+
| **html_url** | **String** | | [optional] |
|
23
|
+
| **id** | **Integer** | | [optional] |
|
24
|
+
| **is_locked** | **Boolean** | | [optional] |
|
25
|
+
| **labels** | [**Array<Label>**](Label.md) | | [optional] |
|
26
|
+
| **merge_base** | **String** | | [optional] |
|
27
|
+
| **merge_commit_sha** | **String** | | [optional] |
|
28
|
+
| **mergeable** | **Boolean** | | [optional] |
|
29
|
+
| **merged** | **Boolean** | | [optional] |
|
30
|
+
| **merged_at** | **Time** | | [optional] |
|
31
|
+
| **merged_by** | [**User**](User.md) | | [optional] |
|
32
|
+
| **milestone** | [**Milestone**](Milestone.md) | | [optional] |
|
33
|
+
| **number** | **Integer** | | [optional] |
|
34
|
+
| **patch_url** | **String** | | [optional] |
|
35
|
+
| **pin_order** | **Integer** | | [optional] |
|
36
|
+
| **requested_reviewers** | [**Array<User>**](User.md) | | [optional] |
|
37
|
+
| **review_comments** | **Integer** | number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR) | [optional] |
|
38
|
+
| **state** | **String** | StateType issue state type | [optional] |
|
39
|
+
| **title** | **String** | | [optional] |
|
40
|
+
| **updated_at** | **Time** | | [optional] |
|
41
|
+
| **url** | **String** | | [optional] |
|
42
|
+
| **user** | [**User**](User.md) | | [optional] |
|
43
|
+
|
44
|
+
## Example
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
require 'forgejo'
|
48
|
+
|
49
|
+
instance = Forgejo::PullRequest.new(
|
50
|
+
additions: null,
|
51
|
+
allow_maintainer_edit: null,
|
52
|
+
assignee: null,
|
53
|
+
assignees: null,
|
54
|
+
base: null,
|
55
|
+
body: null,
|
56
|
+
changed_files: null,
|
57
|
+
closed_at: null,
|
58
|
+
comments: null,
|
59
|
+
created_at: null,
|
60
|
+
deletions: null,
|
61
|
+
diff_url: null,
|
62
|
+
draft: null,
|
63
|
+
due_date: null,
|
64
|
+
head: null,
|
65
|
+
html_url: null,
|
66
|
+
id: null,
|
67
|
+
is_locked: null,
|
68
|
+
labels: null,
|
69
|
+
merge_base: null,
|
70
|
+
merge_commit_sha: null,
|
71
|
+
mergeable: null,
|
72
|
+
merged: null,
|
73
|
+
merged_at: null,
|
74
|
+
merged_by: null,
|
75
|
+
milestone: null,
|
76
|
+
number: null,
|
77
|
+
patch_url: null,
|
78
|
+
pin_order: null,
|
79
|
+
requested_reviewers: null,
|
80
|
+
review_comments: null,
|
81
|
+
state: null,
|
82
|
+
title: null,
|
83
|
+
updated_at: null,
|
84
|
+
url: null,
|
85
|
+
user: null
|
86
|
+
)
|
87
|
+
```
|
88
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Forgejo::PullRequestMeta
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **draft** | **Boolean** | | [optional] |
|
8
|
+
| **html_url** | **String** | | [optional] |
|
9
|
+
| **merged** | **Boolean** | | [optional] |
|
10
|
+
| **merged_at** | **Time** | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'forgejo'
|
16
|
+
|
17
|
+
instance = Forgejo::PullRequestMeta.new(
|
18
|
+
draft: null,
|
19
|
+
html_url: null,
|
20
|
+
merged: null,
|
21
|
+
merged_at: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|