Merge pull request #1821 from Dokploy/1798-gitea-provider-only-returns-a-subset-of-repositories-to-choose-from

Refactor Gitea repository fetching to handle pagination
This commit is contained in:
Mauricio Siu
2025-05-04 21:07:47 -06:00
committed by GitHub
2 changed files with 85 additions and 39 deletions

View File

@@ -381,6 +381,9 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
<CommandEmpty>No branch found.</CommandEmpty>
<CommandGroup>
{branches && branches.length === 0 && (
<CommandItem>No branches found.</CommandItem>
)}
{branches?.map((branch: GiteaBranch) => (
<CommandItem
value={branch.name}