MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / showChangedFilesList

Function showChangedFilesList

scripts/validate-changesets.ts:836–848  ·  view source on GitHub ↗
(changedFiles: readonly string[])

Source from the content-addressed store, hash-verified

834 );
835
836const showChangedFilesList = (changedFiles: readonly string[]) => (terminal: Terminal.Terminal) => {
837 const filesToShow = changedFiles
838 .filter((f) => !f.startsWith('.changeset/') || f === '.changeset/config.json')
839 .slice(0, 10);
840 const moreFilesMessage =
841 changedFiles.length > 10 ? ` ... and ${changedFiles.length - 10} more files\n\n` : '\n';
842 return pipe(
843 terminal,
844 (t) => t.display('📝 Code changes detected in:\n'),
845 Effect.andThen(displayFileList(terminal, filesToShow)),
846 Effect.andThen(terminal.display(moreFilesMessage))
847 );
848};
849
850const validateWithNoChangesets = (
851 changedFiles: readonly string[],

Callers 1

validateCodeChangesFunction · 0.85

Calls 1

displayFileListFunction · 0.85

Tested by

no test coverage detected