Skip to content

Instantly share code, notes, and snippets.

@ipcrm
Last active February 21, 2019 21:02
Show Gist options
  • Save ipcrm/691f142d29d779717ef1df9d53fa22fa to your computer and use it in GitHub Desktop.
Save ipcrm/691f142d29d779717ef1df9d53fa22fa to your computer and use it in GitHub Desktop.
fingerprints
fingerprintSupport(
fingerprint,
[
{
extract: createNpmDepsFingerprints,
apply: applyNpmDepsFingerprint,
selector: fp => fp.name.startsWith("npm-project-dep"),
summary: diffNpmDepsFingerprints,
},
{
extract: createFileFingerprint(
"tslint.json",
"tsconfig.json"),
apply: applyFileFingerprint,
selector: fp => fp.name.startsWith("file-"),
},
],
checkNpmCoordinatesImpactHandler(),
fingerprintImpactHandler(
{
transformPresentation: (ci, p) => {
return new editModes.PullRequest(
`apply-target-fingerprint-${Date.now()}`,
ci.parameters.title,
`> generated by Atomist \`\`\`${ci.parameters.body}\`\`\``,
undefined,
"master",
{
method: AutoMergeMethod.Squash,
mode: AutoMergeMode.ApprovedReview,
});
},
messageMaker,
},
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment