import config from "../../config.ts"; import type { RepositoryRow } from "../../db/index.ts"; import type { SessionUser } from "../../middleware/session.ts"; import { Layout } from "../layout.tsx"; import { RepoHeader } from "../repos/RepoHeader.tsx"; import { RepoNav } from "../repos/RepoNav.tsx"; interface NewReleaseProps { user: SessionUser; repo: RepositoryRow; error?: string; values?: { create_tag?: boolean; tag_name?: string; revision?: string; name?: string; notes?: string; include_source_code?: boolean; }; } export function NewRelease({ user, repo, error, values }: NewReleaseProps) { const showTagFields = values?.create_tag ?? false; const defaultRevision = values?.revision !== undefined ? values.revision : repo.default_branch; return (

New Release

{error &&
{error}
}

Branch, tag, or commit to tag.

You can attach multiple files to this release.

Cancel
); }