Last active
February 21, 2019 21:02
-
-
Save ipcrm/691f142d29d779717ef1df9d53fa22fa to your computer and use it in GitHub Desktop.
fingerprints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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