UNPKG

973 BTypeScriptView Raw
1import { PushTest } from "../../api/mapping/PushTest";
2/**
3 * Options to pass to the IsMaterialChange push test
4 */
5export interface MaterialChangeOptions {
6 /**
7 * File extensions to watch for
8 */
9 extensions?: string[];
10 /**
11 * File paths to watch for
12 */
13 files?: string[];
14 /**
15 * Directory paths to watch for
16 * Note: This matches on subdirectories
17 */
18 directories?: string[];
19 /**
20 * Glob patters to watch for
21 */
22 globs?: string[];
23}
24/**
25 * Check if a Push represents a material change.
26 *
27 * Material changes are changes to files that should trigger certain activity
28 * or goals. Often simple changes to MD or html files should not trigger a full CI/CD process.
29 */
30export declare function isMaterialChange(options?: MaterialChangeOptions): PushTest;
31export declare function anyFileChanged(options: MaterialChangeOptions, changedFiles: string[]): boolean;
32//# sourceMappingURL=materialChangeTest.d.ts.map
\No newline at end of file