@firestartr/cli 2.11.0-snapshot-import-filter-fix-2 → 2.11.0-snapshot-feature-git-traceability-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +803 -263
- package/build/packages/cdk8s_renderer/src/claims/github/repositoryFeature.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/refresolver/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/renderer/import-renderer.d.ts +5 -0
- package/build/packages/features_preparer/src/installer.d.ts +4 -0
- package/build/packages/features_renderer/src/auxiliar.d.ts +11 -0
- package/build/packages/github/index.d.ts +1 -1
- package/build/packages/github/src/check_run.d.ts +12 -0
- package/build/packages/github/src/with_profile.d.ts +2 -1
- package/build/packages/importer/src/decanter/collections.d.ts +1 -1
- package/build/packages/importer/src/decanter/gh/github_org_settings_collection.d.ts +1 -2
- package/build/packages/operator/src/user-feedback-ops/user-feedback-ops.d.ts +24 -0
- package/build/packages/terraform_provisioner/src/debug.d.ts +3 -0
- package/build/packages/terraform_provisioner/src/project_tf.d.ts +2 -2
- package/package.json +1 -1
|
@@ -16,6 +16,9 @@ export interface IGithubRepositoryFeatureClaim extends IClaim {
|
|
|
16
16
|
version?: string;
|
|
17
17
|
ref?: string;
|
|
18
18
|
repo?: string;
|
|
19
|
+
sha?: string;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
url?: string;
|
|
19
22
|
};
|
|
20
23
|
repositoryTarget: FirestartrGithubRepositoryFeatureSpecRepositoryTarget;
|
|
21
24
|
files: Array<IGithubRepositoryFeatureFileClaim>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { RenderClaims } from './types';
|
|
2
2
|
export declare function renderFromImports(rClaims: RenderClaims, crs?: any, catalogOutputDir?: string, crOutputDir?: string, needsReImport?: boolean): Promise<any>;
|
|
3
|
+
export declare function buildPreviousClaimsIndex(crs: any): {
|
|
4
|
+
user: Map<string, string>;
|
|
5
|
+
group: Map<string, string>;
|
|
6
|
+
};
|
|
7
|
+
export declare function buildPreviousClaimsSymbols(crs: any): Record<string, any>;
|
|
@@ -2,5 +2,9 @@ export declare function getFeatureConfigFromRef(featureName: string, featureRef:
|
|
|
2
2
|
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
|
3
3
|
export declare function getFeatureConfig(featureName: string, version: string, featureOwner: any, // -> cr
|
|
4
4
|
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
|
5
|
+
export declare function resolveFeatureCommit(owner: string, repo: string, reference: string): Promise<{
|
|
6
|
+
sha: string;
|
|
7
|
+
tags: string[];
|
|
8
|
+
}>;
|
|
5
9
|
export declare function prepareFeature(featureName: string, version: string, repo?: string, owner?: string): Promise<void>;
|
|
6
10
|
export declare function downloadFeatureZip(repo: string, featureName: string, reference: string, owner?: string): Promise<string>;
|
|
@@ -19,9 +19,20 @@ export interface ExpectedFile {
|
|
|
19
19
|
targetBranch: string;
|
|
20
20
|
userManaged: boolean;
|
|
21
21
|
}
|
|
22
|
+
export interface Traceability {
|
|
23
|
+
owner?: string;
|
|
24
|
+
repo?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
version?: string;
|
|
27
|
+
ref?: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
sha?: string;
|
|
30
|
+
tags?: string[];
|
|
31
|
+
}
|
|
22
32
|
export interface ExpectedOutput {
|
|
23
33
|
files: ExpectedFile[];
|
|
24
34
|
patches: unknown[];
|
|
35
|
+
traceability?: Traceability;
|
|
25
36
|
}
|
|
26
37
|
export interface RenderTest {
|
|
27
38
|
name: string;
|
|
@@ -12,6 +12,15 @@ export interface GithubCheckRunParams {
|
|
|
12
12
|
pullNumber?: number;
|
|
13
13
|
includeCheckRunComment?: boolean;
|
|
14
14
|
checkRunComment?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional shared sticky base kind for this check run's sticky PR
|
|
17
|
+
* comment. When set, progress upserts use this base kind (instead of
|
|
18
|
+
* the default `check-run:<name>`) and `close()` performs no sticky
|
|
19
|
+
* rewrite, so an external result publisher targeting the same base
|
|
20
|
+
* kind is always the last word. When unset, legacy behavior is
|
|
21
|
+
* unchanged.
|
|
22
|
+
*/
|
|
23
|
+
stickyCommentBaseKind?: string;
|
|
15
24
|
}
|
|
16
25
|
export declare class GithubCheckRun {
|
|
17
26
|
private readonly octokit;
|
|
@@ -24,6 +33,7 @@ export declare class GithubCheckRun {
|
|
|
24
33
|
private readonly pullNumber?;
|
|
25
34
|
private readonly includeCheckRunComment;
|
|
26
35
|
private readonly checkRunComment?;
|
|
36
|
+
private readonly stickyCommentBaseKind?;
|
|
27
37
|
private hasCommented;
|
|
28
38
|
private creatingPromise?;
|
|
29
39
|
private closing;
|
|
@@ -72,6 +82,7 @@ export declare function createCheckRunForOrg(org: string, owner: string, repo: s
|
|
|
72
82
|
summary?: string;
|
|
73
83
|
includeCheckRunComment?: boolean;
|
|
74
84
|
checkRunComment?: string;
|
|
85
|
+
stickyCommentBaseKind?: string;
|
|
75
86
|
}): Promise<GithubCheckRun>;
|
|
76
87
|
export declare function createCheckRun(owner: string, repo: string, name: string, opts?: {
|
|
77
88
|
headSHA?: string;
|
|
@@ -81,5 +92,6 @@ export declare function createCheckRun(owner: string, repo: string, name: string
|
|
|
81
92
|
summary?: string;
|
|
82
93
|
includeCheckRunComment?: boolean;
|
|
83
94
|
checkRunComment?: string;
|
|
95
|
+
stickyCommentBaseKind?: string;
|
|
84
96
|
}): Promise<GithubCheckRun>;
|
|
85
97
|
export declare const CheckRun: typeof GithubCheckRun;
|
|
@@ -25,7 +25,7 @@ export declare function withProfile(profileName: string): {
|
|
|
25
25
|
};
|
|
26
26
|
repo: {
|
|
27
27
|
addStatusCheck: (output: any, isFailure: boolean, headSha: string, name: string, status: string, repoName: string, owner: string) => Promise<void>;
|
|
28
|
-
addCommitStatus: (state: "error" | "
|
|
28
|
+
addCommitStatus: (state: "error" | "pending" | "failure" | "success", sha: string, repoName: string, owner: string, targetUrl?: string, description?: string, context?: string) => Promise<void>;
|
|
29
29
|
listReleases: (repoName: string, owner: string) => Promise<{
|
|
30
30
|
url: string;
|
|
31
31
|
html_url: string;
|
|
@@ -884,6 +884,7 @@ export declare function withProfile(profileName: string): {
|
|
|
884
884
|
summary?: string;
|
|
885
885
|
includeCheckRunComment?: boolean;
|
|
886
886
|
checkRunComment?: string;
|
|
887
|
+
stickyCommentBaseKind?: string;
|
|
887
888
|
}) => Promise<import("./check_run").GithubCheckRun>;
|
|
888
889
|
CheckRun: typeof import("./check_run").GithubCheckRun;
|
|
889
890
|
upsertMultiPartStickyComments: typeof upsertMultiPartStickyComments;
|
|
@@ -8,7 +8,7 @@ export declare class CollectionMixins {
|
|
|
8
8
|
FILTER_BY_NAME_APPLY(filters: any[], kind: string, fn: Function): any;
|
|
9
9
|
FILTER_BY_REGEXP_APPLY(filters: any[], kind: string, fn: Function): any;
|
|
10
10
|
FILTER_BY_FUNCTION_APPLY(filters: any[], kind: string, fn: Function): any;
|
|
11
|
-
filter(kind: string, filters: any[], elementList: any[]): Promise<any
|
|
11
|
+
filter(kind: string, filters: any[], elementList: any[]): Promise<any>;
|
|
12
12
|
}
|
|
13
13
|
export interface ICollection extends CollectionMixins {
|
|
14
14
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import OrgSettingsGithubDecanter from './github_org_settings';
|
|
2
1
|
import { ICollection } from '../collections';
|
|
3
2
|
import { CollectionFilter } from '../filters';
|
|
4
3
|
import { GithubDecanter } from './base';
|
|
5
4
|
declare class OrgSettingsCollectionGithubDecanter extends GithubDecanter {
|
|
6
5
|
static collectionKind: string;
|
|
7
|
-
collection(filters?: CollectionFilter[]): Promise<
|
|
6
|
+
collection(filters?: CollectionFilter[]): Promise<any>;
|
|
8
7
|
}
|
|
9
8
|
interface OrgSettingsCollectionGithubDecanter extends ICollection {
|
|
10
9
|
}
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal shape of a CR the apply progress comment needs: its kind and
|
|
3
|
+
* its resource name.
|
|
4
|
+
*/
|
|
5
|
+
interface ProgressCommentResource {
|
|
6
|
+
kind: string;
|
|
7
|
+
metadata?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Single builder of the sticky base kind shared by the apply progress
|
|
13
|
+
* comment (upserted by the check run while the operation runs) and the
|
|
14
|
+
* final result publisher (which updates that same comment in place).
|
|
15
|
+
* Keyed per resource so claims of the same kind never overwrite each
|
|
16
|
+
* other's feedback.
|
|
17
|
+
*/
|
|
18
|
+
export declare function progressCommentBaseKind(cmd: string, item: ProgressCommentResource): string;
|
|
19
|
+
/**
|
|
20
|
+
* Body of the apply progress comment. The check-run module appends the
|
|
21
|
+
* `[here](<check-run-url>)` link to it.
|
|
22
|
+
*/
|
|
23
|
+
export declare function progressCommentText(cmd: string, item: ProgressCommentResource): string;
|
|
1
24
|
export declare function tryPublishApply(item: any, planOutput: string, isSuccess?: boolean, exitCode?: number): Promise<void>;
|
|
2
25
|
export declare function tryPublishDestroy(item: any, destroyOutput: string, isSuccess?: boolean): Promise<void>;
|
|
3
26
|
export declare function publishApply(item: any, applyOutput: string, isSuccess?: boolean): Promise<void>;
|
|
@@ -10,3 +33,4 @@ export declare function extractPrInfo(item: any, annotation?: 'firestartr.dev/la
|
|
|
10
33
|
export declare function tryPublishError(item: any, reason: string, message: string): Promise<void>;
|
|
11
34
|
export declare function publishError(item: any, reason: string, message: string): Promise<void>;
|
|
12
35
|
export declare function publishPlan(item: any, planOutput: string, prNumber: number, repo: string, org: string, isSuccess?: boolean, operation?: string, source?: string): Promise<void>;
|
|
36
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { WriterAdditionalFiles } from './writer_additional_files';
|
|
2
3
|
import { WriterMainTf } from './writer_main_tf';
|
|
3
|
-
import { WriterTfVarsJson } from './writer_tfvars_json';
|
|
4
4
|
import { WriterProviderJson } from './writer_provider_tf_json';
|
|
5
|
-
import {
|
|
5
|
+
import { WriterTfVarsJson } from './writer_tfvars_json';
|
|
6
6
|
import { PassThrough } from 'stream';
|
|
7
7
|
import type { ProcessHandler } from './process_handler';
|
|
8
8
|
export declare class TFProjectManager {
|