orlovedev/or-release

View on GitHub
src/pure/loggers/log-changes.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { LogFunction } from '../../utils/logger'
import type { IAppCtx } from '../../types/app-ctx'

interface IDeps {
    logInfo: LogFunction
}

type Ctx = Pick<IAppCtx, 'commitList'>

export const logChanges = ({ logInfo }: IDeps) => ({ commitList }: Ctx) =>
    logInfo`Changes found since previous version: ${({ g }) => g(commitList.length)}`