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,2366 @@
|
|
1
|
+
=begin
|
2
|
+
#Forgejo API
|
3
|
+
|
4
|
+
#This documentation describes the Forgejo API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 8.0.3-53-9d5cce4bcc+gitea-1.22.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Forgejo::RepositoryApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RepositoryApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Forgejo::RepositoryApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RepositoryApi' do
|
30
|
+
it 'should create an instance of RepositoryApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Forgejo::RepositoryApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for accept_repo_transfer
|
36
|
+
# Accept a repo transfer
|
37
|
+
# @param owner owner of the repo to transfer
|
38
|
+
# @param repo name of the repo to transfer
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Repository]
|
41
|
+
describe 'accept_repo_transfer test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for create_current_user_repo
|
48
|
+
# Create a repository
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [CreateRepoOption] :body
|
51
|
+
# @return [Repository]
|
52
|
+
describe 'create_current_user_repo test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for create_fork
|
59
|
+
# Fork a repository
|
60
|
+
# @param owner owner of the repo to fork
|
61
|
+
# @param repo name of the repo to fork
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [CreateForkOption] :body
|
64
|
+
# @return [Repository]
|
65
|
+
describe 'create_fork test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for create_repo_variable
|
72
|
+
# Create a repo-level variable
|
73
|
+
# @param owner name of the owner
|
74
|
+
# @param repo name of the repository
|
75
|
+
# @param variablename name of the variable
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @option opts [CreateVariableOption] :body
|
78
|
+
# @return [nil]
|
79
|
+
describe 'create_repo_variable test' do
|
80
|
+
it 'should work' do
|
81
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# unit tests for delete_repo_secret
|
86
|
+
# Delete a secret in a repository
|
87
|
+
# @param owner owner of the repository
|
88
|
+
# @param repo name of the repository
|
89
|
+
# @param secretname name of the secret
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [nil]
|
92
|
+
describe 'delete_repo_secret test' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# unit tests for delete_repo_variable
|
99
|
+
# Delete a repo-level variable
|
100
|
+
# @param owner name of the owner
|
101
|
+
# @param repo name of the repository
|
102
|
+
# @param variablename name of the variable
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [ActionVariable]
|
105
|
+
describe 'delete_repo_variable test' do
|
106
|
+
it 'should work' do
|
107
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# unit tests for dispatch_workflow
|
112
|
+
# Dispatches a workflow
|
113
|
+
# @param owner owner of the repo
|
114
|
+
# @param repo name of the repo
|
115
|
+
# @param workflowname name of the workflow
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [DispatchWorkflowOption] :body
|
118
|
+
# @return [nil]
|
119
|
+
describe 'dispatch_workflow test' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# unit tests for generate_repo
|
126
|
+
# Create a repository using a template
|
127
|
+
# @param template_owner name of the template repository owner
|
128
|
+
# @param template_repo name of the template repository
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [GenerateRepoOption] :body
|
131
|
+
# @return [Repository]
|
132
|
+
describe 'generate_repo test' do
|
133
|
+
it 'should work' do
|
134
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# unit tests for get_annotated_tag
|
139
|
+
# Gets the tag object of an annotated tag (not lightweight tags)
|
140
|
+
# @param owner owner of the repo
|
141
|
+
# @param repo name of the repo
|
142
|
+
# @param sha sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [AnnotatedTag]
|
145
|
+
describe 'get_annotated_tag test' do
|
146
|
+
it 'should work' do
|
147
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# unit tests for get_blob
|
152
|
+
# Gets the blob of a repository.
|
153
|
+
# @param owner owner of the repo
|
154
|
+
# @param repo name of the repo
|
155
|
+
# @param sha sha of the commit
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [GitBlobResponse]
|
158
|
+
describe 'get_blob test' do
|
159
|
+
it 'should work' do
|
160
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# unit tests for get_repo_variable
|
165
|
+
# Get a repo-level variable
|
166
|
+
# @param owner name of the owner
|
167
|
+
# @param repo name of the repository
|
168
|
+
# @param variablename name of the variable
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @return [ActionVariable]
|
171
|
+
describe 'get_repo_variable test' do
|
172
|
+
it 'should work' do
|
173
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
# unit tests for get_repo_variables_list
|
178
|
+
# Get repo-level variables list
|
179
|
+
# @param owner name of the owner
|
180
|
+
# @param repo name of the repository
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
183
|
+
# @option opts [Integer] :limit page size of results
|
184
|
+
# @return [Array<ActionVariable>]
|
185
|
+
describe 'get_repo_variables_list test' do
|
186
|
+
it 'should work' do
|
187
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# unit tests for get_tree
|
192
|
+
# Gets the tree of a repository.
|
193
|
+
# @param owner owner of the repo
|
194
|
+
# @param repo name of the repo
|
195
|
+
# @param sha sha of the commit
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @option opts [Boolean] :recursive show all directories and files
|
198
|
+
# @option opts [Integer] :page page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page
|
199
|
+
# @option opts [Integer] :per_page number of items per page
|
200
|
+
# @return [GitTreeResponse]
|
201
|
+
describe 'get_tree test' do
|
202
|
+
it 'should work' do
|
203
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
# unit tests for list_action_tasks
|
208
|
+
# List a repository's action tasks
|
209
|
+
# @param owner owner of the repo
|
210
|
+
# @param repo name of the repo
|
211
|
+
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
213
|
+
# @option opts [Integer] :limit page size of results, default maximum page size is 50
|
214
|
+
# @return [ActionTaskResponse]
|
215
|
+
describe 'list_action_tasks test' do
|
216
|
+
it 'should work' do
|
217
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# unit tests for list_forks
|
222
|
+
# List a repository's forks
|
223
|
+
# @param owner owner of the repo
|
224
|
+
# @param repo name of the repo
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
227
|
+
# @option opts [Integer] :limit page size of results
|
228
|
+
# @return [Array<Repository>]
|
229
|
+
describe 'list_forks test' do
|
230
|
+
it 'should work' do
|
231
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
# unit tests for reject_repo_transfer
|
236
|
+
# Reject a repo transfer
|
237
|
+
# @param owner owner of the repo to transfer
|
238
|
+
# @param repo name of the repo to transfer
|
239
|
+
# @param [Hash] opts the optional parameters
|
240
|
+
# @return [Repository]
|
241
|
+
describe 'reject_repo_transfer test' do
|
242
|
+
it 'should work' do
|
243
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
# unit tests for repo_add_collaborator
|
248
|
+
# Add a collaborator to a repository
|
249
|
+
# @param owner owner of the repo
|
250
|
+
# @param repo name of the repo
|
251
|
+
# @param collaborator username of the collaborator to add
|
252
|
+
# @param [Hash] opts the optional parameters
|
253
|
+
# @option opts [AddCollaboratorOption] :body
|
254
|
+
# @return [nil]
|
255
|
+
describe 'repo_add_collaborator test' do
|
256
|
+
it 'should work' do
|
257
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# unit tests for repo_add_flag
|
262
|
+
# Add a flag to a repository
|
263
|
+
# @param owner owner of the repo
|
264
|
+
# @param repo name of the repo
|
265
|
+
# @param flag name of the flag
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @return [nil]
|
268
|
+
describe 'repo_add_flag test' do
|
269
|
+
it 'should work' do
|
270
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# unit tests for repo_add_push_mirror
|
275
|
+
# add a push mirror to the repository
|
276
|
+
# @param owner owner of the repo
|
277
|
+
# @param repo name of the repo
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @option opts [CreatePushMirrorOption] :body
|
280
|
+
# @return [PushMirror]
|
281
|
+
describe 'repo_add_push_mirror test' do
|
282
|
+
it 'should work' do
|
283
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# unit tests for repo_add_team
|
288
|
+
# Add a team to a repository
|
289
|
+
# @param owner owner of the repo
|
290
|
+
# @param repo name of the repo
|
291
|
+
# @param team team name
|
292
|
+
# @param [Hash] opts the optional parameters
|
293
|
+
# @return [nil]
|
294
|
+
describe 'repo_add_team test' do
|
295
|
+
it 'should work' do
|
296
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
# unit tests for repo_add_topic
|
301
|
+
# Add a topic to a repository
|
302
|
+
# @param owner owner of the repo
|
303
|
+
# @param repo name of the repo
|
304
|
+
# @param topic name of the topic to add
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @return [nil]
|
307
|
+
describe 'repo_add_topic test' do
|
308
|
+
it 'should work' do
|
309
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# unit tests for repo_apply_diff_patch
|
314
|
+
# Apply diff patch to repository
|
315
|
+
# @param owner owner of the repo
|
316
|
+
# @param repo name of the repo
|
317
|
+
# @param body
|
318
|
+
# @param [Hash] opts the optional parameters
|
319
|
+
# @return [FileResponse]
|
320
|
+
describe 'repo_apply_diff_patch test' do
|
321
|
+
it 'should work' do
|
322
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# unit tests for repo_cancel_scheduled_auto_merge
|
327
|
+
# Cancel the scheduled auto merge for the given pull request
|
328
|
+
# @param owner owner of the repo
|
329
|
+
# @param repo name of the repo
|
330
|
+
# @param index index of the pull request to merge
|
331
|
+
# @param [Hash] opts the optional parameters
|
332
|
+
# @return [nil]
|
333
|
+
describe 'repo_cancel_scheduled_auto_merge test' do
|
334
|
+
it 'should work' do
|
335
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
# unit tests for repo_change_files
|
340
|
+
# Modify multiple files in a repository
|
341
|
+
# @param owner owner of the repo
|
342
|
+
# @param repo name of the repo
|
343
|
+
# @param body
|
344
|
+
# @param [Hash] opts the optional parameters
|
345
|
+
# @return [FilesResponse]
|
346
|
+
describe 'repo_change_files test' do
|
347
|
+
it 'should work' do
|
348
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# unit tests for repo_check_collaborator
|
353
|
+
# Check if a user is a collaborator of a repository
|
354
|
+
# @param owner owner of the repo
|
355
|
+
# @param repo name of the repo
|
356
|
+
# @param collaborator username of the collaborator
|
357
|
+
# @param [Hash] opts the optional parameters
|
358
|
+
# @return [nil]
|
359
|
+
describe 'repo_check_collaborator test' do
|
360
|
+
it 'should work' do
|
361
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# unit tests for repo_check_flag
|
366
|
+
# Check if a repository has a given flag
|
367
|
+
# @param owner owner of the repo
|
368
|
+
# @param repo name of the repo
|
369
|
+
# @param flag name of the flag
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @return [nil]
|
372
|
+
describe 'repo_check_flag test' do
|
373
|
+
it 'should work' do
|
374
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
# unit tests for repo_check_team
|
379
|
+
# Check if a team is assigned to a repository
|
380
|
+
# @param owner owner of the repo
|
381
|
+
# @param repo name of the repo
|
382
|
+
# @param team team name
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @return [Team]
|
385
|
+
describe 'repo_check_team test' do
|
386
|
+
it 'should work' do
|
387
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
# unit tests for repo_compare_diff
|
392
|
+
# Get commit comparison information
|
393
|
+
# @param owner owner of the repo
|
394
|
+
# @param repo name of the repo
|
395
|
+
# @param basehead compare two branches or commits
|
396
|
+
# @param [Hash] opts the optional parameters
|
397
|
+
# @return [Compare]
|
398
|
+
describe 'repo_compare_diff test' do
|
399
|
+
it 'should work' do
|
400
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
404
|
+
# unit tests for repo_create_branch
|
405
|
+
# Create a branch
|
406
|
+
# @param owner owner of the repo
|
407
|
+
# @param repo name of the repo
|
408
|
+
# @param [Hash] opts the optional parameters
|
409
|
+
# @option opts [CreateBranchRepoOption] :body
|
410
|
+
# @return [Branch]
|
411
|
+
describe 'repo_create_branch test' do
|
412
|
+
it 'should work' do
|
413
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
# unit tests for repo_create_branch_protection
|
418
|
+
# Create a branch protections for a repository
|
419
|
+
# @param owner owner of the repo
|
420
|
+
# @param repo name of the repo
|
421
|
+
# @param [Hash] opts the optional parameters
|
422
|
+
# @option opts [CreateBranchProtectionOption] :body
|
423
|
+
# @return [BranchProtection]
|
424
|
+
describe 'repo_create_branch_protection test' do
|
425
|
+
it 'should work' do
|
426
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
# unit tests for repo_create_file
|
431
|
+
# Create a file in a repository
|
432
|
+
# @param owner owner of the repo
|
433
|
+
# @param repo name of the repo
|
434
|
+
# @param filepath path of the file to create
|
435
|
+
# @param body
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @return [FileResponse]
|
438
|
+
describe 'repo_create_file test' do
|
439
|
+
it 'should work' do
|
440
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
# unit tests for repo_create_hook
|
445
|
+
# Create a hook
|
446
|
+
# @param owner owner of the repo
|
447
|
+
# @param repo name of the repo
|
448
|
+
# @param [Hash] opts the optional parameters
|
449
|
+
# @option opts [CreateHookOption] :body
|
450
|
+
# @return [Hook]
|
451
|
+
describe 'repo_create_hook test' do
|
452
|
+
it 'should work' do
|
453
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
454
|
+
end
|
455
|
+
end
|
456
|
+
|
457
|
+
# unit tests for repo_create_key
|
458
|
+
# Add a key to a repository
|
459
|
+
# @param owner owner of the repo
|
460
|
+
# @param repo name of the repo
|
461
|
+
# @param [Hash] opts the optional parameters
|
462
|
+
# @option opts [CreateKeyOption] :body
|
463
|
+
# @return [DeployKey]
|
464
|
+
describe 'repo_create_key test' do
|
465
|
+
it 'should work' do
|
466
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
# unit tests for repo_create_pull_request
|
471
|
+
# Create a pull request
|
472
|
+
# @param owner owner of the repo
|
473
|
+
# @param repo name of the repo
|
474
|
+
# @param [Hash] opts the optional parameters
|
475
|
+
# @option opts [CreatePullRequestOption] :body
|
476
|
+
# @return [PullRequest]
|
477
|
+
describe 'repo_create_pull_request test' do
|
478
|
+
it 'should work' do
|
479
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
480
|
+
end
|
481
|
+
end
|
482
|
+
|
483
|
+
# unit tests for repo_create_pull_review
|
484
|
+
# Create a review to an pull request
|
485
|
+
# @param owner owner of the repo
|
486
|
+
# @param repo name of the repo
|
487
|
+
# @param index index of the pull request
|
488
|
+
# @param body
|
489
|
+
# @param [Hash] opts the optional parameters
|
490
|
+
# @return [PullReview]
|
491
|
+
describe 'repo_create_pull_review test' do
|
492
|
+
it 'should work' do
|
493
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
# unit tests for repo_create_pull_review_comment
|
498
|
+
# Add a new comment to a pull request review
|
499
|
+
# @param owner owner of the repo
|
500
|
+
# @param repo name of the repo
|
501
|
+
# @param index index of the pull request
|
502
|
+
# @param id id of the review
|
503
|
+
# @param body
|
504
|
+
# @param [Hash] opts the optional parameters
|
505
|
+
# @return [PullReviewComment]
|
506
|
+
describe 'repo_create_pull_review_comment test' do
|
507
|
+
it 'should work' do
|
508
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
509
|
+
end
|
510
|
+
end
|
511
|
+
|
512
|
+
# unit tests for repo_create_pull_review_requests
|
513
|
+
# create review requests for a pull request
|
514
|
+
# @param owner owner of the repo
|
515
|
+
# @param repo name of the repo
|
516
|
+
# @param index index of the pull request
|
517
|
+
# @param body
|
518
|
+
# @param [Hash] opts the optional parameters
|
519
|
+
# @return [Array<PullReview>]
|
520
|
+
describe 'repo_create_pull_review_requests test' do
|
521
|
+
it 'should work' do
|
522
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
523
|
+
end
|
524
|
+
end
|
525
|
+
|
526
|
+
# unit tests for repo_create_release
|
527
|
+
# Create a release
|
528
|
+
# @param owner owner of the repo
|
529
|
+
# @param repo name of the repo
|
530
|
+
# @param [Hash] opts the optional parameters
|
531
|
+
# @option opts [CreateReleaseOption] :body
|
532
|
+
# @return [Release]
|
533
|
+
describe 'repo_create_release test' do
|
534
|
+
it 'should work' do
|
535
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
536
|
+
end
|
537
|
+
end
|
538
|
+
|
539
|
+
# unit tests for repo_create_release_attachment
|
540
|
+
# Create a release attachment
|
541
|
+
# @param owner owner of the repo
|
542
|
+
# @param repo name of the repo
|
543
|
+
# @param id id of the release
|
544
|
+
# @param [Hash] opts the optional parameters
|
545
|
+
# @option opts [String] :name name of the attachment
|
546
|
+
# @option opts [File] :attachment attachment to upload
|
547
|
+
# @return [Attachment]
|
548
|
+
describe 'repo_create_release_attachment test' do
|
549
|
+
it 'should work' do
|
550
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
551
|
+
end
|
552
|
+
end
|
553
|
+
|
554
|
+
# unit tests for repo_create_status
|
555
|
+
# Create a commit status
|
556
|
+
# @param owner owner of the repo
|
557
|
+
# @param repo name of the repo
|
558
|
+
# @param sha sha of the commit
|
559
|
+
# @param [Hash] opts the optional parameters
|
560
|
+
# @option opts [CreateStatusOption] :body
|
561
|
+
# @return [CommitStatus]
|
562
|
+
describe 'repo_create_status test' do
|
563
|
+
it 'should work' do
|
564
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
# unit tests for repo_create_tag
|
569
|
+
# Create a new git tag in a repository
|
570
|
+
# @param owner owner of the repo
|
571
|
+
# @param repo name of the repo
|
572
|
+
# @param [Hash] opts the optional parameters
|
573
|
+
# @option opts [CreateTagOption] :body
|
574
|
+
# @return [Tag]
|
575
|
+
describe 'repo_create_tag test' do
|
576
|
+
it 'should work' do
|
577
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
581
|
+
# unit tests for repo_create_tag_protection
|
582
|
+
# Create a tag protections for a repository
|
583
|
+
# @param owner owner of the repo
|
584
|
+
# @param repo name of the repo
|
585
|
+
# @param [Hash] opts the optional parameters
|
586
|
+
# @option opts [CreateTagProtectionOption] :body
|
587
|
+
# @return [TagProtection]
|
588
|
+
describe 'repo_create_tag_protection test' do
|
589
|
+
it 'should work' do
|
590
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
591
|
+
end
|
592
|
+
end
|
593
|
+
|
594
|
+
# unit tests for repo_create_wiki_page
|
595
|
+
# Create a wiki page
|
596
|
+
# @param owner owner of the repo
|
597
|
+
# @param repo name of the repo
|
598
|
+
# @param [Hash] opts the optional parameters
|
599
|
+
# @option opts [CreateWikiPageOptions] :body
|
600
|
+
# @return [WikiPage]
|
601
|
+
describe 'repo_create_wiki_page test' do
|
602
|
+
it 'should work' do
|
603
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# unit tests for repo_delete
|
608
|
+
# Delete a repository
|
609
|
+
# @param owner owner of the repo to delete
|
610
|
+
# @param repo name of the repo to delete
|
611
|
+
# @param [Hash] opts the optional parameters
|
612
|
+
# @return [nil]
|
613
|
+
describe 'repo_delete test' do
|
614
|
+
it 'should work' do
|
615
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
619
|
+
# unit tests for repo_delete_all_flags
|
620
|
+
# Remove all flags from a repository
|
621
|
+
# @param owner owner of the repo
|
622
|
+
# @param repo name of the repo
|
623
|
+
# @param [Hash] opts the optional parameters
|
624
|
+
# @return [nil]
|
625
|
+
describe 'repo_delete_all_flags test' do
|
626
|
+
it 'should work' do
|
627
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
628
|
+
end
|
629
|
+
end
|
630
|
+
|
631
|
+
# unit tests for repo_delete_avatar
|
632
|
+
# Delete avatar
|
633
|
+
# @param owner owner of the repo
|
634
|
+
# @param repo name of the repo
|
635
|
+
# @param [Hash] opts the optional parameters
|
636
|
+
# @return [nil]
|
637
|
+
describe 'repo_delete_avatar test' do
|
638
|
+
it 'should work' do
|
639
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
643
|
+
# unit tests for repo_delete_branch
|
644
|
+
# Delete a specific branch from a repository
|
645
|
+
# @param owner owner of the repo
|
646
|
+
# @param repo name of the repo
|
647
|
+
# @param branch branch to delete
|
648
|
+
# @param [Hash] opts the optional parameters
|
649
|
+
# @return [nil]
|
650
|
+
describe 'repo_delete_branch test' do
|
651
|
+
it 'should work' do
|
652
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
656
|
+
# unit tests for repo_delete_branch_protection
|
657
|
+
# Delete a specific branch protection for the repository
|
658
|
+
# @param owner owner of the repo
|
659
|
+
# @param repo name of the repo
|
660
|
+
# @param name name of protected branch
|
661
|
+
# @param [Hash] opts the optional parameters
|
662
|
+
# @return [nil]
|
663
|
+
describe 'repo_delete_branch_protection test' do
|
664
|
+
it 'should work' do
|
665
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
666
|
+
end
|
667
|
+
end
|
668
|
+
|
669
|
+
# unit tests for repo_delete_collaborator
|
670
|
+
# Delete a collaborator from a repository
|
671
|
+
# @param owner owner of the repo
|
672
|
+
# @param repo name of the repo
|
673
|
+
# @param collaborator username of the collaborator to delete
|
674
|
+
# @param [Hash] opts the optional parameters
|
675
|
+
# @return [nil]
|
676
|
+
describe 'repo_delete_collaborator test' do
|
677
|
+
it 'should work' do
|
678
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
# unit tests for repo_delete_file
|
683
|
+
# Delete a file in a repository
|
684
|
+
# @param owner owner of the repo
|
685
|
+
# @param repo name of the repo
|
686
|
+
# @param filepath path of the file to delete
|
687
|
+
# @param body
|
688
|
+
# @param [Hash] opts the optional parameters
|
689
|
+
# @return [FileDeleteResponse]
|
690
|
+
describe 'repo_delete_file test' do
|
691
|
+
it 'should work' do
|
692
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
# unit tests for repo_delete_flag
|
697
|
+
# Remove a flag from a repository
|
698
|
+
# @param owner owner of the repo
|
699
|
+
# @param repo name of the repo
|
700
|
+
# @param flag name of the flag
|
701
|
+
# @param [Hash] opts the optional parameters
|
702
|
+
# @return [nil]
|
703
|
+
describe 'repo_delete_flag test' do
|
704
|
+
it 'should work' do
|
705
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
706
|
+
end
|
707
|
+
end
|
708
|
+
|
709
|
+
# unit tests for repo_delete_git_hook
|
710
|
+
# Delete a Git hook in a repository
|
711
|
+
# @param owner owner of the repo
|
712
|
+
# @param repo name of the repo
|
713
|
+
# @param id id of the hook to get
|
714
|
+
# @param [Hash] opts the optional parameters
|
715
|
+
# @return [nil]
|
716
|
+
describe 'repo_delete_git_hook test' do
|
717
|
+
it 'should work' do
|
718
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
722
|
+
# unit tests for repo_delete_hook
|
723
|
+
# Delete a hook in a repository
|
724
|
+
# @param owner owner of the repo
|
725
|
+
# @param repo name of the repo
|
726
|
+
# @param id id of the hook to delete
|
727
|
+
# @param [Hash] opts the optional parameters
|
728
|
+
# @return [nil]
|
729
|
+
describe 'repo_delete_hook test' do
|
730
|
+
it 'should work' do
|
731
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
732
|
+
end
|
733
|
+
end
|
734
|
+
|
735
|
+
# unit tests for repo_delete_key
|
736
|
+
# Delete a key from a repository
|
737
|
+
# @param owner owner of the repo
|
738
|
+
# @param repo name of the repo
|
739
|
+
# @param id id of the key to delete
|
740
|
+
# @param [Hash] opts the optional parameters
|
741
|
+
# @return [nil]
|
742
|
+
describe 'repo_delete_key test' do
|
743
|
+
it 'should work' do
|
744
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
745
|
+
end
|
746
|
+
end
|
747
|
+
|
748
|
+
# unit tests for repo_delete_pull_review
|
749
|
+
# Delete a specific review from a pull request
|
750
|
+
# @param owner owner of the repo
|
751
|
+
# @param repo name of the repo
|
752
|
+
# @param index index of the pull request
|
753
|
+
# @param id id of the review
|
754
|
+
# @param [Hash] opts the optional parameters
|
755
|
+
# @return [nil]
|
756
|
+
describe 'repo_delete_pull_review test' do
|
757
|
+
it 'should work' do
|
758
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
759
|
+
end
|
760
|
+
end
|
761
|
+
|
762
|
+
# unit tests for repo_delete_pull_review_comment
|
763
|
+
# Delete a pull review comment
|
764
|
+
# @param owner owner of the repo
|
765
|
+
# @param repo name of the repo
|
766
|
+
# @param index index of the pull request
|
767
|
+
# @param id id of the review
|
768
|
+
# @param comment id of the comment
|
769
|
+
# @param [Hash] opts the optional parameters
|
770
|
+
# @return [nil]
|
771
|
+
describe 'repo_delete_pull_review_comment test' do
|
772
|
+
it 'should work' do
|
773
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
774
|
+
end
|
775
|
+
end
|
776
|
+
|
777
|
+
# unit tests for repo_delete_pull_review_requests
|
778
|
+
# cancel review requests for a pull request
|
779
|
+
# @param owner owner of the repo
|
780
|
+
# @param repo name of the repo
|
781
|
+
# @param index index of the pull request
|
782
|
+
# @param body
|
783
|
+
# @param [Hash] opts the optional parameters
|
784
|
+
# @return [nil]
|
785
|
+
describe 'repo_delete_pull_review_requests test' do
|
786
|
+
it 'should work' do
|
787
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
# unit tests for repo_delete_push_mirror
|
792
|
+
# deletes a push mirror from a repository by remoteName
|
793
|
+
# @param owner owner of the repo
|
794
|
+
# @param repo name of the repo
|
795
|
+
# @param name remote name of the pushMirror
|
796
|
+
# @param [Hash] opts the optional parameters
|
797
|
+
# @return [nil]
|
798
|
+
describe 'repo_delete_push_mirror test' do
|
799
|
+
it 'should work' do
|
800
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
801
|
+
end
|
802
|
+
end
|
803
|
+
|
804
|
+
# unit tests for repo_delete_release
|
805
|
+
# Delete a release
|
806
|
+
# @param owner owner of the repo
|
807
|
+
# @param repo name of the repo
|
808
|
+
# @param id id of the release to delete
|
809
|
+
# @param [Hash] opts the optional parameters
|
810
|
+
# @return [nil]
|
811
|
+
describe 'repo_delete_release test' do
|
812
|
+
it 'should work' do
|
813
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
814
|
+
end
|
815
|
+
end
|
816
|
+
|
817
|
+
# unit tests for repo_delete_release_attachment
|
818
|
+
# Delete a release attachment
|
819
|
+
# @param owner owner of the repo
|
820
|
+
# @param repo name of the repo
|
821
|
+
# @param id id of the release
|
822
|
+
# @param attachment_id id of the attachment to delete
|
823
|
+
# @param [Hash] opts the optional parameters
|
824
|
+
# @return [nil]
|
825
|
+
describe 'repo_delete_release_attachment test' do
|
826
|
+
it 'should work' do
|
827
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
828
|
+
end
|
829
|
+
end
|
830
|
+
|
831
|
+
# unit tests for repo_delete_release_by_tag
|
832
|
+
# Delete a release by tag name
|
833
|
+
# @param owner owner of the repo
|
834
|
+
# @param repo name of the repo
|
835
|
+
# @param tag tag name of the release to delete
|
836
|
+
# @param [Hash] opts the optional parameters
|
837
|
+
# @return [nil]
|
838
|
+
describe 'repo_delete_release_by_tag test' do
|
839
|
+
it 'should work' do
|
840
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
841
|
+
end
|
842
|
+
end
|
843
|
+
|
844
|
+
# unit tests for repo_delete_tag
|
845
|
+
# Delete a repository's tag by name
|
846
|
+
# @param owner owner of the repo
|
847
|
+
# @param repo name of the repo
|
848
|
+
# @param tag name of tag to delete
|
849
|
+
# @param [Hash] opts the optional parameters
|
850
|
+
# @return [nil]
|
851
|
+
describe 'repo_delete_tag test' do
|
852
|
+
it 'should work' do
|
853
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
854
|
+
end
|
855
|
+
end
|
856
|
+
|
857
|
+
# unit tests for repo_delete_tag_protection
|
858
|
+
# Delete a specific tag protection for the repository
|
859
|
+
# @param owner owner of the repo
|
860
|
+
# @param repo name of the repo
|
861
|
+
# @param id id of protected tag
|
862
|
+
# @param [Hash] opts the optional parameters
|
863
|
+
# @return [nil]
|
864
|
+
describe 'repo_delete_tag_protection test' do
|
865
|
+
it 'should work' do
|
866
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
867
|
+
end
|
868
|
+
end
|
869
|
+
|
870
|
+
# unit tests for repo_delete_team
|
871
|
+
# Delete a team from a repository
|
872
|
+
# @param owner owner of the repo
|
873
|
+
# @param repo name of the repo
|
874
|
+
# @param team team name
|
875
|
+
# @param [Hash] opts the optional parameters
|
876
|
+
# @return [nil]
|
877
|
+
describe 'repo_delete_team test' do
|
878
|
+
it 'should work' do
|
879
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
880
|
+
end
|
881
|
+
end
|
882
|
+
|
883
|
+
# unit tests for repo_delete_topic
|
884
|
+
# Delete a topic from a repository
|
885
|
+
# @param owner owner of the repo
|
886
|
+
# @param repo name of the repo
|
887
|
+
# @param topic name of the topic to delete
|
888
|
+
# @param [Hash] opts the optional parameters
|
889
|
+
# @return [nil]
|
890
|
+
describe 'repo_delete_topic test' do
|
891
|
+
it 'should work' do
|
892
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
893
|
+
end
|
894
|
+
end
|
895
|
+
|
896
|
+
# unit tests for repo_delete_wiki_page
|
897
|
+
# Delete a wiki page
|
898
|
+
# @param owner owner of the repo
|
899
|
+
# @param repo name of the repo
|
900
|
+
# @param page_name name of the page
|
901
|
+
# @param [Hash] opts the optional parameters
|
902
|
+
# @return [nil]
|
903
|
+
describe 'repo_delete_wiki_page test' do
|
904
|
+
it 'should work' do
|
905
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
906
|
+
end
|
907
|
+
end
|
908
|
+
|
909
|
+
# unit tests for repo_dismiss_pull_review
|
910
|
+
# Dismiss a review for a pull request
|
911
|
+
# @param owner owner of the repo
|
912
|
+
# @param repo name of the repo
|
913
|
+
# @param index index of the pull request
|
914
|
+
# @param id id of the review
|
915
|
+
# @param body
|
916
|
+
# @param [Hash] opts the optional parameters
|
917
|
+
# @return [PullReview]
|
918
|
+
describe 'repo_dismiss_pull_review test' do
|
919
|
+
it 'should work' do
|
920
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
921
|
+
end
|
922
|
+
end
|
923
|
+
|
924
|
+
# unit tests for repo_download_commit_diff_or_patch
|
925
|
+
# Get a commit's diff or patch
|
926
|
+
# @param owner owner of the repo
|
927
|
+
# @param repo name of the repo
|
928
|
+
# @param sha SHA of the commit to get
|
929
|
+
# @param diff_type whether the output is diff or patch
|
930
|
+
# @param [Hash] opts the optional parameters
|
931
|
+
# @return [String]
|
932
|
+
describe 'repo_download_commit_diff_or_patch test' do
|
933
|
+
it 'should work' do
|
934
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
935
|
+
end
|
936
|
+
end
|
937
|
+
|
938
|
+
# unit tests for repo_download_pull_diff_or_patch
|
939
|
+
# Get a pull request diff or patch
|
940
|
+
# @param owner owner of the repo
|
941
|
+
# @param repo name of the repo
|
942
|
+
# @param index index of the pull request to get
|
943
|
+
# @param diff_type whether the output is diff or patch
|
944
|
+
# @param [Hash] opts the optional parameters
|
945
|
+
# @option opts [Boolean] :binary whether to include binary file changes. if true, the diff is applicable with `git apply`
|
946
|
+
# @return [String]
|
947
|
+
describe 'repo_download_pull_diff_or_patch test' do
|
948
|
+
it 'should work' do
|
949
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
950
|
+
end
|
951
|
+
end
|
952
|
+
|
953
|
+
# unit tests for repo_edit
|
954
|
+
# Edit a repository's properties. Only fields that are set will be changed.
|
955
|
+
# @param owner owner of the repo to edit
|
956
|
+
# @param repo name of the repo to edit
|
957
|
+
# @param [Hash] opts the optional parameters
|
958
|
+
# @option opts [EditRepoOption] :body Properties of a repo that you can edit
|
959
|
+
# @return [Repository]
|
960
|
+
describe 'repo_edit test' do
|
961
|
+
it 'should work' do
|
962
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
963
|
+
end
|
964
|
+
end
|
965
|
+
|
966
|
+
# unit tests for repo_edit_branch_protection
|
967
|
+
# Edit a branch protections for a repository. Only fields that are set will be changed
|
968
|
+
# @param owner owner of the repo
|
969
|
+
# @param repo name of the repo
|
970
|
+
# @param name name of protected branch
|
971
|
+
# @param [Hash] opts the optional parameters
|
972
|
+
# @option opts [EditBranchProtectionOption] :body
|
973
|
+
# @return [BranchProtection]
|
974
|
+
describe 'repo_edit_branch_protection test' do
|
975
|
+
it 'should work' do
|
976
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
977
|
+
end
|
978
|
+
end
|
979
|
+
|
980
|
+
# unit tests for repo_edit_git_hook
|
981
|
+
# Edit a Git hook in a repository
|
982
|
+
# @param owner owner of the repo
|
983
|
+
# @param repo name of the repo
|
984
|
+
# @param id id of the hook to get
|
985
|
+
# @param [Hash] opts the optional parameters
|
986
|
+
# @option opts [EditGitHookOption] :body
|
987
|
+
# @return [GitHook]
|
988
|
+
describe 'repo_edit_git_hook test' do
|
989
|
+
it 'should work' do
|
990
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
991
|
+
end
|
992
|
+
end
|
993
|
+
|
994
|
+
# unit tests for repo_edit_hook
|
995
|
+
# Edit a hook in a repository
|
996
|
+
# @param owner owner of the repo
|
997
|
+
# @param repo name of the repo
|
998
|
+
# @param id index of the hook
|
999
|
+
# @param [Hash] opts the optional parameters
|
1000
|
+
# @option opts [EditHookOption] :body
|
1001
|
+
# @return [Hook]
|
1002
|
+
describe 'repo_edit_hook test' do
|
1003
|
+
it 'should work' do
|
1004
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1005
|
+
end
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# unit tests for repo_edit_pull_request
|
1009
|
+
# Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
|
1010
|
+
# @param owner owner of the repo
|
1011
|
+
# @param repo name of the repo
|
1012
|
+
# @param index index of the pull request to edit
|
1013
|
+
# @param [Hash] opts the optional parameters
|
1014
|
+
# @option opts [EditPullRequestOption] :body
|
1015
|
+
# @return [PullRequest]
|
1016
|
+
describe 'repo_edit_pull_request test' do
|
1017
|
+
it 'should work' do
|
1018
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1019
|
+
end
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
# unit tests for repo_edit_release
|
1023
|
+
# Update a release
|
1024
|
+
# @param owner owner of the repo
|
1025
|
+
# @param repo name of the repo
|
1026
|
+
# @param id id of the release to edit
|
1027
|
+
# @param [Hash] opts the optional parameters
|
1028
|
+
# @option opts [EditReleaseOption] :body
|
1029
|
+
# @return [Release]
|
1030
|
+
describe 'repo_edit_release test' do
|
1031
|
+
it 'should work' do
|
1032
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# unit tests for repo_edit_release_attachment
|
1037
|
+
# Edit a release attachment
|
1038
|
+
# @param owner owner of the repo
|
1039
|
+
# @param repo name of the repo
|
1040
|
+
# @param id id of the release
|
1041
|
+
# @param attachment_id id of the attachment to edit
|
1042
|
+
# @param [Hash] opts the optional parameters
|
1043
|
+
# @option opts [EditAttachmentOptions] :body
|
1044
|
+
# @return [Attachment]
|
1045
|
+
describe 'repo_edit_release_attachment test' do
|
1046
|
+
it 'should work' do
|
1047
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1048
|
+
end
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
# unit tests for repo_edit_tag_protection
|
1052
|
+
# Edit a tag protections for a repository. Only fields that are set will be changed
|
1053
|
+
# @param owner owner of the repo
|
1054
|
+
# @param repo name of the repo
|
1055
|
+
# @param id id of protected tag
|
1056
|
+
# @param [Hash] opts the optional parameters
|
1057
|
+
# @option opts [EditTagProtectionOption] :body
|
1058
|
+
# @return [TagProtection]
|
1059
|
+
describe 'repo_edit_tag_protection test' do
|
1060
|
+
it 'should work' do
|
1061
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1062
|
+
end
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# unit tests for repo_edit_wiki_page
|
1066
|
+
# Edit a wiki page
|
1067
|
+
# @param owner owner of the repo
|
1068
|
+
# @param repo name of the repo
|
1069
|
+
# @param page_name name of the page
|
1070
|
+
# @param [Hash] opts the optional parameters
|
1071
|
+
# @option opts [CreateWikiPageOptions] :body
|
1072
|
+
# @return [WikiPage]
|
1073
|
+
describe 'repo_edit_wiki_page test' do
|
1074
|
+
it 'should work' do
|
1075
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
# unit tests for repo_get
|
1080
|
+
# Get a repository
|
1081
|
+
# @param owner owner of the repo
|
1082
|
+
# @param repo name of the repo
|
1083
|
+
# @param [Hash] opts the optional parameters
|
1084
|
+
# @return [Repository]
|
1085
|
+
describe 'repo_get test' do
|
1086
|
+
it 'should work' do
|
1087
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1088
|
+
end
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
# unit tests for repo_get_all_commits
|
1092
|
+
# Get a list of all commits from a repository
|
1093
|
+
# @param owner owner of the repo
|
1094
|
+
# @param repo name of the repo
|
1095
|
+
# @param [Hash] opts the optional parameters
|
1096
|
+
# @option opts [String] :sha SHA or branch to start listing commits from (usually 'master')
|
1097
|
+
# @option opts [String] :path filepath of a file/dir
|
1098
|
+
# @option opts [Boolean] :stat include diff stats for every commit (disable for speedup, default 'true')
|
1099
|
+
# @option opts [Boolean] :verification include verification for every commit (disable for speedup, default 'true')
|
1100
|
+
# @option opts [Boolean] :files include a list of affected files for every commit (disable for speedup, default 'true')
|
1101
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1102
|
+
# @option opts [Integer] :limit page size of results (ignored if used with 'path')
|
1103
|
+
# @option opts [String] :_not commits that match the given specifier will not be listed.
|
1104
|
+
# @return [Array<Commit>]
|
1105
|
+
describe 'repo_get_all_commits test' do
|
1106
|
+
it 'should work' do
|
1107
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1108
|
+
end
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# unit tests for repo_get_archive
|
1112
|
+
# Get an archive of a repository
|
1113
|
+
# @param owner owner of the repo
|
1114
|
+
# @param repo name of the repo
|
1115
|
+
# @param archive the git reference for download with attached archive format (e.g. master.zip)
|
1116
|
+
# @param [Hash] opts the optional parameters
|
1117
|
+
# @return [nil]
|
1118
|
+
describe 'repo_get_archive test' do
|
1119
|
+
it 'should work' do
|
1120
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1121
|
+
end
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
# unit tests for repo_get_assignees
|
1125
|
+
# Return all users that have write access and can be assigned to issues
|
1126
|
+
# @param owner owner of the repo
|
1127
|
+
# @param repo name of the repo
|
1128
|
+
# @param [Hash] opts the optional parameters
|
1129
|
+
# @return [Array<User>]
|
1130
|
+
describe 'repo_get_assignees test' do
|
1131
|
+
it 'should work' do
|
1132
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1133
|
+
end
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# unit tests for repo_get_branch
|
1137
|
+
# Retrieve a specific branch from a repository, including its effective branch protection
|
1138
|
+
# @param owner owner of the repo
|
1139
|
+
# @param repo name of the repo
|
1140
|
+
# @param branch branch to get
|
1141
|
+
# @param [Hash] opts the optional parameters
|
1142
|
+
# @return [Branch]
|
1143
|
+
describe 'repo_get_branch test' do
|
1144
|
+
it 'should work' do
|
1145
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1146
|
+
end
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
# unit tests for repo_get_branch_protection
|
1150
|
+
# Get a specific branch protection for the repository
|
1151
|
+
# @param owner owner of the repo
|
1152
|
+
# @param repo name of the repo
|
1153
|
+
# @param name name of protected branch
|
1154
|
+
# @param [Hash] opts the optional parameters
|
1155
|
+
# @return [BranchProtection]
|
1156
|
+
describe 'repo_get_branch_protection test' do
|
1157
|
+
it 'should work' do
|
1158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1159
|
+
end
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
# unit tests for repo_get_by_id
|
1163
|
+
# Get a repository by id
|
1164
|
+
# @param id id of the repo to get
|
1165
|
+
# @param [Hash] opts the optional parameters
|
1166
|
+
# @return [Repository]
|
1167
|
+
describe 'repo_get_by_id test' do
|
1168
|
+
it 'should work' do
|
1169
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1170
|
+
end
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
# unit tests for repo_get_combined_status_by_ref
|
1174
|
+
# Get a commit's combined status, by branch/tag/commit reference
|
1175
|
+
# @param owner owner of the repo
|
1176
|
+
# @param repo name of the repo
|
1177
|
+
# @param ref name of branch/tag/commit
|
1178
|
+
# @param [Hash] opts the optional parameters
|
1179
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1180
|
+
# @option opts [Integer] :limit page size of results
|
1181
|
+
# @return [CombinedStatus]
|
1182
|
+
describe 'repo_get_combined_status_by_ref test' do
|
1183
|
+
it 'should work' do
|
1184
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1185
|
+
end
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# unit tests for repo_get_commit_pull_request
|
1189
|
+
# Get the pull request of the commit
|
1190
|
+
# @param owner owner of the repo
|
1191
|
+
# @param repo name of the repo
|
1192
|
+
# @param sha SHA of the commit to get
|
1193
|
+
# @param [Hash] opts the optional parameters
|
1194
|
+
# @return [PullRequest]
|
1195
|
+
describe 'repo_get_commit_pull_request test' do
|
1196
|
+
it 'should work' do
|
1197
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1198
|
+
end
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
# unit tests for repo_get_contents
|
1202
|
+
# Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
|
1203
|
+
# @param owner owner of the repo
|
1204
|
+
# @param repo name of the repo
|
1205
|
+
# @param filepath path of the dir, file, symlink or submodule in the repo
|
1206
|
+
# @param [Hash] opts the optional parameters
|
1207
|
+
# @option opts [String] :ref The name of the commit/branch/tag. Default the repository’s default branch (usually master)
|
1208
|
+
# @return [ContentsResponse]
|
1209
|
+
describe 'repo_get_contents test' do
|
1210
|
+
it 'should work' do
|
1211
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1212
|
+
end
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
# unit tests for repo_get_contents_list
|
1216
|
+
# Gets the metadata of all the entries of the root dir
|
1217
|
+
# @param owner owner of the repo
|
1218
|
+
# @param repo name of the repo
|
1219
|
+
# @param [Hash] opts the optional parameters
|
1220
|
+
# @option opts [String] :ref The name of the commit/branch/tag. Default the repository’s default branch (usually master)
|
1221
|
+
# @return [Array<ContentsResponse>]
|
1222
|
+
describe 'repo_get_contents_list test' do
|
1223
|
+
it 'should work' do
|
1224
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1225
|
+
end
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# unit tests for repo_get_editor_config
|
1229
|
+
# Get the EditorConfig definitions of a file in a repository
|
1230
|
+
# @param owner owner of the repo
|
1231
|
+
# @param repo name of the repo
|
1232
|
+
# @param filepath filepath of file to get
|
1233
|
+
# @param [Hash] opts the optional parameters
|
1234
|
+
# @option opts [String] :ref The name of the commit/branch/tag. Default the repository’s default branch (usually master)
|
1235
|
+
# @return [nil]
|
1236
|
+
describe 'repo_get_editor_config test' do
|
1237
|
+
it 'should work' do
|
1238
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1239
|
+
end
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# unit tests for repo_get_git_hook
|
1243
|
+
# Get a Git hook
|
1244
|
+
# @param owner owner of the repo
|
1245
|
+
# @param repo name of the repo
|
1246
|
+
# @param id id of the hook to get
|
1247
|
+
# @param [Hash] opts the optional parameters
|
1248
|
+
# @return [GitHook]
|
1249
|
+
describe 'repo_get_git_hook test' do
|
1250
|
+
it 'should work' do
|
1251
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1252
|
+
end
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
# unit tests for repo_get_hook
|
1256
|
+
# Get a hook
|
1257
|
+
# @param owner owner of the repo
|
1258
|
+
# @param repo name of the repo
|
1259
|
+
# @param id id of the hook to get
|
1260
|
+
# @param [Hash] opts the optional parameters
|
1261
|
+
# @return [Hook]
|
1262
|
+
describe 'repo_get_hook test' do
|
1263
|
+
it 'should work' do
|
1264
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1265
|
+
end
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
# unit tests for repo_get_issue_config
|
1269
|
+
# Returns the issue config for a repo
|
1270
|
+
# @param owner owner of the repo
|
1271
|
+
# @param repo name of the repo
|
1272
|
+
# @param [Hash] opts the optional parameters
|
1273
|
+
# @return [IssueConfig]
|
1274
|
+
describe 'repo_get_issue_config test' do
|
1275
|
+
it 'should work' do
|
1276
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1277
|
+
end
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# unit tests for repo_get_issue_templates
|
1281
|
+
# Get available issue templates for a repository
|
1282
|
+
# @param owner owner of the repo
|
1283
|
+
# @param repo name of the repo
|
1284
|
+
# @param [Hash] opts the optional parameters
|
1285
|
+
# @return [Array<IssueTemplate>]
|
1286
|
+
describe 'repo_get_issue_templates test' do
|
1287
|
+
it 'should work' do
|
1288
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1289
|
+
end
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
# unit tests for repo_get_key
|
1293
|
+
# Get a repository's key by id
|
1294
|
+
# @param owner owner of the repo
|
1295
|
+
# @param repo name of the repo
|
1296
|
+
# @param id id of the key to get
|
1297
|
+
# @param [Hash] opts the optional parameters
|
1298
|
+
# @return [DeployKey]
|
1299
|
+
describe 'repo_get_key test' do
|
1300
|
+
it 'should work' do
|
1301
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1302
|
+
end
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# unit tests for repo_get_languages
|
1306
|
+
# Get languages and number of bytes of code written
|
1307
|
+
# @param owner owner of the repo
|
1308
|
+
# @param repo name of the repo
|
1309
|
+
# @param [Hash] opts the optional parameters
|
1310
|
+
# @return [Hash<String, Integer>]
|
1311
|
+
describe 'repo_get_languages test' do
|
1312
|
+
it 'should work' do
|
1313
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1314
|
+
end
|
1315
|
+
end
|
1316
|
+
|
1317
|
+
# unit tests for repo_get_latest_release
|
1318
|
+
# Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at
|
1319
|
+
# @param owner owner of the repo
|
1320
|
+
# @param repo name of the repo
|
1321
|
+
# @param [Hash] opts the optional parameters
|
1322
|
+
# @return [Release]
|
1323
|
+
describe 'repo_get_latest_release test' do
|
1324
|
+
it 'should work' do
|
1325
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1326
|
+
end
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
# unit tests for repo_get_note
|
1330
|
+
# Get a note corresponding to a single commit from a repository
|
1331
|
+
# @param owner owner of the repo
|
1332
|
+
# @param repo name of the repo
|
1333
|
+
# @param sha a git ref or commit sha
|
1334
|
+
# @param [Hash] opts the optional parameters
|
1335
|
+
# @option opts [Boolean] :verification include verification for every commit (disable for speedup, default 'true')
|
1336
|
+
# @option opts [Boolean] :files include a list of affected files for every commit (disable for speedup, default 'true')
|
1337
|
+
# @return [Note]
|
1338
|
+
describe 'repo_get_note test' do
|
1339
|
+
it 'should work' do
|
1340
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1341
|
+
end
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
# unit tests for repo_get_pull_request
|
1345
|
+
# Get a pull request
|
1346
|
+
# @param owner owner of the repo
|
1347
|
+
# @param repo name of the repo
|
1348
|
+
# @param index index of the pull request to get
|
1349
|
+
# @param [Hash] opts the optional parameters
|
1350
|
+
# @return [PullRequest]
|
1351
|
+
describe 'repo_get_pull_request test' do
|
1352
|
+
it 'should work' do
|
1353
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
# unit tests for repo_get_pull_request_by_base_head
|
1358
|
+
# Get a pull request by base and head
|
1359
|
+
# @param owner owner of the repo
|
1360
|
+
# @param repo name of the repo
|
1361
|
+
# @param base base of the pull request to get
|
1362
|
+
# @param head head of the pull request to get
|
1363
|
+
# @param [Hash] opts the optional parameters
|
1364
|
+
# @return [PullRequest]
|
1365
|
+
describe 'repo_get_pull_request_by_base_head test' do
|
1366
|
+
it 'should work' do
|
1367
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1368
|
+
end
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
# unit tests for repo_get_pull_request_commits
|
1372
|
+
# Get commits for a pull request
|
1373
|
+
# @param owner owner of the repo
|
1374
|
+
# @param repo name of the repo
|
1375
|
+
# @param index index of the pull request to get
|
1376
|
+
# @param [Hash] opts the optional parameters
|
1377
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1378
|
+
# @option opts [Integer] :limit page size of results
|
1379
|
+
# @option opts [Boolean] :verification include verification for every commit (disable for speedup, default 'true')
|
1380
|
+
# @option opts [Boolean] :files include a list of affected files for every commit (disable for speedup, default 'true')
|
1381
|
+
# @return [Array<Commit>]
|
1382
|
+
describe 'repo_get_pull_request_commits test' do
|
1383
|
+
it 'should work' do
|
1384
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1385
|
+
end
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
# unit tests for repo_get_pull_request_files
|
1389
|
+
# Get changed files for a pull request
|
1390
|
+
# @param owner owner of the repo
|
1391
|
+
# @param repo name of the repo
|
1392
|
+
# @param index index of the pull request to get
|
1393
|
+
# @param [Hash] opts the optional parameters
|
1394
|
+
# @option opts [String] :skip_to skip to given file
|
1395
|
+
# @option opts [String] :whitespace whitespace behavior
|
1396
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1397
|
+
# @option opts [Integer] :limit page size of results
|
1398
|
+
# @return [Array<ChangedFile>]
|
1399
|
+
describe 'repo_get_pull_request_files test' do
|
1400
|
+
it 'should work' do
|
1401
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1402
|
+
end
|
1403
|
+
end
|
1404
|
+
|
1405
|
+
# unit tests for repo_get_pull_review
|
1406
|
+
# Get a specific review for a pull request
|
1407
|
+
# @param owner owner of the repo
|
1408
|
+
# @param repo name of the repo
|
1409
|
+
# @param index index of the pull request
|
1410
|
+
# @param id id of the review
|
1411
|
+
# @param [Hash] opts the optional parameters
|
1412
|
+
# @return [PullReview]
|
1413
|
+
describe 'repo_get_pull_review test' do
|
1414
|
+
it 'should work' do
|
1415
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1416
|
+
end
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
# unit tests for repo_get_pull_review_comment
|
1420
|
+
# Get a pull review comment
|
1421
|
+
# @param owner owner of the repo
|
1422
|
+
# @param repo name of the repo
|
1423
|
+
# @param index index of the pull request
|
1424
|
+
# @param id id of the review
|
1425
|
+
# @param comment id of the comment
|
1426
|
+
# @param [Hash] opts the optional parameters
|
1427
|
+
# @return [PullReviewComment]
|
1428
|
+
describe 'repo_get_pull_review_comment test' do
|
1429
|
+
it 'should work' do
|
1430
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
# unit tests for repo_get_pull_review_comments
|
1435
|
+
# Get a specific review for a pull request
|
1436
|
+
# @param owner owner of the repo
|
1437
|
+
# @param repo name of the repo
|
1438
|
+
# @param index index of the pull request
|
1439
|
+
# @param id id of the review
|
1440
|
+
# @param [Hash] opts the optional parameters
|
1441
|
+
# @return [Array<PullReviewComment>]
|
1442
|
+
describe 'repo_get_pull_review_comments test' do
|
1443
|
+
it 'should work' do
|
1444
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1445
|
+
end
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
# unit tests for repo_get_push_mirror_by_remote_name
|
1449
|
+
# Get push mirror of the repository by remoteName
|
1450
|
+
# @param owner owner of the repo
|
1451
|
+
# @param repo name of the repo
|
1452
|
+
# @param name remote name of push mirror
|
1453
|
+
# @param [Hash] opts the optional parameters
|
1454
|
+
# @return [PushMirror]
|
1455
|
+
describe 'repo_get_push_mirror_by_remote_name test' do
|
1456
|
+
it 'should work' do
|
1457
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1458
|
+
end
|
1459
|
+
end
|
1460
|
+
|
1461
|
+
# unit tests for repo_get_raw_file
|
1462
|
+
# Get a file from a repository
|
1463
|
+
# @param owner owner of the repo
|
1464
|
+
# @param repo name of the repo
|
1465
|
+
# @param filepath filepath of the file to get
|
1466
|
+
# @param [Hash] opts the optional parameters
|
1467
|
+
# @option opts [String] :ref The name of the commit/branch/tag. Default the repository’s default branch (usually master)
|
1468
|
+
# @return [nil]
|
1469
|
+
describe 'repo_get_raw_file test' do
|
1470
|
+
it 'should work' do
|
1471
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1472
|
+
end
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
# unit tests for repo_get_raw_file_or_lfs
|
1476
|
+
# Get a file or it's LFS object from a repository
|
1477
|
+
# @param owner owner of the repo
|
1478
|
+
# @param repo name of the repo
|
1479
|
+
# @param filepath filepath of the file to get
|
1480
|
+
# @param [Hash] opts the optional parameters
|
1481
|
+
# @option opts [String] :ref The name of the commit/branch/tag. Default the repository’s default branch (usually master)
|
1482
|
+
# @return [nil]
|
1483
|
+
describe 'repo_get_raw_file_or_lfs test' do
|
1484
|
+
it 'should work' do
|
1485
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1486
|
+
end
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
# unit tests for repo_get_release
|
1490
|
+
# Get a release
|
1491
|
+
# @param owner owner of the repo
|
1492
|
+
# @param repo name of the repo
|
1493
|
+
# @param id id of the release to get
|
1494
|
+
# @param [Hash] opts the optional parameters
|
1495
|
+
# @return [Release]
|
1496
|
+
describe 'repo_get_release test' do
|
1497
|
+
it 'should work' do
|
1498
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1499
|
+
end
|
1500
|
+
end
|
1501
|
+
|
1502
|
+
# unit tests for repo_get_release_attachment
|
1503
|
+
# Get a release attachment
|
1504
|
+
# @param owner owner of the repo
|
1505
|
+
# @param repo name of the repo
|
1506
|
+
# @param id id of the release
|
1507
|
+
# @param attachment_id id of the attachment to get
|
1508
|
+
# @param [Hash] opts the optional parameters
|
1509
|
+
# @return [Attachment]
|
1510
|
+
describe 'repo_get_release_attachment test' do
|
1511
|
+
it 'should work' do
|
1512
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
# unit tests for repo_get_release_by_tag
|
1517
|
+
# Get a release by tag name
|
1518
|
+
# @param owner owner of the repo
|
1519
|
+
# @param repo name of the repo
|
1520
|
+
# @param tag tag name of the release to get
|
1521
|
+
# @param [Hash] opts the optional parameters
|
1522
|
+
# @return [Release]
|
1523
|
+
describe 'repo_get_release_by_tag test' do
|
1524
|
+
it 'should work' do
|
1525
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1526
|
+
end
|
1527
|
+
end
|
1528
|
+
|
1529
|
+
# unit tests for repo_get_repo_permissions
|
1530
|
+
# Get repository permissions for a user
|
1531
|
+
# @param owner owner of the repo
|
1532
|
+
# @param repo name of the repo
|
1533
|
+
# @param collaborator username of the collaborator
|
1534
|
+
# @param [Hash] opts the optional parameters
|
1535
|
+
# @return [RepoCollaboratorPermission]
|
1536
|
+
describe 'repo_get_repo_permissions test' do
|
1537
|
+
it 'should work' do
|
1538
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1539
|
+
end
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
# unit tests for repo_get_reviewers
|
1543
|
+
# Return all users that can be requested to review in this repo
|
1544
|
+
# @param owner owner of the repo
|
1545
|
+
# @param repo name of the repo
|
1546
|
+
# @param [Hash] opts the optional parameters
|
1547
|
+
# @return [Array<User>]
|
1548
|
+
describe 'repo_get_reviewers test' do
|
1549
|
+
it 'should work' do
|
1550
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1551
|
+
end
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
# unit tests for repo_get_runner_registration_token
|
1555
|
+
# Get a repository's actions runner registration token
|
1556
|
+
# @param owner owner of the repo
|
1557
|
+
# @param repo name of the repo
|
1558
|
+
# @param [Hash] opts the optional parameters
|
1559
|
+
# @return [nil]
|
1560
|
+
describe 'repo_get_runner_registration_token test' do
|
1561
|
+
it 'should work' do
|
1562
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1563
|
+
end
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
# unit tests for repo_get_single_commit
|
1567
|
+
# Get a single commit from a repository
|
1568
|
+
# @param owner owner of the repo
|
1569
|
+
# @param repo name of the repo
|
1570
|
+
# @param sha a git ref or commit sha
|
1571
|
+
# @param [Hash] opts the optional parameters
|
1572
|
+
# @option opts [Boolean] :stat include diff stats for every commit (disable for speedup, default 'true')
|
1573
|
+
# @option opts [Boolean] :verification include verification for every commit (disable for speedup, default 'true')
|
1574
|
+
# @option opts [Boolean] :files include a list of affected files for every commit (disable for speedup, default 'true')
|
1575
|
+
# @return [Commit]
|
1576
|
+
describe 'repo_get_single_commit test' do
|
1577
|
+
it 'should work' do
|
1578
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1579
|
+
end
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
# unit tests for repo_get_tag
|
1583
|
+
# Get the tag of a repository by tag name
|
1584
|
+
# @param owner owner of the repo
|
1585
|
+
# @param repo name of the repo
|
1586
|
+
# @param tag name of tag
|
1587
|
+
# @param [Hash] opts the optional parameters
|
1588
|
+
# @return [Tag]
|
1589
|
+
describe 'repo_get_tag test' do
|
1590
|
+
it 'should work' do
|
1591
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1592
|
+
end
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
# unit tests for repo_get_tag_protection
|
1596
|
+
# Get a specific tag protection for the repository
|
1597
|
+
# @param owner owner of the repo
|
1598
|
+
# @param repo name of the repo
|
1599
|
+
# @param id id of the tag protect to get
|
1600
|
+
# @param [Hash] opts the optional parameters
|
1601
|
+
# @return [TagProtection]
|
1602
|
+
describe 'repo_get_tag_protection test' do
|
1603
|
+
it 'should work' do
|
1604
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1605
|
+
end
|
1606
|
+
end
|
1607
|
+
|
1608
|
+
# unit tests for repo_get_wiki_page
|
1609
|
+
# Get a wiki page
|
1610
|
+
# @param owner owner of the repo
|
1611
|
+
# @param repo name of the repo
|
1612
|
+
# @param page_name name of the page
|
1613
|
+
# @param [Hash] opts the optional parameters
|
1614
|
+
# @return [WikiPage]
|
1615
|
+
describe 'repo_get_wiki_page test' do
|
1616
|
+
it 'should work' do
|
1617
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1618
|
+
end
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
# unit tests for repo_get_wiki_page_revisions
|
1622
|
+
# Get revisions of a wiki page
|
1623
|
+
# @param owner owner of the repo
|
1624
|
+
# @param repo name of the repo
|
1625
|
+
# @param page_name name of the page
|
1626
|
+
# @param [Hash] opts the optional parameters
|
1627
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1628
|
+
# @return [WikiCommitList]
|
1629
|
+
describe 'repo_get_wiki_page_revisions test' do
|
1630
|
+
it 'should work' do
|
1631
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1632
|
+
end
|
1633
|
+
end
|
1634
|
+
|
1635
|
+
# unit tests for repo_get_wiki_pages
|
1636
|
+
# Get all wiki pages
|
1637
|
+
# @param owner owner of the repo
|
1638
|
+
# @param repo name of the repo
|
1639
|
+
# @param [Hash] opts the optional parameters
|
1640
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1641
|
+
# @option opts [Integer] :limit page size of results
|
1642
|
+
# @return [Array<WikiPageMetaData>]
|
1643
|
+
describe 'repo_get_wiki_pages test' do
|
1644
|
+
it 'should work' do
|
1645
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1646
|
+
end
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
# unit tests for repo_list_actions_secrets
|
1650
|
+
# List an repo's actions secrets
|
1651
|
+
# @param owner owner of the repository
|
1652
|
+
# @param repo name of the repository
|
1653
|
+
# @param [Hash] opts the optional parameters
|
1654
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1655
|
+
# @option opts [Integer] :limit page size of results
|
1656
|
+
# @return [Array<Secret>]
|
1657
|
+
describe 'repo_list_actions_secrets test' do
|
1658
|
+
it 'should work' do
|
1659
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1660
|
+
end
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
# unit tests for repo_list_activity_feeds
|
1664
|
+
# List a repository's activity feeds
|
1665
|
+
# @param owner owner of the repo
|
1666
|
+
# @param repo name of the repo
|
1667
|
+
# @param [Hash] opts the optional parameters
|
1668
|
+
# @option opts [Date] :date the date of the activities to be found
|
1669
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1670
|
+
# @option opts [Integer] :limit page size of results
|
1671
|
+
# @return [Array<Activity>]
|
1672
|
+
describe 'repo_list_activity_feeds test' do
|
1673
|
+
it 'should work' do
|
1674
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1675
|
+
end
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
# unit tests for repo_list_all_git_refs
|
1679
|
+
# Get specified ref or filtered repository's refs
|
1680
|
+
# @param owner owner of the repo
|
1681
|
+
# @param repo name of the repo
|
1682
|
+
# @param [Hash] opts the optional parameters
|
1683
|
+
# @return [Array<Reference>]
|
1684
|
+
describe 'repo_list_all_git_refs test' do
|
1685
|
+
it 'should work' do
|
1686
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1687
|
+
end
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# unit tests for repo_list_branch_protection
|
1691
|
+
# List branch protections for a repository
|
1692
|
+
# @param owner owner of the repo
|
1693
|
+
# @param repo name of the repo
|
1694
|
+
# @param [Hash] opts the optional parameters
|
1695
|
+
# @return [Array<BranchProtection>]
|
1696
|
+
describe 'repo_list_branch_protection test' do
|
1697
|
+
it 'should work' do
|
1698
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1699
|
+
end
|
1700
|
+
end
|
1701
|
+
|
1702
|
+
# unit tests for repo_list_branches
|
1703
|
+
# List a repository's branches
|
1704
|
+
# @param owner owner of the repo
|
1705
|
+
# @param repo name of the repo
|
1706
|
+
# @param [Hash] opts the optional parameters
|
1707
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1708
|
+
# @option opts [Integer] :limit page size of results
|
1709
|
+
# @return [Array<Branch>]
|
1710
|
+
describe 'repo_list_branches test' do
|
1711
|
+
it 'should work' do
|
1712
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1713
|
+
end
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
# unit tests for repo_list_collaborators
|
1717
|
+
# List a repository's collaborators
|
1718
|
+
# @param owner owner of the repo
|
1719
|
+
# @param repo name of the repo
|
1720
|
+
# @param [Hash] opts the optional parameters
|
1721
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1722
|
+
# @option opts [Integer] :limit page size of results
|
1723
|
+
# @return [Array<User>]
|
1724
|
+
describe 'repo_list_collaborators test' do
|
1725
|
+
it 'should work' do
|
1726
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1727
|
+
end
|
1728
|
+
end
|
1729
|
+
|
1730
|
+
# unit tests for repo_list_flags
|
1731
|
+
# List a repository's flags
|
1732
|
+
# @param owner owner of the repo
|
1733
|
+
# @param repo name of the repo
|
1734
|
+
# @param [Hash] opts the optional parameters
|
1735
|
+
# @return [Array<String>]
|
1736
|
+
describe 'repo_list_flags test' do
|
1737
|
+
it 'should work' do
|
1738
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1739
|
+
end
|
1740
|
+
end
|
1741
|
+
|
1742
|
+
# unit tests for repo_list_git_hooks
|
1743
|
+
# List the Git hooks in a repository
|
1744
|
+
# @param owner owner of the repo
|
1745
|
+
# @param repo name of the repo
|
1746
|
+
# @param [Hash] opts the optional parameters
|
1747
|
+
# @return [Array<GitHook>]
|
1748
|
+
describe 'repo_list_git_hooks test' do
|
1749
|
+
it 'should work' do
|
1750
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1751
|
+
end
|
1752
|
+
end
|
1753
|
+
|
1754
|
+
# unit tests for repo_list_git_refs
|
1755
|
+
# Get specified ref or filtered repository's refs
|
1756
|
+
# @param owner owner of the repo
|
1757
|
+
# @param repo name of the repo
|
1758
|
+
# @param ref part or full name of the ref
|
1759
|
+
# @param [Hash] opts the optional parameters
|
1760
|
+
# @return [Array<Reference>]
|
1761
|
+
describe 'repo_list_git_refs test' do
|
1762
|
+
it 'should work' do
|
1763
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1764
|
+
end
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
# unit tests for repo_list_hooks
|
1768
|
+
# List the hooks in a repository
|
1769
|
+
# @param owner owner of the repo
|
1770
|
+
# @param repo name of the repo
|
1771
|
+
# @param [Hash] opts the optional parameters
|
1772
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1773
|
+
# @option opts [Integer] :limit page size of results
|
1774
|
+
# @return [Array<Hook>]
|
1775
|
+
describe 'repo_list_hooks test' do
|
1776
|
+
it 'should work' do
|
1777
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1778
|
+
end
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
# unit tests for repo_list_keys
|
1782
|
+
# List a repository's keys
|
1783
|
+
# @param owner owner of the repo
|
1784
|
+
# @param repo name of the repo
|
1785
|
+
# @param [Hash] opts the optional parameters
|
1786
|
+
# @option opts [Integer] :key_id the key_id to search for
|
1787
|
+
# @option opts [String] :fingerprint fingerprint of the key
|
1788
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1789
|
+
# @option opts [Integer] :limit page size of results
|
1790
|
+
# @return [Array<DeployKey>]
|
1791
|
+
describe 'repo_list_keys test' do
|
1792
|
+
it 'should work' do
|
1793
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1794
|
+
end
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
# unit tests for repo_list_pinned_issues
|
1798
|
+
# List a repo's pinned issues
|
1799
|
+
# @param owner owner of the repo
|
1800
|
+
# @param repo name of the repo
|
1801
|
+
# @param [Hash] opts the optional parameters
|
1802
|
+
# @return [Array<Issue>]
|
1803
|
+
describe 'repo_list_pinned_issues test' do
|
1804
|
+
it 'should work' do
|
1805
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1806
|
+
end
|
1807
|
+
end
|
1808
|
+
|
1809
|
+
# unit tests for repo_list_pinned_pull_requests
|
1810
|
+
# List a repo's pinned pull requests
|
1811
|
+
# @param owner owner of the repo
|
1812
|
+
# @param repo name of the repo
|
1813
|
+
# @param [Hash] opts the optional parameters
|
1814
|
+
# @return [Array<PullRequest>]
|
1815
|
+
describe 'repo_list_pinned_pull_requests test' do
|
1816
|
+
it 'should work' do
|
1817
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1818
|
+
end
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# unit tests for repo_list_pull_requests
|
1822
|
+
# List a repo's pull requests
|
1823
|
+
# @param owner owner of the repo
|
1824
|
+
# @param repo name of the repo
|
1825
|
+
# @param [Hash] opts the optional parameters
|
1826
|
+
# @option opts [String] :state State of pull request: open or closed (optional)
|
1827
|
+
# @option opts [String] :sort Type of sort
|
1828
|
+
# @option opts [Integer] :milestone ID of the milestone
|
1829
|
+
# @option opts [Array<Integer>] :labels Label IDs
|
1830
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1831
|
+
# @option opts [Integer] :limit page size of results
|
1832
|
+
# @return [Array<PullRequest>]
|
1833
|
+
describe 'repo_list_pull_requests test' do
|
1834
|
+
it 'should work' do
|
1835
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1836
|
+
end
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
# unit tests for repo_list_pull_reviews
|
1840
|
+
# List all reviews for a pull request
|
1841
|
+
# @param owner owner of the repo
|
1842
|
+
# @param repo name of the repo
|
1843
|
+
# @param index index of the pull request
|
1844
|
+
# @param [Hash] opts the optional parameters
|
1845
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1846
|
+
# @option opts [Integer] :limit page size of results
|
1847
|
+
# @return [Array<PullReview>]
|
1848
|
+
describe 'repo_list_pull_reviews test' do
|
1849
|
+
it 'should work' do
|
1850
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1851
|
+
end
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
# unit tests for repo_list_push_mirrors
|
1855
|
+
# Get all push mirrors of the repository
|
1856
|
+
# @param owner owner of the repo
|
1857
|
+
# @param repo name of the repo
|
1858
|
+
# @param [Hash] opts the optional parameters
|
1859
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1860
|
+
# @option opts [Integer] :limit page size of results
|
1861
|
+
# @return [Array<PushMirror>]
|
1862
|
+
describe 'repo_list_push_mirrors test' do
|
1863
|
+
it 'should work' do
|
1864
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1865
|
+
end
|
1866
|
+
end
|
1867
|
+
|
1868
|
+
# unit tests for repo_list_release_attachments
|
1869
|
+
# List release's attachments
|
1870
|
+
# @param owner owner of the repo
|
1871
|
+
# @param repo name of the repo
|
1872
|
+
# @param id id of the release
|
1873
|
+
# @param [Hash] opts the optional parameters
|
1874
|
+
# @return [Array<Attachment>]
|
1875
|
+
describe 'repo_list_release_attachments test' do
|
1876
|
+
it 'should work' do
|
1877
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1878
|
+
end
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
# unit tests for repo_list_releases
|
1882
|
+
# List a repo's releases
|
1883
|
+
# @param owner owner of the repo
|
1884
|
+
# @param repo name of the repo
|
1885
|
+
# @param [Hash] opts the optional parameters
|
1886
|
+
# @option opts [Boolean] :draft filter (exclude / include) drafts, if you dont have repo write access none will show
|
1887
|
+
# @option opts [Boolean] :pre_release filter (exclude / include) pre-releases
|
1888
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1889
|
+
# @option opts [Integer] :limit page size of results
|
1890
|
+
# @return [Array<Release>]
|
1891
|
+
describe 'repo_list_releases test' do
|
1892
|
+
it 'should work' do
|
1893
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1894
|
+
end
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
# unit tests for repo_list_stargazers
|
1898
|
+
# List a repo's stargazers
|
1899
|
+
# @param owner owner of the repo
|
1900
|
+
# @param repo name of the repo
|
1901
|
+
# @param [Hash] opts the optional parameters
|
1902
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1903
|
+
# @option opts [Integer] :limit page size of results
|
1904
|
+
# @return [Array<User>]
|
1905
|
+
describe 'repo_list_stargazers test' do
|
1906
|
+
it 'should work' do
|
1907
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1908
|
+
end
|
1909
|
+
end
|
1910
|
+
|
1911
|
+
# unit tests for repo_list_statuses
|
1912
|
+
# Get a commit's statuses
|
1913
|
+
# @param owner owner of the repo
|
1914
|
+
# @param repo name of the repo
|
1915
|
+
# @param sha sha of the commit
|
1916
|
+
# @param [Hash] opts the optional parameters
|
1917
|
+
# @option opts [String] :sort type of sort
|
1918
|
+
# @option opts [String] :state type of state
|
1919
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1920
|
+
# @option opts [Integer] :limit page size of results
|
1921
|
+
# @return [Array<CommitStatus>]
|
1922
|
+
describe 'repo_list_statuses test' do
|
1923
|
+
it 'should work' do
|
1924
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1925
|
+
end
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
# unit tests for repo_list_statuses_by_ref
|
1929
|
+
# Get a commit's statuses, by branch/tag/commit reference
|
1930
|
+
# @param owner owner of the repo
|
1931
|
+
# @param repo name of the repo
|
1932
|
+
# @param ref name of branch/tag/commit
|
1933
|
+
# @param [Hash] opts the optional parameters
|
1934
|
+
# @option opts [String] :sort type of sort
|
1935
|
+
# @option opts [String] :state type of state
|
1936
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1937
|
+
# @option opts [Integer] :limit page size of results
|
1938
|
+
# @return [Array<CommitStatus>]
|
1939
|
+
describe 'repo_list_statuses_by_ref test' do
|
1940
|
+
it 'should work' do
|
1941
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1942
|
+
end
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
# unit tests for repo_list_subscribers
|
1946
|
+
# List a repo's watchers
|
1947
|
+
# @param owner owner of the repo
|
1948
|
+
# @param repo name of the repo
|
1949
|
+
# @param [Hash] opts the optional parameters
|
1950
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1951
|
+
# @option opts [Integer] :limit page size of results
|
1952
|
+
# @return [Array<User>]
|
1953
|
+
describe 'repo_list_subscribers test' do
|
1954
|
+
it 'should work' do
|
1955
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1956
|
+
end
|
1957
|
+
end
|
1958
|
+
|
1959
|
+
# unit tests for repo_list_tag_protection
|
1960
|
+
# List tag protections for a repository
|
1961
|
+
# @param owner owner of the repo
|
1962
|
+
# @param repo name of the repo
|
1963
|
+
# @param [Hash] opts the optional parameters
|
1964
|
+
# @return [Array<TagProtection>]
|
1965
|
+
describe 'repo_list_tag_protection test' do
|
1966
|
+
it 'should work' do
|
1967
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1968
|
+
end
|
1969
|
+
end
|
1970
|
+
|
1971
|
+
# unit tests for repo_list_tags
|
1972
|
+
# List a repository's tags
|
1973
|
+
# @param owner owner of the repo
|
1974
|
+
# @param repo name of the repo
|
1975
|
+
# @param [Hash] opts the optional parameters
|
1976
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
1977
|
+
# @option opts [Integer] :limit page size of results, default maximum page size is 50
|
1978
|
+
# @return [Array<Tag>]
|
1979
|
+
describe 'repo_list_tags test' do
|
1980
|
+
it 'should work' do
|
1981
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1982
|
+
end
|
1983
|
+
end
|
1984
|
+
|
1985
|
+
# unit tests for repo_list_teams
|
1986
|
+
# List a repository's teams
|
1987
|
+
# @param owner owner of the repo
|
1988
|
+
# @param repo name of the repo
|
1989
|
+
# @param [Hash] opts the optional parameters
|
1990
|
+
# @return [Array<Team>]
|
1991
|
+
describe 'repo_list_teams test' do
|
1992
|
+
it 'should work' do
|
1993
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1994
|
+
end
|
1995
|
+
end
|
1996
|
+
|
1997
|
+
# unit tests for repo_list_topics
|
1998
|
+
# Get list of topics that a repository has
|
1999
|
+
# @param owner owner of the repo
|
2000
|
+
# @param repo name of the repo
|
2001
|
+
# @param [Hash] opts the optional parameters
|
2002
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
2003
|
+
# @option opts [Integer] :limit page size of results
|
2004
|
+
# @return [TopicName]
|
2005
|
+
describe 'repo_list_topics test' do
|
2006
|
+
it 'should work' do
|
2007
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2008
|
+
end
|
2009
|
+
end
|
2010
|
+
|
2011
|
+
# unit tests for repo_merge_pull_request
|
2012
|
+
# Merge a pull request
|
2013
|
+
# @param owner owner of the repo
|
2014
|
+
# @param repo name of the repo
|
2015
|
+
# @param index index of the pull request to merge
|
2016
|
+
# @param [Hash] opts the optional parameters
|
2017
|
+
# @option opts [MergePullRequestOption] :body
|
2018
|
+
# @return [nil]
|
2019
|
+
describe 'repo_merge_pull_request test' do
|
2020
|
+
it 'should work' do
|
2021
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2022
|
+
end
|
2023
|
+
end
|
2024
|
+
|
2025
|
+
# unit tests for repo_migrate
|
2026
|
+
# Migrate a remote git repository
|
2027
|
+
# @param [Hash] opts the optional parameters
|
2028
|
+
# @option opts [MigrateRepoOptions] :body
|
2029
|
+
# @return [Repository]
|
2030
|
+
describe 'repo_migrate test' do
|
2031
|
+
it 'should work' do
|
2032
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2033
|
+
end
|
2034
|
+
end
|
2035
|
+
|
2036
|
+
# unit tests for repo_mirror_sync
|
2037
|
+
# Sync a mirrored repository
|
2038
|
+
# @param owner owner of the repo to sync
|
2039
|
+
# @param repo name of the repo to sync
|
2040
|
+
# @param [Hash] opts the optional parameters
|
2041
|
+
# @return [nil]
|
2042
|
+
describe 'repo_mirror_sync test' do
|
2043
|
+
it 'should work' do
|
2044
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2045
|
+
end
|
2046
|
+
end
|
2047
|
+
|
2048
|
+
# unit tests for repo_new_pin_allowed
|
2049
|
+
# Returns if new Issue Pins are allowed
|
2050
|
+
# @param owner owner of the repo
|
2051
|
+
# @param repo name of the repo
|
2052
|
+
# @param [Hash] opts the optional parameters
|
2053
|
+
# @return [NewIssuePinsAllowed]
|
2054
|
+
describe 'repo_new_pin_allowed test' do
|
2055
|
+
it 'should work' do
|
2056
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2057
|
+
end
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
# unit tests for repo_pull_request_is_merged
|
2061
|
+
# Check if a pull request has been merged
|
2062
|
+
# @param owner owner of the repo
|
2063
|
+
# @param repo name of the repo
|
2064
|
+
# @param index index of the pull request
|
2065
|
+
# @param [Hash] opts the optional parameters
|
2066
|
+
# @return [nil]
|
2067
|
+
describe 'repo_pull_request_is_merged test' do
|
2068
|
+
it 'should work' do
|
2069
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2070
|
+
end
|
2071
|
+
end
|
2072
|
+
|
2073
|
+
# unit tests for repo_push_mirror_sync
|
2074
|
+
# Sync all push mirrored repository
|
2075
|
+
# @param owner owner of the repo to sync
|
2076
|
+
# @param repo name of the repo to sync
|
2077
|
+
# @param [Hash] opts the optional parameters
|
2078
|
+
# @return [nil]
|
2079
|
+
describe 'repo_push_mirror_sync test' do
|
2080
|
+
it 'should work' do
|
2081
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2082
|
+
end
|
2083
|
+
end
|
2084
|
+
|
2085
|
+
# unit tests for repo_replace_all_flags
|
2086
|
+
# Replace all flags of a repository
|
2087
|
+
# @param owner owner of the repo
|
2088
|
+
# @param repo name of the repo
|
2089
|
+
# @param [Hash] opts the optional parameters
|
2090
|
+
# @option opts [ReplaceFlagsOption] :body
|
2091
|
+
# @return [nil]
|
2092
|
+
describe 'repo_replace_all_flags test' do
|
2093
|
+
it 'should work' do
|
2094
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2095
|
+
end
|
2096
|
+
end
|
2097
|
+
|
2098
|
+
# unit tests for repo_search
|
2099
|
+
# Search for repositories
|
2100
|
+
# @param [Hash] opts the optional parameters
|
2101
|
+
# @option opts [String] :q keyword
|
2102
|
+
# @option opts [Boolean] :topic Limit search to repositories with keyword as topic
|
2103
|
+
# @option opts [Boolean] :include_desc include search of keyword within repository description
|
2104
|
+
# @option opts [Integer] :uid search only for repos that the user with the given id owns or contributes to
|
2105
|
+
# @option opts [Integer] :priority_owner_id repo owner to prioritize in the results
|
2106
|
+
# @option opts [Integer] :team_id search only for repos that belong to the given team id
|
2107
|
+
# @option opts [Integer] :starred_by search only for repos that the user with the given id has starred
|
2108
|
+
# @option opts [Boolean] :private include private repositories this user has access to (defaults to true)
|
2109
|
+
# @option opts [Boolean] :is_private show only pubic, private or all repositories (defaults to all)
|
2110
|
+
# @option opts [Boolean] :template include template repositories this user has access to (defaults to true)
|
2111
|
+
# @option opts [Boolean] :archived show only archived, non-archived or all repositories (defaults to all)
|
2112
|
+
# @option opts [String] :mode type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"
|
2113
|
+
# @option opts [Boolean] :exclusive if `uid` is given, search only for repos that the user owns
|
2114
|
+
# @option opts [String] :sort sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", \"git_size\", \"lfs_size\", \"stars\", \"forks\" and \"id\". Default is \"alpha\"
|
2115
|
+
# @option opts [String] :order sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified.
|
2116
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
2117
|
+
# @option opts [Integer] :limit page size of results
|
2118
|
+
# @return [SearchResults]
|
2119
|
+
describe 'repo_search test' do
|
2120
|
+
it 'should work' do
|
2121
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2122
|
+
end
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
# unit tests for repo_signing_key
|
2126
|
+
# Get signing-key.gpg for given repository
|
2127
|
+
# @param owner owner of the repo
|
2128
|
+
# @param repo name of the repo
|
2129
|
+
# @param [Hash] opts the optional parameters
|
2130
|
+
# @return [String]
|
2131
|
+
describe 'repo_signing_key test' do
|
2132
|
+
it 'should work' do
|
2133
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2134
|
+
end
|
2135
|
+
end
|
2136
|
+
|
2137
|
+
# unit tests for repo_submit_pull_review
|
2138
|
+
# Submit a pending review to an pull request
|
2139
|
+
# @param owner owner of the repo
|
2140
|
+
# @param repo name of the repo
|
2141
|
+
# @param index index of the pull request
|
2142
|
+
# @param id id of the review
|
2143
|
+
# @param body
|
2144
|
+
# @param [Hash] opts the optional parameters
|
2145
|
+
# @return [PullReview]
|
2146
|
+
describe 'repo_submit_pull_review test' do
|
2147
|
+
it 'should work' do
|
2148
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2149
|
+
end
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
# unit tests for repo_test_hook
|
2153
|
+
# Test a push webhook
|
2154
|
+
# @param owner owner of the repo
|
2155
|
+
# @param repo name of the repo
|
2156
|
+
# @param id id of the hook to test
|
2157
|
+
# @param [Hash] opts the optional parameters
|
2158
|
+
# @option opts [String] :ref The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload.
|
2159
|
+
# @return [nil]
|
2160
|
+
describe 'repo_test_hook test' do
|
2161
|
+
it 'should work' do
|
2162
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2163
|
+
end
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
# unit tests for repo_tracked_times
|
2167
|
+
# List a repo's tracked times
|
2168
|
+
# @param owner owner of the repo
|
2169
|
+
# @param repo name of the repo
|
2170
|
+
# @param [Hash] opts the optional parameters
|
2171
|
+
# @option opts [String] :user optional filter by user (available for issue managers)
|
2172
|
+
# @option opts [Time] :since Only show times updated after the given time. This is a timestamp in RFC 3339 format
|
2173
|
+
# @option opts [Time] :before Only show times updated before the given time. This is a timestamp in RFC 3339 format
|
2174
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
2175
|
+
# @option opts [Integer] :limit page size of results
|
2176
|
+
# @return [Array<TrackedTime>]
|
2177
|
+
describe 'repo_tracked_times test' do
|
2178
|
+
it 'should work' do
|
2179
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2180
|
+
end
|
2181
|
+
end
|
2182
|
+
|
2183
|
+
# unit tests for repo_transfer
|
2184
|
+
# Transfer a repo ownership
|
2185
|
+
# @param owner owner of the repo to transfer
|
2186
|
+
# @param repo name of the repo to transfer
|
2187
|
+
# @param body Transfer Options
|
2188
|
+
# @param [Hash] opts the optional parameters
|
2189
|
+
# @return [Repository]
|
2190
|
+
describe 'repo_transfer test' do
|
2191
|
+
it 'should work' do
|
2192
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2193
|
+
end
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
# unit tests for repo_un_dismiss_pull_review
|
2197
|
+
# Cancel to dismiss a review for a pull request
|
2198
|
+
# @param owner owner of the repo
|
2199
|
+
# @param repo name of the repo
|
2200
|
+
# @param index index of the pull request
|
2201
|
+
# @param id id of the review
|
2202
|
+
# @param [Hash] opts the optional parameters
|
2203
|
+
# @return [PullReview]
|
2204
|
+
describe 'repo_un_dismiss_pull_review test' do
|
2205
|
+
it 'should work' do
|
2206
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2207
|
+
end
|
2208
|
+
end
|
2209
|
+
|
2210
|
+
# unit tests for repo_update_avatar
|
2211
|
+
# Update avatar
|
2212
|
+
# @param owner owner of the repo
|
2213
|
+
# @param repo name of the repo
|
2214
|
+
# @param [Hash] opts the optional parameters
|
2215
|
+
# @option opts [UpdateRepoAvatarOption] :body
|
2216
|
+
# @return [nil]
|
2217
|
+
describe 'repo_update_avatar test' do
|
2218
|
+
it 'should work' do
|
2219
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2220
|
+
end
|
2221
|
+
end
|
2222
|
+
|
2223
|
+
# unit tests for repo_update_file
|
2224
|
+
# Update a file in a repository
|
2225
|
+
# @param owner owner of the repo
|
2226
|
+
# @param repo name of the repo
|
2227
|
+
# @param filepath path of the file to update
|
2228
|
+
# @param body
|
2229
|
+
# @param [Hash] opts the optional parameters
|
2230
|
+
# @return [FileResponse]
|
2231
|
+
describe 'repo_update_file test' do
|
2232
|
+
it 'should work' do
|
2233
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2234
|
+
end
|
2235
|
+
end
|
2236
|
+
|
2237
|
+
# unit tests for repo_update_pull_request
|
2238
|
+
# Merge PR's baseBranch into headBranch
|
2239
|
+
# @param owner owner of the repo
|
2240
|
+
# @param repo name of the repo
|
2241
|
+
# @param index index of the pull request to get
|
2242
|
+
# @param [Hash] opts the optional parameters
|
2243
|
+
# @option opts [String] :style how to update pull request
|
2244
|
+
# @return [nil]
|
2245
|
+
describe 'repo_update_pull_request test' do
|
2246
|
+
it 'should work' do
|
2247
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2248
|
+
end
|
2249
|
+
end
|
2250
|
+
|
2251
|
+
# unit tests for repo_update_topics
|
2252
|
+
# Replace list of topics for a repository
|
2253
|
+
# @param owner owner of the repo
|
2254
|
+
# @param repo name of the repo
|
2255
|
+
# @param [Hash] opts the optional parameters
|
2256
|
+
# @option opts [RepoTopicOptions] :body
|
2257
|
+
# @return [nil]
|
2258
|
+
describe 'repo_update_topics test' do
|
2259
|
+
it 'should work' do
|
2260
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2261
|
+
end
|
2262
|
+
end
|
2263
|
+
|
2264
|
+
# unit tests for repo_validate_issue_config
|
2265
|
+
# Returns the validation information for a issue config
|
2266
|
+
# @param owner owner of the repo
|
2267
|
+
# @param repo name of the repo
|
2268
|
+
# @param [Hash] opts the optional parameters
|
2269
|
+
# @return [IssueConfigValidation]
|
2270
|
+
describe 'repo_validate_issue_config test' do
|
2271
|
+
it 'should work' do
|
2272
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2273
|
+
end
|
2274
|
+
end
|
2275
|
+
|
2276
|
+
# unit tests for topic_search
|
2277
|
+
# search topics via keyword
|
2278
|
+
# @param q keywords to search
|
2279
|
+
# @param [Hash] opts the optional parameters
|
2280
|
+
# @option opts [Integer] :page page number of results to return (1-based)
|
2281
|
+
# @option opts [Integer] :limit page size of results
|
2282
|
+
# @return [Array<TopicResponse>]
|
2283
|
+
describe 'topic_search test' do
|
2284
|
+
it 'should work' do
|
2285
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2286
|
+
end
|
2287
|
+
end
|
2288
|
+
|
2289
|
+
# unit tests for update_repo_secret
|
2290
|
+
# Create or Update a secret value in a repository
|
2291
|
+
# @param owner owner of the repository
|
2292
|
+
# @param repo name of the repository
|
2293
|
+
# @param secretname name of the secret
|
2294
|
+
# @param [Hash] opts the optional parameters
|
2295
|
+
# @option opts [CreateOrUpdateSecretOption] :body
|
2296
|
+
# @return [nil]
|
2297
|
+
describe 'update_repo_secret test' do
|
2298
|
+
it 'should work' do
|
2299
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2300
|
+
end
|
2301
|
+
end
|
2302
|
+
|
2303
|
+
# unit tests for update_repo_variable
|
2304
|
+
# Update a repo-level variable
|
2305
|
+
# @param owner name of the owner
|
2306
|
+
# @param repo name of the repository
|
2307
|
+
# @param variablename name of the variable
|
2308
|
+
# @param [Hash] opts the optional parameters
|
2309
|
+
# @option opts [UpdateVariableOption] :body
|
2310
|
+
# @return [nil]
|
2311
|
+
describe 'update_repo_variable test' do
|
2312
|
+
it 'should work' do
|
2313
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2314
|
+
end
|
2315
|
+
end
|
2316
|
+
|
2317
|
+
# unit tests for user_current_check_subscription
|
2318
|
+
# Check if the current user is watching a repo
|
2319
|
+
# @param owner owner of the repo
|
2320
|
+
# @param repo name of the repo
|
2321
|
+
# @param [Hash] opts the optional parameters
|
2322
|
+
# @return [WatchInfo]
|
2323
|
+
describe 'user_current_check_subscription test' do
|
2324
|
+
it 'should work' do
|
2325
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2326
|
+
end
|
2327
|
+
end
|
2328
|
+
|
2329
|
+
# unit tests for user_current_delete_subscription
|
2330
|
+
# Unwatch a repo
|
2331
|
+
# @param owner owner of the repo
|
2332
|
+
# @param repo name of the repo
|
2333
|
+
# @param [Hash] opts the optional parameters
|
2334
|
+
# @return [nil]
|
2335
|
+
describe 'user_current_delete_subscription test' do
|
2336
|
+
it 'should work' do
|
2337
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2338
|
+
end
|
2339
|
+
end
|
2340
|
+
|
2341
|
+
# unit tests for user_current_put_subscription
|
2342
|
+
# Watch a repo
|
2343
|
+
# @param owner owner of the repo
|
2344
|
+
# @param repo name of the repo
|
2345
|
+
# @param [Hash] opts the optional parameters
|
2346
|
+
# @return [WatchInfo]
|
2347
|
+
describe 'user_current_put_subscription test' do
|
2348
|
+
it 'should work' do
|
2349
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2350
|
+
end
|
2351
|
+
end
|
2352
|
+
|
2353
|
+
# unit tests for user_tracked_times
|
2354
|
+
# List a user's tracked times in a repo
|
2355
|
+
# @param owner owner of the repo
|
2356
|
+
# @param repo name of the repo
|
2357
|
+
# @param user username of user
|
2358
|
+
# @param [Hash] opts the optional parameters
|
2359
|
+
# @return [Array<TrackedTime>]
|
2360
|
+
describe 'user_tracked_times test' do
|
2361
|
+
it 'should work' do
|
2362
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
2363
|
+
end
|
2364
|
+
end
|
2365
|
+
|
2366
|
+
end
|