1 | import { GitProject } from "@atomist/automation-client/lib/project/git/GitProject";
|
2 | import { PushFields } from "../../../typings/types";
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare function filesChangedSince(project: GitProject, push: PushFields.Fragment): Promise<string[] | undefined>;
|
11 | export declare type Mod = "added" | "deleted" | "modified" | "renamed";
|
12 | export interface Change {
|
13 | readonly name: string;
|
14 | readonly how: Mod;
|
15 | }
|
16 | export 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 | */
|
28 | export declare function anyFileChangedSuchThat(changedFilePaths: string[], test: (path: string) => boolean): boolean;
|
29 | export declare function anyFileChangedWithExtension(changedFilePaths: string[], extensions: string[]): boolean;
|
30 |
|
\ | No newline at end of file |