Skip to content

Commit

Permalink
update: add log types
Browse files Browse the repository at this point in the history
  • Loading branch information
m2rads committed Oct 17, 2024
1 parent f9cf53e commit 8f6fac0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
12 changes: 1 addition & 11 deletions app/(dashboard)/dashboard/log-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,8 @@ import { useRef, useMemo, useState } from 'react'
import { Loader2, ChevronRight, ChevronDown } from 'lucide-react'
import { getWorkflowLogs } from '@/lib/github'
import useSWR from 'swr'
import { LogViewProps, LogGroup } from './types'

interface LogViewProps {
owner: string;
repo: string;
runId: string | null;
}

interface LogGroup {
id: string;
name: string;
logs: string[];
}

export function LogView({ owner, repo, runId }: LogViewProps) {
const logContainerRef = useRef<HTMLDivElement>(null)
Expand Down
13 changes: 13 additions & 0 deletions app/(dashboard)/dashboard/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,16 @@ export type CommitChangesToPullRequest = (
filesToCommit: TestFile[],
commitMessage: string
) => Promise<string>;


export interface LogViewProps {
owner: string;
repo: string;
runId: string | null;
}

export interface LogGroup {
id: string;
name: string;
logs: string[];
}

0 comments on commit 8f6fac0

Please sign in to comment.