UNPKG

1.01 kBTypeScriptView Raw
1import { ProjectOperationCredentials } from "@atomist/automation-client/lib/operations/common/ProjectOperationCredentials";
2import { RepoFilter } from "@atomist/automation-client/lib/operations/common/repoFilter";
3import { RemoteRepoRef } from "@atomist/automation-client/lib/operations/common/RepoId";
4import { ValidationError, ValidationResult } from "@atomist/automation-client/lib/SmartParameters";
5/**
6 * Defines repo targeting for a code inspection or transform
7 */
8export interface RepoTargets {
9 /**
10 * Single repo ref we're targeting if there is one
11 */
12 repoRef: RemoteRepoRef;
13 credentials: ProjectOperationCredentials;
14 /**
15 * Is this repo eligible
16 * @param {RemoteRepoRef} id
17 * @return {boolean}
18 */
19 test: RepoFilter;
20 /**
21 * Optional method to populate and validate
22 */
23 bindAndValidate(): ValidationResult;
24}
25export declare function isValidationError(vr: ValidationResult): vr is ValidationError;
26//# sourceMappingURL=RepoTargets.d.ts.map
\No newline at end of file