import { adjustBy , PushScorer , } from "@atomist/sdm-pack-aspect" ; export function fileChangeCount ( opts ) { return { name : "file-change-count" , scorePush : async ( pili ) => ( { score : adjustBy ( pili . filesChanged ? pili . filesChanged . length / opts . limitTo : 0 , 1 ) , } ) , } ; } export function pomChanged ( ) { return { name : "pom-changed" , scorePush : async ( pili ) => ( { score : pili . filesChanged && pili . filesChanged . includes ( "pom.xml" ) ? 5 : 1 , } ) , } ; }