1 | import { PredicatePushTest, PushTest } from "../PushTest";
|
2 | export declare const ToDefaultBranch: PushTest;
|
3 | /**
|
4 | * Is this a push originated by Atomist? Note that we can't look at the committer,
|
5 | * as if a user invoked a command handler, their credentials will be used
|
6 | * @param {PushListenerInvocation} p
|
7 | * @return {boolean}
|
8 | * @constructor
|
9 | */
|
10 | export declare const FromAtomist: PushTest;
|
11 | /**
|
12 | * Match on any push
|
13 | * @param {PushListenerInvocation} p
|
14 | * @constructor
|
15 | */
|
16 | export declare const AnyPush: PushTest;
|
17 | /**
|
18 | * Return a PushTest testing for the existence of the given file
|
19 | * @param {string} path
|
20 | * @return {PushTest}
|
21 | */
|
22 | export declare function hasFile(path: string): PredicatePushTest;
|
23 | /**
|
24 | * PushTest that returns true if project is non empty
|
25 | * @type {PredicatePushTest}
|
26 | */
|
27 | export declare const NonEmpty: PredicatePushTest;
|
28 | /**
|
29 | * Is there at least one file with the given extension?
|
30 | * @param {string} extension
|
31 | * @return {PredicatePushTest}
|
32 | */
|
33 | export declare function hasFileWithExtension(extension: string): PredicatePushTest;
|
34 | /**
|
35 | * Is this push to a non-default branch that has an open pull request?
|
36 | */
|
37 | export declare const IsPushToBranchWithPullRequest: PushTest;
|
38 | /**
|
39 | * Return a push test that matches the repository owner/repo slug
|
40 | * against regular expression.
|
41 | * @param re Regular expression to match against using RegExp.test()
|
42 | * @return Push test performing the match
|
43 | */
|
44 | export declare function isRepo(re: RegExp): PushTest;
|
45 | /**
|
46 | * Return a push test that matches the repository branch
|
47 | * against regular expression.
|
48 | * @param re Regular expression to match against using RegExp.test()
|
49 | * @return Push test performing the match
|
50 | */
|
51 | export declare function isBranch(re: RegExp): PushTest;
|
52 | /**
|
53 | * Return a PushTest testing for the existence of the given file containing the pattern
|
54 | * @param {string} path
|
55 | * @param pattern regex to look for
|
56 | * @return {PushTest}
|
57 | */
|
58 | export declare function hasFileContaining(pattern: string | string[], content?: RegExp): PushTest;
|
59 | /**
|
60 | * Return a PushTest that checks if a certain resource provider exists in the graph
|
61 | */
|
62 | export declare function hasResourceProvider(type: "docker" | "npm" | "maven2", name?: string): PushTest;
|
63 | //# sourceMappingURL=commonPushTests.d.ts.map |
\ | No newline at end of file |