gitea/routers/api/v1/repo
Zettat123 301de3ab6b
Handle missing `README` in create repos API () ()
Backport  
Close 

In `/user/repos` API (and other APIs related to creating repos), user
can specify a readme template for auto init. At present, if the
specified template does not exist, a `500` will be returned . This PR
improved the logic and will return a `400` instead of `500`.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
..
blob.go Implement FSFE REUSE for golang files ()
branch.go Add context cache as a request level cache ()
collaborators.go Add context cache as a request level cache ()
commits.go Add context cache as a request level cache ()
file.go Use context parameter in models/git ()
fork.go Map OIDC groups to Orgs/Teams ()
git_hook.go Move `convert` package to services ()
git_ref.go Implement FSFE REUSE for golang files ()
hook.go Add context cache as a request level cache ()
hook_test.go Implement FSFE REUSE for golang files ()
issue.go Webhooks: for issue close/reopen action, add commit ID that caused it ()
issue_attachment.go Preserve file size when creating attachments () ()
issue_comment.go Add context cache as a request level cache ()
issue_comment_attachment.go Preserve file size when creating attachments () ()
issue_label.go Move `convert` package to services ()
issue_reaction.go Add context cache as a request level cache ()
issue_stopwatch.go Move `convert` package to services ()
issue_subscription.go Add context cache as a request level cache ()
issue_tracked_time.go Move `convert` package to services ()
key.go Move `convert` package to services ()
label.go Add loading yaml label template files () ()
language.go Implement FSFE REUSE for golang files ()
main_test.go Refactor the setting to make unit test easier ()
migrate.go Move `convert` package to services ()
milestone.go Move `convert` package to services ()
mirror.go Add `sync_on_commit` option for push mirrors api ()
notes.go Fix panic when getting notes by ref () ()
patch.go Implement FSFE REUSE for golang files ()
pull.go Add force_merge to merge request and fix checking mergable ()
pull_review.go Add context cache as a request level cache ()
release.go Add context cache as a request level cache ()
release_attachment.go Preserve file size when creating attachments () ()
release_tags.go Add context cache as a request level cache ()
repo.go Handle missing `README` in create repos API () ()
repo_test.go Implement FSFE REUSE for golang files ()
star.go Add context cache as a request level cache ()
status.go Use context parameter in models/git ()
subscriber.go Add context cache as a request level cache ()
tag.go Add context cache as a request level cache ()
teams.go Add context cache as a request level cache ()
topic.go Move `convert` package to services ()
transfer.go Add context cache as a request level cache ()
tree.go Implement FSFE REUSE for golang files ()
wiki.go Move `convert` package to services ()