1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-17 11:35:22 +01:00
gitea/services/repository
Giteabot b3bc79262d
Add validation constraints for repository creation fields (#36671) (#36757)
Backport #36671 by @lunny

Adds validation constraints to repository creation inputs, enforcing
max-length limits for labels/license/readme and enum validation for
trust model and object format. Updates both the API option struct and
the web form struct to keep validation consistent.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-02-25 20:43:00 +00:00
..
archiver Stream repo zip/tar.gz/bundle achives by default (#35487) 2025-09-19 11:51:21 +08:00
commitstatus Fix various typos in codebase (#35480) 2025-09-13 10:34:43 -04:00
files fix some file icon ui (#36078) (#36088) 2025-12-04 19:39:35 +00:00
gitgraph Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
adopt_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
adopt.go Replace gobwas/glob package (#35478) 2025-09-13 18:01:00 +00:00
avatar_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
avatar.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
branch.go Honor delete branch on merge repo setting when using merge API (#35488) (#35726) 2025-10-22 09:41:40 -07:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
check.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
collaboration_test.go Add more check for stopwatch read or list (#36340) (#36368) 2026-01-14 16:04:02 +00:00
collaboration.go Add more check for stopwatch read or list (#36340) (#36368) 2026-01-14 16:04:02 +00:00
commit.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
contributors_graph_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
contributors_graph.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
create_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
create.go Add validation constraints for repository creation fields (#36671) (#36757) 2026-02-25 20:43:00 +00:00
delete_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
delete.go Move HasWiki to repository service package (#33912) 2025-09-01 11:12:58 -07:00
fork_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
fork.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
generate_test.go Fix path resolving (#36734) (#36746) 2026-02-25 12:11:53 +08:00
generate.go Fix path resolving (#36734) (#36746) 2026-02-25 12:11:53 +08:00
hooks.go Move HasWiki to repository service package (#33912) 2025-09-01 11:12:58 -07:00
init.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
lfs_test.go Fix bug when do LFS GC (#36500) (#36608) 2026-02-13 04:30:42 +00:00
lfs.go Fix bug when do LFS GC (#36500) (#36608) 2026-02-13 04:30:42 +00:00
license_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
license.go Only keep popular licenses (#33832) 2025-03-10 06:40:37 +08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
merge_upstream.go Add ff_only parameter to POST /repos/{owner}/{repo}/merge-upstream (#34770) 2025-06-19 12:29:10 -07:00
migrate.go Move git command to git/gitcmd (#35483) 2025-09-15 23:33:12 -07:00
push.go Fix various bugs (#35177) 2025-07-30 07:08:59 +00:00
repo_team_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
repo_team.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
repository_test.go Fix missing repository id when migrating release attachments (#36389) (#36413) 2026-01-20 23:36:45 +02:00
repository.go Fix missing repository id when migrating release attachments (#36389) (#36413) 2026-01-20 23:36:45 +02:00
setting.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
template.go Move some functions from package git to gitrepo (#33910) 2025-09-01 19:13:18 +00:00
transfer_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
transfer.go Move HasWiki to repository service package (#33912) 2025-09-01 11:12:58 -07:00