tidy up git actions #45
- @@ -10,3 +10,4 @@1010 import { DEFAULT_THREAD_TERMINAL_HEIGHT, DEFAULT_THREAD_TERMINAL_ID } from "./types";1111 import { onServerWelcome } from "./wsNativeApi";1212 import { useNativeApi } from "./hooks/useNativeApi";13+import { AnchoredToastProvider, ToastProvider } from "./components/ui/toast";@@ -46,3 +48,21 @@4648 import ChatMarkdown from "./ChatMarkdown";4749 import ThreadTerminalDrawer from "./ThreadTerminalDrawer";4850 import { useNativeApi } from "../hooks/useNativeApi";51+import { Alert, AlertAction, AlertDescription, AlertTitle } from "./ui/alert";52+import {53+ ChevronDownIcon,54+ CircleAlertIcon,55+ FolderClosedIcon,56+ InfoIcon,57+ LockIcon,58+ LockOpenIcon,59+ XIcon,60+} from "lucide-react";61+import { Button } from "./ui/button";62+import { Select, SelectItem, SelectPopup, SelectTrigger, SelectValue } from "./ui/select";63+import { Separator } from "./ui/separator";64+import { Group, GroupSeparator } from "./ui/group";65+import { Menu, MenuItem, MenuPopup, MenuShortcut, MenuTrigger } from "./ui/menu";66+import { CursorIcon, Icon } from "./Icons";67+import { cn } from "~/lib/utils";68+import { Badge } from "./ui/badge";apps/web/src/components/ChatView.tsx lines 1444 to 1448Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -1575,0 +1421,21 @@1421+ label: "Cursor",1422+ Icon: CursorIcon,1423+ value: "cursor",1424+ },1425+ {1426+ label: navigator.platform.includes("Mac")1427+ ? "Finder"1428+ : navigator.platform.includes("Win")1429+ ? "Explorer"1430+ : "Files",1431+ Icon: FolderClosedIcon,1432+ value: "file-manager",1433+ },1434+ ] satisfies { label: string; Icon: Icon; value: EditorId }[];1435+ const primaryOption = options.find(({ value }) => value === lastEditor);1436+1437+ const api = useNativeApi();1438+ const { state } = useStore();1439+ const activeProject = state.projects.find((p) => p.id === state.activeThreadId);1440+ const activeThread = state.threads.find((t) => t.id === state.activeThreadId);1441+@@ -0,0 +1,8 @@1+"use client";2+3+import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";4+import { XIcon } from "lucide-react";5+import { cn } from "~/lib/utils";6+import { Button } from "~/components/ui/button";7+import { ScrollArea } from "~/components/ui/scroll-area";8+@@ -0,0 +1,7 @@1+"use client";2+3+import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";4+import { XIcon } from "lucide-react";5+import { cn } from "~/lib/utils";6+import { Button } from "~/components/ui/button";7+import { ScrollArea } from "~/components/ui/scroll-area";@@ -0,0 +1,4 @@1+import { cva, type VariantProps } from "class-variance-authority";2+3+import { cn } from "~/lib/utils";4+@@ -0,0 +59,21 @@59+ <>60+ <div61+ aria-hidden="true"62+ className={cn(63+ emptyMediaVariants({ className, variant }),64+ "-translate-x-0.5 -rotate-10 pointer-events-none absolute bottom-px origin-bottom-left scale-84 shadow-none",65+ )}66+ />67+ <div68+ aria-hidden="true"69+ className={cn(70+ emptyMediaVariants({ className, variant }),71+ "pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none",72+ )}73+ />74+ </>75+ )}76+ <div77+ className={cn(emptyMediaVariants({ className, variant }))}78+ {...props}79+ />@@ -0,0 +9,21 @@9+ <FieldsetPrimitive.Root10+ className={cn("flex w-full max-w-64 flex-col gap-6", className)}11+ data-slot="fieldset"12+ {...props}13+ />14+ );15+}16+function FieldsetLegend({17+ className,18+ ...props19+}: FieldsetPrimitive.Legend.Props) {20+ return (21+ <FieldsetPrimitive.Legend22+ className={cn("font-semibold text-foreground", className)}23+ data-slot="fieldset-legend"24+ {...props}25+ />26+ );27+}28+29+export { Fieldset, FieldsetLegend };@@ -0,0 +1,17 @@1+"use client";2+3+import { Form as FormPrimitive } from "@base-ui/react/form";4+5+import { cn } from "~/lib/utils";6+7+function Form({ className, ...props }: FormPrimitive.Props) {8+ return (9+ <FormPrimitive10+ className={cn("flex w-full flex-col gap-4", className)}11+ data-slot="form"12+ {...props}13+ />14+ );15+}16+17+export { Form };@@ -0,0 +1,9 @@1+"use client";2+3+import { mergeProps } from "@base-ui/react/merge-props";4+import { useRender } from "@base-ui/react/use-render";5+import { cva, type VariantProps } from "class-variance-authority";6+import type * as React from "react";7+8+import { cn } from "~/lib/utils";9+import { Separator } from "./separator";@@ -0,0 +1,8 @@1+"use client";2+3+import { cva, type VariantProps } from "class-variance-authority";4+import type * as React from "react";5+6+import { cn } from "~/lib/utils";7+import { Input, type InputProps } from "~/components/ui/input";8+import { Textarea, type TextareaProps } from "~/components/ui/textarea";@@ -0,0 +1,8 @@1+"use client";2+3+import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";4+import { XIcon } from "lucide-react";5+import { cn } from "~/lib/utils";6+import { Button } from "~/components/ui/button";7+import { ScrollArea } from "~/components/ui/scroll-area";8+@@ -0,0 +1,7 @@1+"use client";2+3+import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";4+import { XIcon } from "lucide-react";5+import { cn } from "~/lib/utils";6+import { Button } from "~/components/ui/button";7+import { ScrollArea } from "~/components/ui/scroll-area";@@ -0,0 +138,21 @@138+ </div>139+ )}140+141+ <div className="flex flex-col gap-0.5">142+ <Toast.Title143+ className="font-medium"144+ data-slot="toast-title"145+ />146+ <Toast.Description147+ className="text-muted-foreground"148+ data-slot="toast-description"149+ />150+ </div>151+ </div>152+ {toast.actionProps && (153+ <Toast.Action154+ className={buttonVariants({ size: "xs" })}155+ data-slot="toast-action"156+ >157+ {toast.actionProps.children}158+ </Toast.Action>@@ -0,0 +1,6 @@1+import { type ClassValue, clsx } from "clsx";2+import { twMerge } from "tailwind-merge";3+4+export function cn(...inputs: ClassValue[]) {5+ return twMerge(clsx(inputs));6+}
- @@ -243,4 +246,7 @@243246 sandboxMode: "workspace-write",244247 } as const);245248 const gitCwd = activeThread?.worktreePath ?? activeProject?.cwd ?? null;249+ const branchesQuery = useQuery(gitBranchesQueryOptions(api, gitCwd));250+ // Default true while loading to avoid toolbar flicker.251+ const isGitRepo = branchesQuery.data?.isRepo ?? true;246252@@ -1020,0 +903,21 @@903+ <Button904+ size="xs"905+ variant="outline"906+ disabled={isResponding}907+ onClick={() => void onRespondToApproval(approval.requestId, "acceptForSession")}908+ >909+ Always allow this session910+ </Button>911+ <Button912+ size="xs"913+ variant="destructive-outline"914+ disabled={isResponding}915+ onClick={() => void onRespondToApproval(approval.requestId, "decline")}916+ >917+ Decline918+ </Button>919+ <Button920+ size="xs"921+ variant="ghost"922+ disabled={isResponding}923+ onClick={() => void onRespondToApproval(approval.requestId, "cancel")}
- @@ -386,8 +251,14 @@251+ if (!confirmed) return;252+253+ const progressStages = buildGitActionProgressStages({254+ action,255+ hasCustomCommitMessage: !!commitMessage?.trim(),256+ });257+ const progressToastId = toastManager.add({258+ type: "loading",259+ title: progressStages[0] ?? "Running git action...",260+ timeout: 0,261+ });386262387- const dismissGitProgressToast = useCallback(() => {388- if (isGitModalActionRunning) return;389- setIsGitProgressToastVisible(false);390- setGitModalProgress([]);391- setGitModalError(null);392- setGitModalResult(null);393- }, [isGitModalActionRunning]);263+ let stageIndex = 0;264+ const stageInterval = setInterval(() => {@@ -180,4 +230,8 @@180230 }181231182232 async statusDetails(cwd: string): Promise<GitStatusDetails> {183- const stdout = await this.gitStdout(cwd, ["status", "--porcelain=2", "--branch"]);233+ const [statusStdout, unstagedNumstatStdout, stagedNumstatStdout] = await Promise.all([234+ this.gitStdout(cwd, ["status", "--porcelain=2", "--branch"]),235+ this.gitStdout(cwd, ["diff", "--numstat"]),236+ this.gitStdout(cwd, ["diff", "--cached", "--numstat"]),237+ ]);
- apps/web/src/components/GitActionsControl.tsx lines 460 to 471OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -674,17 +467,5 @@467+ className="cursor-not-allowed disabled:cursor-not-allowed disabled:pointer-events-auto"468+ onMouseEnter={() => setIsQuickActionPopoverOpen(true)}469+ onMouseLeave={() => setIsQuickActionPopoverOpen(false)}674470 />675- </div>676- <div>677- <p className="text-xs uppercase tracking-[0.14em] text-muted-foreground/70">678- Git actions679- </p>680- <h3 className="text-3xl font-semibold tracking-tight text-foreground">681- {gitActionModalTitle()}682- </h3>683- </div>684- </div>685- <button686- type="button"687- className="rounded-md p-1 text-muted-foreground/60 transition-colors duration-150 hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"688- onClick={closeGitActionModal}689- disabled={isGitActionRunning}690- aria-label="Close git action dialog"471+ }
- @@ -465,0 +291,21 @@291+ action === "commit_push" && !prUrl && result.push.status === "pushed";292+293+ toastManager.update(progressToastId, {294+ type: "success",295+ title: "Done",296+ description: describeGitResult(result),297+ timeout: 10_000,298+ ...(shouldOfferPushCta299+ ? {300+ actionProps: {301+ children: "Push",302+ onClick: () => setActiveDialogAction("push"),303+ },304+ }305+ : shouldOfferOpenPrCta306+ ? {307+ actionProps: {308+ children: "Open PR",309+ onClick: () => void api?.shell.openExternal(prUrl),310+ },311+ }@@ -563,3 +387,19 @@387+ [openExistingPr],388+ );563389564- useEffect(() => {565- if (!isGitModalOpen) return;390+ const runDialogAction = useCallback(() => {391+ if (!activeDialogAction) return;392+ const action: GitStackedAction =393+ activeDialogAction === "commit"394+ ? "commit"395+ : activeDialogAction === "push"396+ ? "commit_push"397+ : "commit_push_pr";398+ const commitMessage =399+ activeDialogAction === "commit" ? dialogCommitMessage.trim() : "";400+ setActiveDialogAction(null);401+ void runGitActionWithToast({402+ action,403+ ...(commitMessage ? { commitMessage } : {}),404+ });405+ }, [activeDialogAction, dialogCommitMessage, runGitActionWithToast]);
- @@ -0,0 +147,21 @@147+ kind: "show_hint",148+ hint: "Git status is unavailable.",149+ };150+ }151+152+ const hasBranch = gitStatus.branch !== null;153+ const hasChanges = gitStatus.hasWorkingTreeChanges;154+ const hasOpenPr = gitStatus.openPr !== null;155+ const isAhead = gitStatus.aheadCount > 0;156+ const isBehind = gitStatus.behindCount > 0;157+158+ if (!hasBranch) {159+ return {160+ label: "Commit",161+ disabled: true,162+ kind: "show_hint",163+ hint: "Create and checkout a branch before pushing or opening a PR.",164+ };165+ }166+167+ if (hasChanges) {
- @@ -0,0 +155,21 @@155+ const isAhead = gitStatus.aheadCount > 0;156+ const isBehind = gitStatus.behindCount > 0;157+158+ if (!hasBranch) {159+ return {160+ label: "Commit",161+ disabled: true,162+ kind: "show_hint",163+ hint: "Create and checkout a branch before pushing or opening a PR.",164+ };165+ }166+167+ if (hasChanges) {168+ if (hasOpenPr || isDefaultBranch) {169+ return { label: "Commit & push", disabled: false, kind: "run_action", action: "commit_push" };170+ }171+ return {172+ label: "Commit, push & create PR",173+ disabled: false,174+ kind: "run_action",175+ action: "commit_push_pr",
- @@ -0,0 +36,21 @@36+ "inline-end":37+ "has-[>:last-child[data-slot=badge]]:-me-1.5 has-[>button]:-me-2 order-last pe-[calc(--spacing(3)-1px)] has-[>kbd:last-child]:me-[-0.35rem] [[data-size=sm]+&]:pe-[calc(--spacing(2.5)-1px)]",38+ "inline-start":39+ "has-[>:last-child[data-slot=badge]]:-ms-1.5 has-[>button]:-ms-2 order-first ps-[calc(--spacing(3)-1px)] has-[>kbd:last-child]:ms-[-0.35rem] [[data-size=sm]+&]:ps-[calc(--spacing(2.5)-1px)]",40+ },41+ },42+ },43+);44+45+function InputGroupAddon({46+ className,47+ align = "inline-start",48+ ...props49+}: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>) {50+ return (51+ <div52+ className={cn(inputGroupAddonVariants({ align }), className)}53+ data-align={align}54+ data-slot="input-group-addon"55+ onMouseDown={(e) => {56+ const target = e.target as HTMLElement;@@ -0,0 +1,13 @@1+import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";2+3+import { cn } from "~/lib/utils";4+5+function Separator({ className, orientation = "horizontal", ...props }: SeparatorPrimitive.Props) {6+ return (7+ <SeparatorPrimitive8+ className={cn(9+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch",10+ className,11+ )}12+ data-slot="separator"13+ orientation={orientation}
- @@ -1575,0 +1454,21 @@1454+ void api.shell.openInEditor(cwd, editor);1455+ localStorage.setItem(LAST_EDITOR_KEY, editor);1456+ setLastEditor(editor);1457+ },1458+ [api, activeProject, activeThread, lastEditor, setLastEditor],1459+ );1460+1461+ // Cmd+O / Ctrl+O to open in last-used editor1462+ useEffect(() => {1463+ const handler = (e: globalThis.KeyboardEvent) => {1464+ if (e.key === "o" && (e.metaKey || e.ctrlKey) && !e.shiftKey) {1465+ if (api && activeProject) {1466+ e.preventDefault();1467+ const cwd = activeThread?.worktreePath ?? activeProject.cwd;1468+ void api.shell.openInEditor(cwd, lastEditor);1469+ }1470+ }1471+ };1472+ window.addEventListener("keydown", handler);1473+ return () => window.removeEventListener("keydown", handler);1474+ }, [api, activeProject, activeThread, lastEditor]);@@ -0,0 +1,5 @@1+"use client";2+3+import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";4+5+import { cn } from "~/lib/utils";@@ -0,0 +176,21 @@176+ defaultTagName: "div",177+ props: mergeProps<"div">(defaultProps, props),178+ render,179+ });180+}181+182+export {183+ Card,184+ CardFrame,185+ CardFrameHeader,186+ CardFrameTitle,187+ CardFrameDescription,188+ CardFrameFooter,189+ CardAction,190+ CardDescription,191+ CardFooter,192+ CardHeader,193+ CardPanel,194+ CardPanel as CardContent,195+ CardTitle,196+};@@ -0,0 +42,21 @@42+ >43+ {nativeInput ? (44+ <input45+ className={inputClassName}46+ data-slot="input"47+ size={typeof size === "number" ? size : undefined}48+ {...props}49+ />50+ ) : (51+ <InputPrimitive52+ className={inputClassName}53+ data-slot="input"54+ size={typeof size === "number" ? size : undefined}55+ {...props}56+ />57+ )}58+ </span>59+ );60+}61+62+export { Input, type InputProps };@@ -0,0 +37,21 @@37+ className,38+ ) || undefined39+ }40+ data-size={size}41+ data-slot="input-control"42+ >43+ {nativeInput ? (44+ <input45+ className={inputClassName}46+ data-slot="input"47+ size={typeof size === "number" ? size : undefined}48+ {...props}49+ />50+ ) : (51+ <InputPrimitive52+ className={inputClassName}53+ data-slot="input"54+ size={typeof size === "number" ? size : undefined}55+ {...props}56+ />57+ )}
- @@ -0,0 +1,14 @@1+"use client";2+3+import { Input as InputPrimitive } from "@base-ui/react/input";4+import type * as React from "react";5+6+import { cn } from "~/lib/utils";7+8+type InputProps = Omit<InputPrimitive.Props & React.RefAttributes<HTMLInputElement>, "size"> & {9+ size?: "sm" | "default" | "lg" | number;10+ unstyled?: boolean;11+ nativeInput?: boolean;12+};13+14+function Input({
- @@ -268,17 +153,5 @@268- }269- return api.git.runStackedAction({ cwd: gitCwd, action });270- },271- onMutate: () => {272- setIsGitMenuOpen(false);273- setGitActionError(null);274- setGitModalError(null);275- },276- onSuccess: async () => {277- await queryClient.invalidateQueries({ queryKey: ["git"] });278- },279- onError: (error) => {280- setGitActionError(error instanceof Error ? error.message : "Git action failed.");281- },282- });153+ const { data: branchList = null } = useQuery(gitBranchesQueryOptions(api, gitCwd));154+ // Default to true while loading so we don't flash init controls.155+ const isRepo = branchList?.isRepo ?? true;283156284- const isGitActionRunning = isGitModalActionRunning || runImmediateGitActionMutation.isPending;157+ const initMutation = useMutation(gitInitMutationOptions({ api, cwd: gitCwd, queryClient }));@@ -0,0 +166,21 @@166+function SelectItem({ className, children, ...props }: SelectPrimitive.Item.Props) {167+ return (168+ <SelectPrimitive.Item169+ className={cn(170+ "grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",171+ className,172+ )}173+ data-slot="select-item"174+ {...props}175+ >176+ <SelectPrimitive.ItemIndicator className="col-start-1">177+ <svg178+ fill="none"179+ height="24"180+ stroke="currentColor"181+ strokeLinecap="round"182+ strokeLinejoin="round"183+ strokeWidth="2"184+ viewBox="0 0 24 24"185+ width="24"186+ xmlns="http://www.w3.org/1500/svg"
juliusmarminge merged this758df83
juliusmarminge closed this
- @@ -0,0 +27,21 @@27+28+ return (29+ <div className="relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64">30+ {startAddon && (31+ <div32+ aria-hidden="true"33+ className="[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4"34+ data-slot="autocomplete-start-addon"35+ >36+ {startAddon}37+ </div>38+ )}39+ <AutocompletePrimitive.Input40+ className={cn(41+ startAddon &&42+ "data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=autocomplete-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(8)-1px)]",43+ sizeValue === "sm"44+ ? "has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-6.5"45+ : "has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-7",46+ className,47+ )}
Sign in to join this conversation.
Note
Reviews paused#
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
reviews.auto_review.auto_pause_after_reviewed_commitssetting.Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.Use the checkboxes below for quick actions:
Walkthrough#
Adds a server-side git pull API and WS method; enriches git status with workingTree stats; updates contracts/NativeApi; adds React Query helpers; implements comprehensive UI primitives, git UI logic, toast system, and related tests.
Changes#
apps/server/src/git.ts,apps/server/src/git.test.ts,apps/server/src/gitManager.tsGitCoreService.pullCurrentBranchand top-levelpullGitBranchexport; status now includesworkingTreewith per-file insertions/deletions; added tests for pull scenarios and upstream-missing error.apps/server/src/wsServer.ts,apps/server/src/wsServer.test.tsWS_METHODS.gitPulltopullGitBranch; added WS-level gitPull tests; updated shell-open handling to support file-manager editors.packages/contracts/src/git.ts,packages/contracts/src/git.test.ts,packages/contracts/src/ipc.ts,packages/contracts/src/ws.tsgitPullInputSchema/gitPullResultSchemaand types; extendedGitStatusResultschema withworkingTree; addedNativeApi.git.pullandWS_METHODS.gitPull; tests updated.apps/web/src/wsNativeApi.ts,apps/web/src/lib/gitReactQuery.tsNativeApi.git.pull(...)wrapper; introduced centralized react-query builders and mutation options for git flows (including pull) with invalidation logic.apps/web/src/components/GitActionsControl.logic.ts,apps/web/src/components/GitActionsControl.logic.test.ts,apps/web/src/components/GitActionsControl.tsx,apps/web/src/components/BranchToolbar.tsx,apps/web/src/components/DiffPanel.tsx,apps/web/src/components/Icons.tsxapps/web/src/components/ui/toast.tsx,apps/web/src/App.tsxapps/web/src/components/ui/...(many files listed in diff)apps/web/src/lib/utils.ts,apps/web/src/index.csscn()utility (cva.cx + twMerge); removed/trimmed multiple CSS custom properties and adjusted body styling.apps/web/components.json,apps/web/package.json,apps/web/tsconfig.json,apps/web/vite.config.tslucide-react; added TS path alias~/*; enabled experimental native plugin and tsconfig path resolution in Vite.apps/web/src/model-logic.ts,packages/contracts/src/model.ts,packages/contracts/src/model.test.tsReasoningEffortandDEFAULT_REASONING; convertedMODEL_OPTIONSto{slug,name}objects, introducedModelSlug, updated normalize/resolve signatures and tests.apps/web/src/components/ChatView.tsx,apps/web/src/components/GitActionsControl.logic.test.tsmultiple
apps/server&apps/webtest files and helpersSequence Diagram(s)#
Estimated code review effort#
🎯 4 (Complex) | ⏱️ ~45 minutes
Possibly related PRs#
🚥 Pre-merge checks | ✅ 2 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (2 passed)
main✨ Finishing touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.