feat(gitea): add Gitea repository support

This commit is contained in:
Jason Parks
2025-03-17 15:17:35 -06:00
parent cf28640188
commit 9a11d0db97
101 changed files with 3272 additions and 2075 deletions
@@ -235,7 +235,8 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
? "Loading...."
: field.value.owner
? repositories?.find(
(repo: GiteaRepository) => repo.name === field.value.repo,
(repo: GiteaRepository) =>
repo.name === field.value.repo,
)?.name
: "Select repository"}
@@ -327,7 +328,8 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
? "Loading...."
: field.value
? branches?.find(
(branch: GiteaBranch) => branch.name === field.value,
(branch: GiteaBranch) =>
branch.name === field.value,
)?.name
: "Select branch"}
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
@@ -411,4 +413,4 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
</Form>
</div>
);
};
};