forgejo 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CHANGELOG.md~ +3 -0
- data/Makefile +16 -16
- data/README.md +68 -12
- data/config.yaml +21 -0
- data/config.yaml~ +13 -0
- data/docs/APIForbiddenError.md +20 -0
- data/docs/APIInvalidTopicsError.md +20 -0
- data/docs/APINotFound.md +22 -0
- data/docs/APIRepoArchivedError.md +20 -0
- data/docs/APIUnauthorizedError.md +20 -0
- data/docs/APIValidationError.md +20 -0
- data/docs/ActivitypubApi.md +133 -0
- data/docs/AdminApi.md +1305 -184
- data/docs/Attachment.md +2 -0
- data/docs/CreatePushMirrorOption.md +3 -1
- data/docs/CreateQuotaGroupOptions.md +20 -0
- data/docs/CreateQuotaRuleOptions.md +22 -0
- data/docs/EditAttachmentOptions.md +2 -0
- data/docs/EditQuotaRuleOptions.md +20 -0
- data/docs/EditRepoOption.md +2 -0
- data/docs/IssueApi.md +55 -55
- data/docs/MarkupOption.md +2 -0
- data/docs/NoteOptions.md +18 -0
- data/docs/OrganizationApi.md +386 -19
- data/docs/PackageApi.md +1 -1
- data/docs/PullRequest.md +2 -0
- data/docs/PushMirror.md +2 -0
- data/docs/QuotaGroup.md +20 -0
- data/docs/QuotaInfo.md +20 -0
- data/docs/QuotaRuleInfo.md +22 -0
- data/docs/QuotaUsed.md +18 -0
- data/docs/QuotaUsedArtifact.md +22 -0
- data/docs/QuotaUsedAttachment.md +24 -0
- data/docs/QuotaUsedAttachmentContainedIn.md +20 -0
- data/docs/QuotaUsedPackage.md +26 -0
- data/docs/QuotaUsedSize.md +22 -0
- data/docs/QuotaUsedSizeAssets.md +22 -0
- data/docs/QuotaUsedSizeAssetsAttachments.md +20 -0
- data/docs/QuotaUsedSizeAssetsPackages.md +18 -0
- data/docs/QuotaUsedSizeGit.md +18 -0
- data/docs/QuotaUsedSizeRepos.md +20 -0
- data/docs/RepoCreateReleaseAttachmentRequest.md +4 -2
- data/docs/Repository.md +2 -0
- data/docs/RepositoryApi.md +308 -72
- data/docs/SetUserQuotaGroupsOptions.md +18 -0
- data/docs/UpdateBranchRepoOption.md +18 -0
- data/docs/UserApi.md +390 -33
- data/forgejo.gemspec +12 -13
- data/lib/forgejo/api/activitypub_api.rb +110 -2
- data/lib/forgejo/api/admin_api.rb +1148 -109
- data/lib/forgejo/api/issue_api.rb +94 -36
- data/lib/forgejo/api/miscellaneous_api.rb +2 -2
- data/lib/forgejo/api/notification_api.rb +2 -2
- data/lib/forgejo/api/organization_api.rb +363 -2
- data/lib/forgejo/api/package_api.rb +4 -2
- data/lib/forgejo/api/repository_api.rb +370 -26
- data/lib/forgejo/api/settings_api.rb +2 -2
- data/lib/forgejo/api/user_api.rb +350 -8
- data/lib/forgejo/api_client.rb +2 -2
- data/lib/forgejo/api_error.rb +2 -2
- data/lib/forgejo/configuration.rb +2 -2
- data/lib/forgejo/models/access_token.rb +11 -5
- data/lib/forgejo/models/action_task.rb +11 -5
- data/lib/forgejo/models/action_task_response.rb +11 -5
- data/lib/forgejo/models/action_variable.rb +11 -5
- data/lib/forgejo/models/activity.rb +11 -5
- data/lib/forgejo/models/activity_pub.rb +11 -5
- data/lib/forgejo/models/add_collaborator_option.rb +45 -5
- data/lib/forgejo/models/add_time_option.rb +21 -5
- data/lib/forgejo/models/annotated_tag.rb +11 -5
- data/lib/forgejo/models/annotated_tag_object.rb +11 -5
- data/lib/forgejo/models/api_error.rb +11 -5
- data/lib/forgejo/models/api_forbidden_error.rb +229 -0
- data/lib/forgejo/models/api_invalid_topics_error.rb +231 -0
- data/lib/forgejo/models/api_not_found.rb +240 -0
- data/lib/forgejo/models/api_repo_archived_error.rb +229 -0
- data/lib/forgejo/models/api_unauthorized_error.rb +229 -0
- data/lib/forgejo/models/api_validation_error.rb +229 -0
- data/lib/forgejo/models/attachment.rb +55 -6
- data/lib/forgejo/models/blocked_user.rb +11 -5
- data/lib/forgejo/models/branch.rb +11 -5
- data/lib/forgejo/models/branch_protection.rb +11 -5
- data/lib/forgejo/models/change_file_operation.rb +21 -5
- data/lib/forgejo/models/change_files_options.rb +21 -5
- data/lib/forgejo/models/changed_file.rb +11 -5
- data/lib/forgejo/models/combined_status.rb +11 -5
- data/lib/forgejo/models/comment.rb +11 -5
- data/lib/forgejo/models/commit.rb +11 -5
- data/lib/forgejo/models/commit_affected_files.rb +11 -5
- data/lib/forgejo/models/commit_date_options.rb +11 -5
- data/lib/forgejo/models/commit_meta.rb +11 -5
- data/lib/forgejo/models/commit_stats.rb +11 -5
- data/lib/forgejo/models/commit_status.rb +11 -5
- data/lib/forgejo/models/commit_user.rb +11 -5
- data/lib/forgejo/models/compare.rb +11 -5
- data/lib/forgejo/models/contents_response.rb +11 -5
- data/lib/forgejo/models/create_access_token_option.rb +21 -5
- data/lib/forgejo/models/create_branch_protection_option.rb +11 -5
- data/lib/forgejo/models/create_branch_repo_option.rb +21 -5
- data/lib/forgejo/models/create_email_option.rb +11 -5
- data/lib/forgejo/models/create_file_options.rb +21 -5
- data/lib/forgejo/models/create_fork_option.rb +11 -5
- data/lib/forgejo/models/create_gpg_key_option.rb +21 -5
- data/lib/forgejo/models/create_hook_option.rb +21 -5
- data/lib/forgejo/models/create_issue_comment_option.rb +21 -5
- data/lib/forgejo/models/create_issue_option.rb +21 -5
- data/lib/forgejo/models/create_key_option.rb +31 -5
- data/lib/forgejo/models/create_label_option.rb +31 -5
- data/lib/forgejo/models/create_milestone_option.rb +11 -5
- data/lib/forgejo/models/create_o_auth2_application_options.rb +11 -5
- data/lib/forgejo/models/create_or_update_secret_option.rb +21 -5
- data/lib/forgejo/models/create_org_option.rb +21 -5
- data/lib/forgejo/models/create_pull_request_option.rb +11 -5
- data/lib/forgejo/models/create_pull_review_comment.rb +11 -5
- data/lib/forgejo/models/create_pull_review_options.rb +11 -5
- data/lib/forgejo/models/create_push_mirror_option.rb +24 -9
- data/lib/forgejo/models/create_quota_group_options.rb +234 -0
- data/lib/forgejo/models/create_quota_rule_options.rb +244 -0
- data/lib/forgejo/models/create_release_option.rb +21 -5
- data/lib/forgejo/models/create_repo_option.rb +21 -5
- data/lib/forgejo/models/create_status_option.rb +11 -5
- data/lib/forgejo/models/create_tag_option.rb +21 -5
- data/lib/forgejo/models/create_tag_protection_option.rb +11 -5
- data/lib/forgejo/models/create_team_option.rb +21 -5
- data/lib/forgejo/models/create_user_option.rb +31 -5
- data/lib/forgejo/models/create_variable_option.rb +21 -5
- data/lib/forgejo/models/create_wiki_page_options.rb +11 -5
- data/lib/forgejo/models/cron.rb +11 -5
- data/lib/forgejo/models/delete_email_option.rb +11 -5
- data/lib/forgejo/models/delete_file_options.rb +21 -5
- data/lib/forgejo/models/delete_labels_option.rb +11 -5
- data/lib/forgejo/models/deploy_key.rb +11 -5
- data/lib/forgejo/models/dismiss_pull_review_options.rb +11 -5
- data/lib/forgejo/models/dispatch_workflow_option.rb +21 -5
- data/lib/forgejo/models/edit_attachment_options.rb +22 -6
- data/lib/forgejo/models/edit_branch_protection_option.rb +11 -5
- data/lib/forgejo/models/edit_deadline_option.rb +21 -5
- data/lib/forgejo/models/edit_git_hook_option.rb +11 -5
- data/lib/forgejo/models/edit_hook_option.rb +11 -5
- data/lib/forgejo/models/edit_issue_comment_option.rb +21 -5
- data/lib/forgejo/models/edit_issue_option.rb +11 -5
- data/lib/forgejo/models/edit_label_option.rb +11 -5
- data/lib/forgejo/models/edit_milestone_option.rb +11 -5
- data/lib/forgejo/models/edit_org_option.rb +11 -5
- data/lib/forgejo/models/edit_pull_request_option.rb +11 -5
- data/lib/forgejo/models/edit_quota_rule_options.rb +234 -0
- data/lib/forgejo/models/edit_reaction_option.rb +11 -5
- data/lib/forgejo/models/edit_release_option.rb +11 -5
- data/lib/forgejo/models/edit_repo_option.rb +22 -6
- data/lib/forgejo/models/edit_tag_protection_option.rb +11 -5
- data/lib/forgejo/models/edit_team_option.rb +21 -5
- data/lib/forgejo/models/edit_user_option.rb +11 -5
- data/lib/forgejo/models/email.rb +11 -5
- data/lib/forgejo/models/external_tracker.rb +11 -5
- data/lib/forgejo/models/external_wiki.rb +11 -5
- data/lib/forgejo/models/file_commit_response.rb +11 -5
- data/lib/forgejo/models/file_delete_response.rb +11 -5
- data/lib/forgejo/models/file_links_response.rb +11 -5
- data/lib/forgejo/models/file_response.rb +11 -5
- data/lib/forgejo/models/files_response.rb +11 -5
- data/lib/forgejo/models/general_api_settings.rb +11 -5
- data/lib/forgejo/models/general_attachment_settings.rb +11 -5
- data/lib/forgejo/models/general_repo_settings.rb +11 -5
- data/lib/forgejo/models/general_ui_settings.rb +11 -5
- data/lib/forgejo/models/generate_repo_option.rb +31 -5
- data/lib/forgejo/models/git_blob_response.rb +11 -5
- data/lib/forgejo/models/git_entry.rb +11 -5
- data/lib/forgejo/models/git_hook.rb +11 -5
- data/lib/forgejo/models/git_object.rb +11 -5
- data/lib/forgejo/models/git_tree_response.rb +11 -5
- data/lib/forgejo/models/gitignore_template_info.rb +11 -5
- data/lib/forgejo/models/gpg_key.rb +11 -5
- data/lib/forgejo/models/gpg_key_email.rb +11 -5
- data/lib/forgejo/models/hook.rb +11 -5
- data/lib/forgejo/models/identity.rb +11 -5
- data/lib/forgejo/models/internal_tracker.rb +11 -5
- data/lib/forgejo/models/issue.rb +11 -5
- data/lib/forgejo/models/issue_config.rb +11 -5
- data/lib/forgejo/models/issue_config_contact_link.rb +11 -5
- data/lib/forgejo/models/issue_config_validation.rb +11 -5
- data/lib/forgejo/models/issue_deadline.rb +11 -5
- data/lib/forgejo/models/issue_form_field.rb +11 -5
- data/lib/forgejo/models/issue_labels_option.rb +11 -5
- data/lib/forgejo/models/issue_meta.rb +11 -5
- data/lib/forgejo/models/issue_template.rb +11 -5
- data/lib/forgejo/models/label.rb +11 -5
- data/lib/forgejo/models/label_template.rb +11 -5
- data/lib/forgejo/models/license_template_info.rb +11 -5
- data/lib/forgejo/models/licenses_template_list_entry.rb +11 -5
- data/lib/forgejo/models/markdown_option.rb +11 -5
- data/lib/forgejo/models/markup_option.rb +22 -6
- data/lib/forgejo/models/merge_pull_request_option.rb +11 -5
- data/lib/forgejo/models/migrate_repo_options.rb +31 -5
- data/lib/forgejo/models/milestone.rb +11 -5
- data/lib/forgejo/models/new_issue_pins_allowed.rb +11 -5
- data/lib/forgejo/models/node_info.rb +11 -5
- data/lib/forgejo/models/node_info_services.rb +11 -5
- data/lib/forgejo/models/node_info_software.rb +11 -5
- data/lib/forgejo/models/node_info_usage.rb +11 -5
- data/lib/forgejo/models/node_info_usage_users.rb +11 -5
- data/lib/forgejo/models/note.rb +11 -5
- data/lib/forgejo/models/note_options.rb +220 -0
- data/lib/forgejo/models/notification_count.rb +11 -5
- data/lib/forgejo/models/notification_subject.rb +11 -5
- data/lib/forgejo/models/notification_thread.rb +11 -5
- data/lib/forgejo/models/o_auth2_application.rb +11 -5
- data/lib/forgejo/models/organization.rb +11 -5
- data/lib/forgejo/models/organization_permissions.rb +11 -5
- data/lib/forgejo/models/package.rb +11 -5
- data/lib/forgejo/models/package_file.rb +11 -5
- data/lib/forgejo/models/payload_commit.rb +11 -5
- data/lib/forgejo/models/payload_commit_verification.rb +11 -5
- data/lib/forgejo/models/payload_user.rb +11 -5
- data/lib/forgejo/models/permission.rb +11 -5
- data/lib/forgejo/models/pr_branch_info.rb +11 -5
- data/lib/forgejo/models/public_key.rb +11 -5
- data/lib/forgejo/models/pull_request.rb +23 -6
- data/lib/forgejo/models/pull_request_meta.rb +11 -5
- data/lib/forgejo/models/pull_review.rb +11 -5
- data/lib/forgejo/models/pull_review_comment.rb +11 -5
- data/lib/forgejo/models/pull_review_request_options.rb +11 -5
- data/lib/forgejo/models/push_mirror.rb +21 -6
- data/lib/forgejo/models/quota_group.rb +234 -0
- data/lib/forgejo/models/quota_info.rb +233 -0
- data/lib/forgejo/models/quota_rule_info.rb +244 -0
- data/lib/forgejo/models/quota_used.rb +221 -0
- data/lib/forgejo/models/quota_used_artifact.rb +242 -0
- data/lib/forgejo/models/quota_used_attachment.rb +251 -0
- data/lib/forgejo/models/quota_used_attachment_contained_in.rb +232 -0
- data/lib/forgejo/models/quota_used_package.rb +262 -0
- data/lib/forgejo/models/quota_used_size.rb +239 -0
- data/lib/forgejo/models/quota_used_size_assets.rb +240 -0
- data/lib/forgejo/models/quota_used_size_assets_attachments.rb +232 -0
- data/lib/forgejo/models/quota_used_size_assets_packages.rb +222 -0
- data/lib/forgejo/models/quota_used_size_git.rb +222 -0
- data/lib/forgejo/models/quota_used_size_repos.rb +232 -0
- data/lib/forgejo/models/reaction.rb +11 -5
- data/lib/forgejo/models/reference.rb +11 -5
- data/lib/forgejo/models/release.rb +11 -5
- data/lib/forgejo/models/rename_user_option.rb +21 -5
- data/lib/forgejo/models/replace_flags_option.rb +11 -5
- data/lib/forgejo/models/repo_collaborator_permission.rb +11 -5
- data/lib/forgejo/models/repo_commit.rb +11 -5
- data/lib/forgejo/models/repo_create_release_attachment_request.rb +26 -10
- data/lib/forgejo/models/repo_topic_options.rb +11 -5
- data/lib/forgejo/models/repo_transfer.rb +11 -5
- data/lib/forgejo/models/repository.rb +21 -6
- data/lib/forgejo/models/repository_meta.rb +11 -5
- data/lib/forgejo/models/search_results.rb +11 -5
- data/lib/forgejo/models/secret.rb +11 -5
- data/lib/forgejo/models/server_version.rb +11 -5
- data/lib/forgejo/models/set_user_quota_groups_options.rb +241 -0
- data/lib/forgejo/models/stop_watch.rb +11 -5
- data/lib/forgejo/models/submit_pull_review_options.rb +11 -5
- data/lib/forgejo/models/tag.rb +11 -5
- data/lib/forgejo/models/tag_archive_download_count.rb +11 -5
- data/lib/forgejo/models/tag_protection.rb +11 -5
- data/lib/forgejo/models/team.rb +11 -5
- data/lib/forgejo/models/team_search200_response.rb +11 -5
- data/lib/forgejo/models/timeline_comment.rb +11 -5
- data/lib/forgejo/models/topic_name.rb +11 -5
- data/lib/forgejo/models/topic_response.rb +11 -5
- data/lib/forgejo/models/tracked_time.rb +11 -5
- data/lib/forgejo/models/transfer_repo_option.rb +21 -5
- data/lib/forgejo/models/update_branch_repo_option.rb +239 -0
- data/lib/forgejo/models/update_file_options.rb +31 -5
- data/lib/forgejo/models/update_repo_avatar_option.rb +11 -5
- data/lib/forgejo/models/update_user_avatar_option.rb +11 -5
- data/lib/forgejo/models/update_variable_option.rb +21 -5
- data/lib/forgejo/models/user.rb +11 -5
- data/lib/forgejo/models/user_heatmap_data.rb +11 -5
- data/lib/forgejo/models/user_search200_response.rb +11 -5
- data/lib/forgejo/models/user_settings.rb +11 -5
- data/lib/forgejo/models/user_settings_options.rb +11 -5
- data/lib/forgejo/models/watch_info.rb +11 -5
- data/lib/forgejo/models/wiki_commit.rb +11 -5
- data/lib/forgejo/models/wiki_commit_list.rb +11 -5
- data/lib/forgejo/models/wiki_page.rb +11 -5
- data/lib/forgejo/models/wiki_page_meta_data.rb +11 -5
- data/lib/forgejo/version.rb +3 -3
- data/lib/forgejo.rb +28 -2
- data/manifest.scm +6 -2
- data/openapi-generator-cli.jar +0 -0
- data/pom.xml~ +22 -0
- data/smoke +1 -1
- data/spec/models/api_forbidden_error_spec.rb +42 -0
- data/spec/models/api_invalid_topics_error_spec.rb +42 -0
- data/spec/models/api_not_found_spec.rb +48 -0
- data/spec/models/api_repo_archived_error_spec.rb +42 -0
- data/spec/models/api_unauthorized_error_spec.rb +42 -0
- data/spec/models/api_validation_error_spec.rb +42 -0
- data/spec/models/create_quota_group_options_spec.rb +42 -0
- data/spec/models/create_quota_rule_options_spec.rb +48 -0
- data/spec/models/edit_quota_rule_options_spec.rb +42 -0
- data/spec/models/note_options_spec.rb +36 -0
- data/spec/models/quota_group_spec.rb +42 -0
- data/spec/models/quota_info_spec.rb +42 -0
- data/spec/models/quota_rule_info_spec.rb +48 -0
- data/spec/models/quota_used_artifact_spec.rb +48 -0
- data/spec/models/quota_used_attachment_contained_in_spec.rb +42 -0
- data/spec/models/quota_used_attachment_spec.rb +54 -0
- data/spec/models/quota_used_package_spec.rb +60 -0
- data/spec/models/quota_used_size_assets_attachments_spec.rb +42 -0
- data/spec/models/quota_used_size_assets_packages_spec.rb +36 -0
- data/spec/models/quota_used_size_assets_spec.rb +48 -0
- data/spec/models/quota_used_size_git_spec.rb +36 -0
- data/spec/models/quota_used_size_repos_spec.rb +42 -0
- data/spec/models/quota_used_size_spec.rb +48 -0
- data/spec/models/quota_used_spec.rb +36 -0
- data/spec/models/set_user_quota_groups_options_spec.rb +36 -0
- data/spec/models/update_branch_repo_option_spec.rb +36 -0
- data/spec/spec_helper.rb +2 -2
- data/swagger.v1.json +2563 -338
- data/swagger.v1.patched.json +1 -1
- metadata +291 -182
- data/LICENSE~ +0 -9
- data/Makefile~ +0 -2
- data/patch~ +0 -1
- data/smoke~ +0 -1
data/docs/Attachment.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
| **id** | **Integer** | | [optional] |
|
11
11
|
| **name** | **String** | | [optional] |
|
12
12
|
| **size** | **Integer** | | [optional] |
|
13
|
+
| **type** | **String** | | [optional] |
|
13
14
|
| **uuid** | **String** | | [optional] |
|
14
15
|
|
15
16
|
## Example
|
@@ -24,6 +25,7 @@ instance = Forgejo::Attachment.new(
|
|
24
25
|
id: null,
|
25
26
|
name: null,
|
26
27
|
size: null,
|
28
|
+
type: null,
|
27
29
|
uuid: null
|
28
30
|
)
|
29
31
|
```
|
@@ -9,6 +9,7 @@
|
|
9
9
|
| **remote_password** | **String** | | [optional] |
|
10
10
|
| **remote_username** | **String** | | [optional] |
|
11
11
|
| **sync_on_commit** | **Boolean** | | [optional] |
|
12
|
+
| **use_ssh** | **Boolean** | | [optional] |
|
12
13
|
|
13
14
|
## Example
|
14
15
|
|
@@ -20,7 +21,8 @@ instance = Forgejo::CreatePushMirrorOption.new(
|
|
20
21
|
remote_address: null,
|
21
22
|
remote_password: null,
|
22
23
|
remote_username: null,
|
23
|
-
sync_on_commit: null
|
24
|
+
sync_on_commit: null,
|
25
|
+
use_ssh: null
|
24
26
|
)
|
25
27
|
```
|
26
28
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Forgejo::CreateQuotaGroupOptions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | Name of the quota group to create | [optional] |
|
8
|
+
| **rules** | [**Array<CreateQuotaRuleOptions>**](CreateQuotaRuleOptions.md) | Rules to add to the newly created group. If a rule does not exist, it will be created. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'forgejo'
|
14
|
+
|
15
|
+
instance = Forgejo::CreateQuotaGroupOptions.new(
|
16
|
+
name: null,
|
17
|
+
rules: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Forgejo::CreateQuotaRuleOptions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **limit** | **Integer** | The limit set by the rule | [optional] |
|
8
|
+
| **name** | **String** | Name of the rule to create | [optional] |
|
9
|
+
| **subjects** | **Array<String>** | The subjects affected by the rule | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'forgejo'
|
15
|
+
|
16
|
+
instance = Forgejo::CreateQuotaRuleOptions.new(
|
17
|
+
limit: null,
|
18
|
+
name: null,
|
19
|
+
subjects: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **browser_download_url** | **String** | (Can only be set if existing attachment is of external type) | [optional] |
|
7
8
|
| **name** | **String** | | [optional] |
|
8
9
|
|
9
10
|
## Example
|
@@ -12,6 +13,7 @@
|
|
12
13
|
require 'forgejo'
|
13
14
|
|
14
15
|
instance = Forgejo::EditAttachmentOptions.new(
|
16
|
+
browser_download_url: null,
|
15
17
|
name: null
|
16
18
|
)
|
17
19
|
```
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Forgejo::EditQuotaRuleOptions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **limit** | **Integer** | The limit set by the rule | [optional] |
|
8
|
+
| **subjects** | **Array<String>** | The subjects affected by the rule | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'forgejo'
|
14
|
+
|
15
|
+
instance = Forgejo::EditQuotaRuleOptions.new(
|
16
|
+
limit: null,
|
17
|
+
subjects: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/EditRepoOption.md
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
| **default_branch** | **String** | sets the default branch for this repository. | [optional] |
|
18
18
|
| **default_delete_branch_after_merge** | **Boolean** | set to `true` to delete pr branch after merge by default | [optional] |
|
19
19
|
| **default_merge_style** | **String** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", \"squash\", or \"fast-forward-only\". | [optional] |
|
20
|
+
| **default_update_style** | **String** | set to a update style to be used by this repository: \"rebase\" or \"merge\" | [optional] |
|
20
21
|
| **description** | **String** | a short description of the repository. | [optional] |
|
21
22
|
| **enable_prune** | **Boolean** | enable prune - remove obsolete remote-tracking references when mirroring | [optional] |
|
22
23
|
| **external_tracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional] |
|
@@ -57,6 +58,7 @@ instance = Forgejo::EditRepoOption.new(
|
|
57
58
|
default_branch: null,
|
58
59
|
default_delete_branch_after_merge: null,
|
59
60
|
default_merge_style: null,
|
61
|
+
default_update_style: null,
|
60
62
|
description: null,
|
61
63
|
enable_prune: null,
|
62
64
|
external_tracker: null,
|
data/docs/IssueApi.md
CHANGED
@@ -221,7 +221,7 @@ nil (empty response body)
|
|
221
221
|
### HTTP request headers
|
222
222
|
|
223
223
|
- **Content-Type**: Not defined
|
224
|
-
- **Accept**:
|
224
|
+
- **Accept**: application/json
|
225
225
|
|
226
226
|
|
227
227
|
## issue_add_time
|
@@ -447,7 +447,7 @@ nil (empty response body)
|
|
447
447
|
### HTTP request headers
|
448
448
|
|
449
449
|
- **Content-Type**: application/json, text/plain
|
450
|
-
- **Accept**:
|
450
|
+
- **Accept**: application/json
|
451
451
|
|
452
452
|
|
453
453
|
## issue_create_comment
|
@@ -1137,7 +1137,7 @@ nil (empty response body)
|
|
1137
1137
|
### HTTP request headers
|
1138
1138
|
|
1139
1139
|
- **Content-Type**: Not defined
|
1140
|
-
- **Accept**:
|
1140
|
+
- **Accept**: application/json, text/html
|
1141
1141
|
|
1142
1142
|
|
1143
1143
|
## issue_delete_comment
|
@@ -1209,7 +1209,7 @@ nil (empty response body)
|
|
1209
1209
|
### HTTP request headers
|
1210
1210
|
|
1211
1211
|
- **Content-Type**: Not defined
|
1212
|
-
- **Accept**:
|
1212
|
+
- **Accept**: application/json, text/html
|
1213
1213
|
|
1214
1214
|
|
1215
1215
|
## issue_delete_comment_deprecated
|
@@ -1283,7 +1283,7 @@ nil (empty response body)
|
|
1283
1283
|
### HTTP request headers
|
1284
1284
|
|
1285
1285
|
- **Content-Type**: Not defined
|
1286
|
-
- **Accept**:
|
1286
|
+
- **Accept**: application/json, text/html
|
1287
1287
|
|
1288
1288
|
|
1289
1289
|
## issue_delete_comment_reaction
|
@@ -1359,7 +1359,7 @@ nil (empty response body)
|
|
1359
1359
|
### HTTP request headers
|
1360
1360
|
|
1361
1361
|
- **Content-Type**: application/json
|
1362
|
-
- **Accept**:
|
1362
|
+
- **Accept**: application/json
|
1363
1363
|
|
1364
1364
|
|
1365
1365
|
## issue_delete_issue_attachment
|
@@ -1433,7 +1433,7 @@ nil (empty response body)
|
|
1433
1433
|
### HTTP request headers
|
1434
1434
|
|
1435
1435
|
- **Content-Type**: Not defined
|
1436
|
-
- **Accept**:
|
1436
|
+
- **Accept**: application/json
|
1437
1437
|
|
1438
1438
|
|
1439
1439
|
## issue_delete_issue_comment_attachment
|
@@ -1507,7 +1507,7 @@ nil (empty response body)
|
|
1507
1507
|
### HTTP request headers
|
1508
1508
|
|
1509
1509
|
- **Content-Type**: Not defined
|
1510
|
-
- **Accept**:
|
1510
|
+
- **Accept**: application/json
|
1511
1511
|
|
1512
1512
|
|
1513
1513
|
## issue_delete_issue_reaction
|
@@ -1583,7 +1583,7 @@ nil (empty response body)
|
|
1583
1583
|
### HTTP request headers
|
1584
1584
|
|
1585
1585
|
- **Content-Type**: application/json
|
1586
|
-
- **Accept**:
|
1586
|
+
- **Accept**: application/json
|
1587
1587
|
|
1588
1588
|
|
1589
1589
|
## issue_delete_label
|
@@ -1655,7 +1655,7 @@ nil (empty response body)
|
|
1655
1655
|
### HTTP request headers
|
1656
1656
|
|
1657
1657
|
- **Content-Type**: Not defined
|
1658
|
-
- **Accept**:
|
1658
|
+
- **Accept**: application/json, text/html
|
1659
1659
|
|
1660
1660
|
|
1661
1661
|
## issue_delete_milestone
|
@@ -1727,7 +1727,7 @@ nil (empty response body)
|
|
1727
1727
|
### HTTP request headers
|
1728
1728
|
|
1729
1729
|
- **Content-Type**: Not defined
|
1730
|
-
- **Accept**:
|
1730
|
+
- **Accept**: application/json, text/html
|
1731
1731
|
|
1732
1732
|
|
1733
1733
|
## issue_delete_stop_watch
|
@@ -1799,7 +1799,7 @@ nil (empty response body)
|
|
1799
1799
|
### HTTP request headers
|
1800
1800
|
|
1801
1801
|
- **Content-Type**: Not defined
|
1802
|
-
- **Accept**:
|
1802
|
+
- **Accept**: application/json
|
1803
1803
|
|
1804
1804
|
|
1805
1805
|
## issue_delete_subscription
|
@@ -1873,7 +1873,7 @@ nil (empty response body)
|
|
1873
1873
|
### HTTP request headers
|
1874
1874
|
|
1875
1875
|
- **Content-Type**: Not defined
|
1876
|
-
- **Accept**:
|
1876
|
+
- **Accept**: application/json
|
1877
1877
|
|
1878
1878
|
|
1879
1879
|
## issue_delete_time
|
@@ -1947,7 +1947,7 @@ nil (empty response body)
|
|
1947
1947
|
### HTTP request headers
|
1948
1948
|
|
1949
1949
|
- **Content-Type**: Not defined
|
1950
|
-
- **Accept**:
|
1950
|
+
- **Accept**: application/json
|
1951
1951
|
|
1952
1952
|
|
1953
1953
|
## issue_edit_comment
|
@@ -4424,7 +4424,7 @@ nil (empty response body)
|
|
4424
4424
|
### HTTP request headers
|
4425
4425
|
|
4426
4426
|
- **Content-Type**: application/json, text/plain
|
4427
|
-
- **Accept**:
|
4427
|
+
- **Accept**: application/json
|
4428
4428
|
|
4429
4429
|
|
4430
4430
|
## issue_replace_labels
|
@@ -4573,7 +4573,7 @@ nil (empty response body)
|
|
4573
4573
|
### HTTP request headers
|
4574
4574
|
|
4575
4575
|
- **Content-Type**: Not defined
|
4576
|
-
- **Accept**:
|
4576
|
+
- **Accept**: application/json
|
4577
4577
|
|
4578
4578
|
|
4579
4579
|
## issue_search_issues
|
@@ -4597,23 +4597,23 @@ end
|
|
4597
4597
|
|
4598
4598
|
api_instance = Forgejo::IssueApi.new
|
4599
4599
|
opts = {
|
4600
|
-
state: '
|
4601
|
-
labels: 'labels_example', # String |
|
4602
|
-
milestones: 'milestones_example', # String |
|
4603
|
-
q: 'q_example', # String |
|
4604
|
-
priority_repo_id: 789, # Integer |
|
4605
|
-
type: '
|
4606
|
-
since: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show
|
4607
|
-
before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show
|
4608
|
-
assigned: true, # Boolean |
|
4609
|
-
created: true, # Boolean |
|
4610
|
-
mentioned: true, # Boolean |
|
4611
|
-
review_requested: true, # Boolean |
|
4612
|
-
reviewed: true, # Boolean |
|
4613
|
-
owner: 'owner_example', # String |
|
4614
|
-
team: 'team_example', # String |
|
4615
|
-
page: 56, # Integer |
|
4616
|
-
limit: 56 # Integer |
|
4600
|
+
state: 'open', # String | State of the issue
|
4601
|
+
labels: 'labels_example', # String | Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded.
|
4602
|
+
milestones: 'milestones_example', # String | Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded.
|
4603
|
+
q: 'q_example', # String | Search string
|
4604
|
+
priority_repo_id: 789, # Integer | Repository ID to prioritize in the results
|
4605
|
+
type: 'issues', # String | Filter by issue type
|
4606
|
+
since: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show issues updated after the given time (RFC 3339 format)
|
4607
|
+
before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only show issues updated before the given time (RFC 3339 format)
|
4608
|
+
assigned: true, # Boolean | Filter issues or pulls assigned to the authenticated user
|
4609
|
+
created: true, # Boolean | Filter issues or pulls created by the authenticated user
|
4610
|
+
mentioned: true, # Boolean | Filter issues or pulls mentioning the authenticated user
|
4611
|
+
review_requested: true, # Boolean | Filter pull requests where the authenticated user's review was requested
|
4612
|
+
reviewed: true, # Boolean | Filter pull requests reviewed by the authenticated user
|
4613
|
+
owner: 'owner_example', # String | Filter by repository owner
|
4614
|
+
team: 'team_example', # String | Filter by team (requires organization owner parameter)
|
4615
|
+
page: 56, # Integer | Page number of results to return (1-based)
|
4616
|
+
limit: 56 # Integer | Number of items per page
|
4617
4617
|
}
|
4618
4618
|
|
4619
4619
|
begin
|
@@ -4647,23 +4647,23 @@ end
|
|
4647
4647
|
|
4648
4648
|
| Name | Type | Description | Notes |
|
4649
4649
|
| ---- | ---- | ----------- | ----- |
|
4650
|
-
| **state** | **String** |
|
4651
|
-
| **labels** | **String** |
|
4652
|
-
| **milestones** | **String** |
|
4653
|
-
| **q** | **String** |
|
4654
|
-
| **priority_repo_id** | **Integer** |
|
4655
|
-
| **type** | **String** |
|
4656
|
-
| **since** | **Time** | Only show
|
4657
|
-
| **before** | **Time** | Only show
|
4658
|
-
| **assigned** | **Boolean** |
|
4659
|
-
| **created** | **Boolean** |
|
4660
|
-
| **mentioned** | **Boolean** |
|
4661
|
-
| **review_requested** | **Boolean** |
|
4662
|
-
| **reviewed** | **Boolean** |
|
4663
|
-
| **owner** | **String** |
|
4664
|
-
| **team** | **String** |
|
4665
|
-
| **page** | **Integer** |
|
4666
|
-
| **limit** | **Integer** |
|
4650
|
+
| **state** | **String** | State of the issue | [optional][default to 'open'] |
|
4651
|
+
| **labels** | **String** | Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded. | [optional] |
|
4652
|
+
| **milestones** | **String** | Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded. | [optional] |
|
4653
|
+
| **q** | **String** | Search string | [optional] |
|
4654
|
+
| **priority_repo_id** | **Integer** | Repository ID to prioritize in the results | [optional] |
|
4655
|
+
| **type** | **String** | Filter by issue type | [optional] |
|
4656
|
+
| **since** | **Time** | Only show issues updated after the given time (RFC 3339 format) | [optional] |
|
4657
|
+
| **before** | **Time** | Only show issues updated before the given time (RFC 3339 format) | [optional] |
|
4658
|
+
| **assigned** | **Boolean** | Filter issues or pulls assigned to the authenticated user | [optional][default to false] |
|
4659
|
+
| **created** | **Boolean** | Filter issues or pulls created by the authenticated user | [optional][default to false] |
|
4660
|
+
| **mentioned** | **Boolean** | Filter issues or pulls mentioning the authenticated user | [optional][default to false] |
|
4661
|
+
| **review_requested** | **Boolean** | Filter pull requests where the authenticated user's review was requested | [optional][default to false] |
|
4662
|
+
| **reviewed** | **Boolean** | Filter pull requests reviewed by the authenticated user | [optional][default to false] |
|
4663
|
+
| **owner** | **String** | Filter by repository owner | [optional] |
|
4664
|
+
| **team** | **String** | Filter by team (requires organization owner parameter) | [optional] |
|
4665
|
+
| **page** | **Integer** | Page number of results to return (1-based) | [optional][default to 1] |
|
4666
|
+
| **limit** | **Integer** | Number of items per page | [optional] |
|
4667
4667
|
|
4668
4668
|
### Return type
|
4669
4669
|
|
@@ -4748,7 +4748,7 @@ nil (empty response body)
|
|
4748
4748
|
### HTTP request headers
|
4749
4749
|
|
4750
4750
|
- **Content-Type**: Not defined
|
4751
|
-
- **Accept**:
|
4751
|
+
- **Accept**: application/json
|
4752
4752
|
|
4753
4753
|
|
4754
4754
|
## issue_stop_stop_watch
|
@@ -4820,7 +4820,7 @@ nil (empty response body)
|
|
4820
4820
|
### HTTP request headers
|
4821
4821
|
|
4822
4822
|
- **Content-Type**: Not defined
|
4823
|
-
- **Accept**:
|
4823
|
+
- **Accept**: application/json
|
4824
4824
|
|
4825
4825
|
|
4826
4826
|
## issue_subscriptions
|
@@ -5058,7 +5058,7 @@ nil (empty response body)
|
|
5058
5058
|
### HTTP request headers
|
5059
5059
|
|
5060
5060
|
- **Content-Type**: Not defined
|
5061
|
-
- **Accept**:
|
5061
|
+
- **Accept**: application/json, text/html
|
5062
5062
|
|
5063
5063
|
|
5064
5064
|
## pin_issue
|
@@ -5130,7 +5130,7 @@ nil (empty response body)
|
|
5130
5130
|
### HTTP request headers
|
5131
5131
|
|
5132
5132
|
- **Content-Type**: Not defined
|
5133
|
-
- **Accept**:
|
5133
|
+
- **Accept**: application/json, text/html
|
5134
5134
|
|
5135
5135
|
|
5136
5136
|
## unpin_issue
|
@@ -5202,5 +5202,5 @@ nil (empty response body)
|
|
5202
5202
|
### HTTP request headers
|
5203
5203
|
|
5204
5204
|
- **Content-Type**: Not defined
|
5205
|
-
- **Accept**:
|
5205
|
+
- **Accept**: application/json, text/html
|
5206
5206
|
|
data/docs/MarkupOption.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **branch_path** | **String** | The current branch path where the form gets posted in: body | [optional] |
|
7
8
|
| **context** | **String** | Context to render in: body | [optional] |
|
8
9
|
| **file_path** | **String** | File path for detecting extension in file mode in: body | [optional] |
|
9
10
|
| **mode** | **String** | Mode to render (comment, gfm, markdown, file) in: body | [optional] |
|
@@ -16,6 +17,7 @@
|
|
16
17
|
require 'forgejo'
|
17
18
|
|
18
19
|
instance = Forgejo::MarkupOption.new(
|
20
|
+
branch_path: null,
|
19
21
|
context: null,
|
20
22
|
file_path: null,
|
21
23
|
mode: null,
|
data/docs/NoteOptions.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Forgejo::NoteOptions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **message** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'forgejo'
|
13
|
+
|
14
|
+
instance = Forgejo::NoteOptions.new(
|
15
|
+
message: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|