1 | import { AnyOptions } from "@atomist/automation-client";
|
2 | import { SoftwareDeliveryMachineConfiguration } from "@atomist/sdm";
|
3 | /**
|
4 | * Configuration determining how to run in local mode
|
5 | */
|
6 | export interface LocalSoftwareDeliveryMachineOptions {
|
7 | /**
|
8 | * Base of expanded directory tree the local client will work with:
|
9 | * The projects the SDM can operate on. Defaulting rule handled in
|
10 | * sdm-local.
|
11 | * Under this we find /<org>/<repo>
|
12 | */
|
13 | repositoryOwnerParentDirectory?: string;
|
14 | /**
|
15 | * Use local seeds (in whatever git state) vs cloning if possible?
|
16 | * Default will be true
|
17 | */
|
18 | preferLocalSeeds?: boolean;
|
19 | /**
|
20 | * Whether to merge autofixes automatically
|
21 | */
|
22 | mergeAutofixes?: boolean;
|
23 | /**
|
24 | * Whether to merge pull request branches automatically.
|
25 | * For instance, if you run a BuildAwareTransform (like Upgrade Spring Boot in the spring seed SDM),
|
26 | * it'll make a branch and then run the build on it; when the build passes,
|
27 | * the SDM will commit the change into your default branch in your working directory.
|
28 | */
|
29 | mergePullRequests?: boolean;
|
30 | /**
|
31 | * Name of host to use for creating local url
|
32 | */
|
33 | hostname?: string;
|
34 | }
|
35 | /**
|
36 | * Configuration that takes SoftwareDeliveryMachineOptions inside the sdm key.
|
37 | */
|
38 | export interface LocalSoftwareDeliveryMachineConfiguration extends SoftwareDeliveryMachineConfiguration {
|
39 | local: LocalSoftwareDeliveryMachineOptions & AnyOptions;
|
40 | }
|