UNPKG

@curvenote/cli

Version:
13 lines (12 loc) 350 B
import { getGitRepoInfo } from '../submissions/utils.git.js'; export * from './types.js'; export async function addSourceToLogs(logs) { const gitInfo = await getGitRepoInfo(); logs.source = { repo: gitInfo?.repo, branch: gitInfo?.branch, path: gitInfo?.path, commit: gitInfo?.commit, }; return logs; }