UNPKG

1.25 kBTypeScriptView Raw
1import { GitProject } from "@atomist/automation-client/lib/project/git/GitProject";
2import { PushFields } from "../../../typings/types";
3/**
4 * Use git to list the files changed since the given sha
5 * or undefined if we cannot determine it
6 * @param {GitProject} project
7 * @param {PushFields.Fragment} push
8 * @return {Promise<string[]>}
9 */
10export declare function filesChangedSince(project: GitProject, push: PushFields.Fragment): Promise<string[] | undefined>;
11export declare type Mod = "added" | "deleted" | "modified" | "renamed";
12export interface Change {
13 readonly name: string;
14 readonly how: Mod;
15}
16export declare class Rename implements Change {
17 name: string;
18 newName: string;
19 readonly how: Mod;
20 constructor(name: string, newName: string);
21}
22/**
23 * Does a file satisfying this text exist within the set of changed files?
24 * @param {string[]} changedFilePaths
25 * @param {string[]} test test for the file change
26 * @return {boolean}
27 */
28export declare function anyFileChangedSuchThat(changedFilePaths: string[], test: (path: string) => boolean): boolean;
29export declare function anyFileChangedWithExtension(changedFilePaths: string[], extensions: string[]): boolean;
30//# sourceMappingURL=filesChangedSince.d.ts.map
\No newline at end of file