--- import BaseLayout from "@/layouts/BaseLayout.astro"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Textarea } from "@/components/ui/textarea"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; const user = Astro.locals.user; if (!user) { return Astro.redirect("/login"); } --- Import a repository Bring in an existing repository from GitHub, GitLab, Bitbucket, or any other Git service. You can keep it in sync with the source automatically. Error Import started Source repository Paste the URL of the repository you want to import. Source URL * Supports https://, git@host:path, ssh:// URLs, and the owner/repository shorthand (GitHub). Access token (optional) Only needed for private repositories. Use an https:// URL. The token is stored encrypted and used only for mirror syncs. Repository details Repository name (optional) {user.username} / Defaults to the source repository's name. Description (optional) Visibility Public Anyone on the internet can see this repository. Private Only you can see and commit to this repository. Internal Anyone logged in can see this repository. Sync with the source Keep this repository up to date with the upstream repository. Automatically sync with the source repository Pulls new commits from the upstream on a schedule. You can disable this later in repository settings. Cancel Import repository
Bring in an existing repository from GitHub, GitLab, Bitbucket, or any other Git service. You can keep it in sync with the source automatically.
Supports https://, git@host:path, ssh:// URLs, and the owner/repository shorthand (GitHub).
Only needed for private repositories. Use an https:// URL. The token is stored encrypted and used only for mirror syncs.
Defaults to the source repository's name.
Anyone on the internet can see this repository.
Only you can see and commit to this repository.
Anyone logged in can see this repository.
Pulls new commits from the upstream on a schedule. You can disable this later in repository settings.