Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pack/node/pushtest/materialChangeToNodeRepo"

Index

Variables

Const FilesToWatch

FilesToWatch: string[] = ["Dockerfile"]

Const FilesWithExtensionToWatch

FilesWithExtensionToWatch: string[] = ["js", "ts", "json", "yml", "xml", "html", "graphql", "jsx", "tsx", "sh"]

Const MaterialChangeToNodeRepo

MaterialChangeToNodeRepo: PushTest = pushTest("Material change to Node repo", async pci => {const changedFiles = await filesChangedSince(pci.project, pci.push);if (!changedFiles) {logger.info("Cannot determine if change is material on %j: can't enumerate changed files", pci.id);return true;}logger.debug(`MaterialChangeToNodeRepo: Changed files are [${changedFiles.join(",")}]`);if (anyFileChangedWithExtension(changedFiles, FilesWithExtensionToWatch) ||anyFileChangedSuchThat(changedFiles, path => FilesToWatch.some(f => path === f))) {logger.debug("Change is material on %j: changed files=[%s]", pci.id, changedFiles.join(","));return true;}logger.debug("Change is immaterial on %j: changed files=[%s]", pci.id, changedFiles.join(","));return false;})

Veto if change to deployment unit doesn't seem important enough to build and deploy

Generated using TypeDoc