forgejo-sdk/gitea
takirala 73182f46eb More descriptive errors when validating repo metadata (#567)
When creating a repository using gitea client, it performs some validation on client options and the errors returned are not descriptive enough. This PR makes the errors more precise so that the user can fix the errors easily.

Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/567
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: takirala <takirala@noreply.gitea.io>
Co-committed-by: takirala <takirala@noreply.gitea.io>
2022-02-01 07:14:45 +08:00
..
admin_cron.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_org.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_repo.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_test.go Update tests to new changes upstream (#518) 2021-05-28 06:02:01 +08:00
admin_user.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
attachment.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
client.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
doc.go ask for go get from code.gitea.io/sdk/gitea 2016-11-11 21:52:21 +08:00
fork.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
git_blob.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
git_hook.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
go.mod Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
go.sum Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
helper.go Add Helper for Optional Values (#448) 2020-11-13 05:27:28 +08:00
hook.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
issue.go Update List Options (#527) 2021-07-01 19:39:50 +08:00
issue_comment.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_comment_test.go Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
issue_label.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_label_test.go Extend Label Test (#540) 2021-08-29 02:28:00 +08:00
issue_milestone.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
issue_milestone_test.go Milestone Functions accept name to identify (#418) 2020-09-15 16:29:24 +00:00
issue_reaction.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_stopwatch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_subscription.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_subscription_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue_test.go Add Ref to Issue structs (#466) 2020-12-16 06:16:31 +08:00
issue_tracked_time.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
list_options.go ListFunctions: option to disable pagination (#509) 2021-03-31 04:28:44 +08:00
main_test.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
notifications.go NotificationSubject: add HTMLURL fields (#548) 2021-10-14 16:24:30 +08:00
notifications_test.go Introduce NotifySubjectState (#520) 2021-07-01 05:06:50 +08:00
oauth2.go Use Predefind Versions & Compare Function (#442) 2020-11-13 04:59:04 +08:00
oauth2_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
org_member.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
org_member_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
org_team.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
org_team_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
org_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
pull.go GetPullRequestDiff: add PullRequestDiffOptions param (#542) 2022-01-14 01:30:39 +08:00
pull_review.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
pull_review_test.go Add Create/Delete ReviewRequests (#493) 2021-02-17 23:03:45 +08:00
pull_test.go GetPullRequestDiff: add PullRequestDiffOptions param (#542) 2022-01-14 01:30:39 +08:00
release.go Update List Options (#527) 2021-07-01 19:39:50 +08:00
release_test.go Add DeleteTag & Correct DeleteReleaseByTag (#488) 2021-02-14 00:14:24 +08:00
repo.go More descriptive errors when validating repo metadata (#567) 2022-02-01 07:14:45 +08:00
repo_branch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_branch_protection.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_branch_test.go Add Helper for Optional Values (#448) 2020-11-13 05:27:28 +08:00
repo_collaborator.go Add GetReviewers & GetAssignees (#534) 2021-08-13 20:16:25 +08:00
repo_collaborator_test.go Add GetReviewers & GetAssignees (#534) 2021-08-13 20:16:25 +08:00
repo_commit.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_commit_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_file.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_file_test.go Handle Contents Edge-Case (#492) 2021-02-17 06:47:21 +08:00
repo_key.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_migrate.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
repo_refs.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_stars.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_stars_test.go Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
repo_tag.go Add GetTag, GetAnnotatedTag & CreateTag (#533) 2021-08-13 20:27:52 +08:00
repo_tag_test.go Add GetTag, GetAnnotatedTag & CreateTag (#533) 2021-08-13 20:27:52 +08:00
repo_team.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
repo_team_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
repo_template.go Add CreateRepoFromTemplate (#536) 2021-08-14 00:28:23 +08:00
repo_template_test.go Add CreateRepoFromTemplate (#536) 2021-08-14 00:28:23 +08:00
repo_test.go Add GetRepoByID (#511) 2021-04-04 00:35:19 +08:00
repo_topics.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_topics_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_transfer.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_transfer_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_tree.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_watch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_watch_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
settings.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
settings_test.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
status.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
status_test.go Fix GetCombinedStatus() (#470) 2020-12-17 12:46:51 +08:00
user.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
user_app.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
user_email.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_follow.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_gpgkey.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_key.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_search.go Add GetUserByID (#513) 2021-04-05 11:23:50 +08:00
user_settings.go Add user settings get & update functions (#531) 2021-07-03 23:50:45 +08:00
user_settings_test.go Add user settings get & update functions (#531) 2021-07-03 23:50:45 +08:00
user_test.go Add GetReviewers & GetAssignees (#534) 2021-08-13 20:16:25 +08:00
version.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00
version_test.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00