@atomist/sdm-pack-fingerprints
Version:
an Atomist SDM Extension Pack for fingerprinting code
30 lines (29 loc) • 997 B
TypeScript
import { HandlerContext, HandlerResult, ParameterType } from "@atomist/automation-client";
import { CommandHandlerRegistration } from "@atomist/sdm";
import { Aspect, Vote } from "../machine/Aspect";
import { GitCoordinate } from "../support/messages";
export interface MessageMakerParams {
ctx: HandlerContext;
voteResults: {
failed: boolean;
failedVotes: Vote[];
};
msgId: string;
channel: string;
coord: GitCoordinate;
aspects: Aspect[];
}
export declare type MessageMaker = (params: MessageMakerParams) => Promise<HandlerResult>;
interface IgnoreParameters extends ParameterType {
msgId: string;
fingerprints: string;
}
export declare const IgnoreCommandName = "IgnoreFingerprintDiff";
export declare function ignoreCommand(aspects: Aspect[]): CommandHandlerRegistration<IgnoreParameters>;
/**
* Default Message Maker for target fingerprint impact handler
*
* @param params
*/
export declare const messageMaker: MessageMaker;
export {};