@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flit/cdk-pipeline",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "A highly customizable and extensible CI/CD pipeline intended as alternative to CDK's native CodePipeline",
5
5
  "keywords": [
6
6
  "aws",
@@ -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.repositoryName}-${
32
- this.props.branch || "master"
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,