Increase Repo Name Limit from 100 to 255? #12264

Open
opened 2025-11-02 10:03:53 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @mikeperalta1 on GitHub (Dec 28, 2023).

Feature Description

Currently, I get blocked attempting to migrate a repo via API if my chosen destination repo name exceeds 100 characters. Some of my repo names are very long and sometimes I add prefixes when migrating them to an archive instance/org, and I could really use more characters.

Is there a reason to limit the name? I see in repo.go the limit is set to 100, but I believe all/most database engines would be okay with 255, and I'm sure sqlite would be fine with much more.

Here's a quick copy/paste of a recent API error (http response body) with a repo destination name of 103 characters, where I receive an Unprocessable Entity exception in another python library:

{"message":"[RepoName]: MaxSize","url":"https://my-server.my-domain/api/swagger"}

Screenshots

No response

Originally created by @mikeperalta1 on GitHub (Dec 28, 2023). ### Feature Description Currently, I get blocked attempting to migrate a repo via API if my chosen destination repo name exceeds 100 characters. Some of my repo names are very long and sometimes I add prefixes when migrating them to an archive instance/org, and I could really use more characters. Is there a reason to limit the name? I see in [repo.go](https://github.com/go-gitea/gitea/blob/4d1277c0cbb9c02aa5a33a2927073f8cd400c916/modules/structs/repo.go#L120) the limit is set to 100, but I believe all/most database engines would be okay with 255, and I'm sure sqlite would be fine with much more. Here's a quick copy/paste of a recent API error (http response body) with a repo destination name of 103 characters, where I receive an *Unprocessable Entity* exception in another python library: ```json {"message":"[RepoName]: MaxSize","url":"https://my-server.my-domain/api/swagger"} ``` ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:03:53 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12264