Skip to content

Add validation constraints for repository creation fields (#36671)#36757

Merged
lunny merged 1 commit intogo-gitea:release/v1.25from
GiteaBot:backport-36671-v1.25
Feb 25, 2026
Merged

Add validation constraints for repository creation fields (#36671)#36757
lunny merged 1 commit intogo-gitea:release/v1.25from
GiteaBot:backport-36671-v1.25

Conversation

@GiteaBot
Copy link
Copy Markdown
Collaborator

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.

…6671)

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.
@GiteaBot GiteaBot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code type/bug labels Feb 25, 2026
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 25, 2026
@GiteaBot GiteaBot added this to the 1.25.5 milestone Feb 25, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 25, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 25, 2026
@lunny lunny enabled auto-merge (squash) February 25, 2026 20:15
@lunny lunny merged commit b3bc792 into go-gitea:release/v1.25 Feb 25, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants