@flit/cdk-pipeline 1.2.1 → 1.2.3
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/.jsii +52 -52
- package/dist/artifact.js +1 -1
- package/dist/code-commit-source-segment.js +6 -5
- package/dist/code-star-source-segment.js +6 -5
- package/dist/git-hub-source-segment.js +6 -5
- package/dist/pipeline-segment.js +2 -2
- package/dist/pipeline.js +1 -1
- package/dist/publish-assets-action.js +1 -1
- package/dist/s3-source-segment.js +6 -5
- package/dist/segment.js +2 -2
- package/dist/source-segment.js +1 -1
- package/dist/stack-segment.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/code-commit-source-segment.ts +4 -2
- package/src/code-star-source-segment.ts +6 -4
- package/src/git-hub-source-segment.ts +6 -4
- package/src/s3-source-segment.ts +4 -2
package/package.json
CHANGED
|
@@ -27,12 +27,14 @@ export class CodeCommitSourceSegment extends SourceSegment {
|
|
|
27
27
|
this.props = props;
|
|
28
28
|
}
|
|
29
29
|
construct(scope: Pipeline): SegmentConstructed {
|
|
30
|
+
const name = `${this.props.repository}/${this.props.branch || "master"}`;
|
|
31
|
+
|
|
30
32
|
return new CodeCommitSourceSegmentConstructed(
|
|
31
33
|
scope,
|
|
32
|
-
|
|
34
|
+
name.replace("/", "-"),
|
|
33
35
|
{
|
|
34
36
|
...this.props,
|
|
35
|
-
actionName:
|
|
37
|
+
actionName: name,
|
|
36
38
|
},
|
|
37
39
|
);
|
|
38
40
|
}
|
|
@@ -43,11 +43,13 @@ export class CodeStarSourceSegment extends SourceSegment {
|
|
|
43
43
|
this.props = props;
|
|
44
44
|
}
|
|
45
45
|
construct(scope: Pipeline): SegmentConstructed {
|
|
46
|
-
|
|
46
|
+
const name = `${this.props.owner}/${this.props.repository}/${
|
|
47
|
+
this.props.branch || "master"
|
|
48
|
+
}`;
|
|
49
|
+
|
|
50
|
+
return new CodeStarSourceSegmentConstructed(scope, name.replace("/", "-"), {
|
|
47
51
|
...this.props,
|
|
48
|
-
actionName:
|
|
49
|
-
this.props.branch || "master"
|
|
50
|
-
}`,
|
|
52
|
+
actionName: name,
|
|
51
53
|
repo: this.props.repository,
|
|
52
54
|
});
|
|
53
55
|
}
|
|
@@ -41,11 +41,13 @@ export class GitHubSourceSegment extends SourceSegment {
|
|
|
41
41
|
this.props = props;
|
|
42
42
|
}
|
|
43
43
|
construct(scope: Pipeline): SegmentConstructed {
|
|
44
|
-
|
|
44
|
+
const name = `${this.props.owner}/${this.props.repository}/${
|
|
45
|
+
this.props.branch || "master"
|
|
46
|
+
}`;
|
|
47
|
+
|
|
48
|
+
return new GitHubSourceSegmentConstructed(scope, name.replace("/", "-"), {
|
|
45
49
|
...this.props,
|
|
46
|
-
actionName:
|
|
47
|
-
this.props.branch || "master"
|
|
48
|
-
}`,
|
|
50
|
+
actionName: name,
|
|
49
51
|
repo: this.props.repository,
|
|
50
52
|
});
|
|
51
53
|
}
|
package/src/s3-source-segment.ts
CHANGED
|
@@ -29,9 +29,11 @@ export class S3SourceSegment extends SourceSegment {
|
|
|
29
29
|
this.props = props;
|
|
30
30
|
}
|
|
31
31
|
construct(scope: Pipeline): SegmentConstructed {
|
|
32
|
-
|
|
32
|
+
const name = `${this.props.bucket}/${this.props.bucketKey}`;
|
|
33
|
+
|
|
34
|
+
return new S3SourceSegmentConstructed(scope, name.replace("/", "-"), {
|
|
33
35
|
...this.props,
|
|
34
|
-
actionName:
|
|
36
|
+
actionName: name,
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
39
|
}
|