@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flit/cdk-pipeline",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
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",
@@ -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
- this.props.repository.repositoryName,
34
+ name.replace("/", "-"),
33
35
  {
34
36
  ...this.props,
35
- actionName: `${this.props.repository}/${this.props.branch || "master"}`,
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
- return new CodeStarSourceSegmentConstructed(scope, this.props.repository, {
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: `${this.props.owner}/${this.props.repository}/${
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
- return new GitHubSourceSegmentConstructed(scope, this.props.repository, {
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: `${this.props.owner}/${this.props.repository}/${
47
- this.props.branch || "master"
48
- }`,
50
+ actionName: name,
49
51
  repo: this.props.repository,
50
52
  });
51
53
  }
@@ -29,9 +29,11 @@ export class S3SourceSegment extends SourceSegment {
29
29
  this.props = props;
30
30
  }
31
31
  construct(scope: Pipeline): SegmentConstructed {
32
- return new S3SourceSegmentConstructed(scope, this.props.bucket.bucketName, {
32
+ const name = `${this.props.bucket}/${this.props.bucketKey}`;
33
+
34
+ return new S3SourceSegmentConstructed(scope, name.replace("/", "-"), {
33
35
  ...this.props,
34
- actionName: `${this.props.bucket}/${this.props.bucketKey}`,
36
+ actionName: name,
35
37
  });
36
38
  }
37
39
  }