Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
reviews:
request_changes_workflow: true
review_status: false
auto_review:
enabled: false
21 changes: 20 additions & 1 deletion apps/mobile/src/components/SourceControlIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { withUniwind } from "uniwind";

const ThemedSvg = withUniwind(Svg);

export type SourceControlIconKind = "github" | "gitlab" | "bitbucket" | "azure-devops";
export type SourceControlIconKind = "github" | "gitlab" | "bitbucket" | "azure-devops" | "gitea";

export function SourceControlIcon(props: {
readonly kind: SourceControlIconKind;
Expand Down Expand Up @@ -106,5 +106,24 @@ export function SourceControlIcon(props: {
/>
</Svg>
);
case "gitea":
return (
<ThemedSvg
width={size}
height={size}
viewBox="0 0 24 24"
color={props.color}
colorClassName={props.colorClassName}
fill="none"
>
<Path
d="M7 3h8a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm2 5h6m-6 4h4m2 4 3-3-3-3"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</ThemedSvg>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function AddProjectRepositoryRoute({
source === "github" ||
source === "gitlab" ||
source === "bitbucket" ||
source === "azure-devops"
source === "azure-devops" ||
source === "gitea"
? addProjectRemoteSourceLabel(source)
: "Git URL";

Expand Down
3 changes: 2 additions & 1 deletion apps/mobile/src/features/projects/AddProjectScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ function sourceFromParam(value: string | string[] | undefined): AddProjectRemote
source === "github" ||
source === "gitlab" ||
source === "bitbucket" ||
source === "azure-devops"
source === "azure-devops" ||
source === "gitea"
) {
return source;
}
Expand Down
9 changes: 8 additions & 1 deletion apps/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import * as CheckpointDiffQuery from "./checkpointing/CheckpointDiffQuery.ts";
import * as CheckpointStore from "./checkpointing/CheckpointStore.ts";
import * as AzureDevOpsCli from "./sourceControl/AzureDevOpsCli.ts";
import * as BitbucketApi from "./sourceControl/BitbucketApi.ts";
import * as GiteaApi from "./sourceControl/GiteaApi.ts";
import * as GitHubCli from "./sourceControl/GitHubCli.ts";
import * as GitLabCli from "./sourceControl/GitLabCli.ts";
import * as TextGeneration from "./textGeneration/TextGeneration.ts";
Expand Down Expand Up @@ -304,7 +305,13 @@ const VcsDriverRegistryLayerLive = VcsDriverRegistry.layer.pipe(

const SourceControlProviderRegistryLayerLive = SourceControlProviderRegistry.layer.pipe(
Layer.provide(
Layer.mergeAll(AzureDevOpsCli.layer, BitbucketApi.layer, GitHubCli.layer, GitLabCli.layer),
Layer.mergeAll(
AzureDevOpsCli.layer,
BitbucketApi.layer,
GiteaApi.layer,
GitHubCli.layer,
GitLabCli.layer,
),
),
Layer.provideMerge(GitVcsDriver.layer),
Layer.provideMerge(VcsDriverRegistryLayerLive),
Expand Down
Loading