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

Function processChangedFiles

scripts/validate-changesets.ts:902–916  ·  view source on GitHub ↗
(
  changedFiles: readonly string[],
  changesets: readonly ChangesetInfoInternal[],
  packages: readonly PackageInternal[],
  rootDir: string
)

Source from the content-addressed store, hash-verified

900 });
901
902const processChangedFiles = (
903 changedFiles: readonly string[],
904 changesets: readonly ChangesetInfoInternal[],
905 packages: readonly PackageInternal[],
906 rootDir: string
907) =>
908 pipe(
909 hasCodeChanges(changedFiles, packages, rootDir),
910 Effect.flatMap((hasChanges) =>
911 Effect.if(hasChanges, {
912 onTrue: () => validateCodeChanges(changedFiles, changesets, packages, rootDir),
913 onFalse: () => handleNoCodeChanges(changedFiles, changesets),
914 })
915 )
916 );
917
918const handleChangedFiles = (
919 changedFiles: readonly string[],

Callers 1

handleChangedFilesFunction · 0.85

Calls 3

hasCodeChangesFunction · 0.85
validateCodeChangesFunction · 0.85
handleNoCodeChangesFunction · 0.85

Tested by

no test coverage detected