@atomist/sdm
Version:
Atomist Software Delivery Machine SDK
30 lines • 1.25 kB
TypeScript
import { GitProject } from "@atomist/automation-client/lib/project/git/GitProject";
import { PushFields } from "../../../typings/types";
/**
* Use git to list the files changed since the given sha
* or undefined if we cannot determine it
* @param {GitProject} project
* @param {PushFields.Fragment} push
* @return {Promise<string[]>}
*/
export declare function filesChangedSince(project: GitProject, push: PushFields.Fragment): Promise<string[] | undefined>;
export declare type Mod = "added" | "deleted" | "modified" | "renamed";
export interface Change {
readonly name: string;
readonly how: Mod;
}
export declare class Rename implements Change {
name: string;
newName: string;
readonly how: Mod;
constructor(name: string, newName: string);
}
/**
* Does a file satisfying this text exist within the set of changed files?
* @param {string[]} changedFilePaths
* @param {string[]} test test for the file change
* @return {boolean}
*/
export declare function anyFileChangedSuchThat(changedFilePaths: string[], test: (path: string) => boolean): boolean;
export declare function anyFileChangedWithExtension(changedFilePaths: string[], extensions: string[]): boolean;
//# sourceMappingURL=filesChangedSince.d.ts.map