@flit/cdk-pipeline 2.3.0 → 2.4.0
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 +20 -35
- package/dist/artifact.js +1 -1
- package/dist/code-commit-source-segment.d.ts +0 -1
- package/dist/code-commit-source-segment.js +8 -4
- package/dist/code-star-source-segment.js +2 -2
- package/dist/git-hub-source-segment.js +2 -2
- 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 +2 -2
- 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 +5 -4
package/package.json
CHANGED
|
@@ -11,7 +11,6 @@ import { SegmentConstructed } from "./segment";
|
|
|
11
11
|
import { SourceSegment, SourceSegmentProps } from "./source-segment";
|
|
12
12
|
|
|
13
13
|
export interface CodeCommitSourceSegmentProps extends SourceSegmentProps {
|
|
14
|
-
readonly repositoryName: string;
|
|
15
14
|
readonly repositoryArn: string;
|
|
16
15
|
readonly branch?: string;
|
|
17
16
|
readonly trigger?: CodeCommitTrigger;
|
|
@@ -28,9 +27,11 @@ export class CodeCommitSourceSegment extends SourceSegment {
|
|
|
28
27
|
this.props = props;
|
|
29
28
|
}
|
|
30
29
|
construct(scope: Pipeline): SegmentConstructed {
|
|
31
|
-
const name = `${this.props.
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
const name = `${this.props.repositoryArn
|
|
31
|
+
.trim()
|
|
32
|
+
.replace(/\/+$/, "")
|
|
33
|
+
.split(":")
|
|
34
|
+
.pop()}-${this.props.branch || "master"}`;
|
|
34
35
|
|
|
35
36
|
return new CodeCommitSourceSegmentConstructed(scope, name, {
|
|
36
37
|
...this.props,
|