@@ -34,6 +34,10 @@ internal PipelineStack(
3434 string id ,
3535 Configuration configuration ,
3636 FrameworkConfiguration frameworkConfiguration ,
37+ string gitHubOwner ,
38+ string gitHubRepository ,
39+ string gitHubBranch ,
40+ string pipelineName ,
3741 IStackProps props = null ) : base ( scope , id , props )
3842 {
3943 var sourceArtifact = new Artifact_ ( ) ;
@@ -47,11 +51,11 @@ internal PipelineStack(
4751
4852 var sourceAction = new GitHubSourceAction ( new GitHubSourceActionProps
4953 {
50- ActionName = configuration . GitHubRepository ,
54+ ActionName = gitHubRepository ,
5155 Output = sourceArtifact ,
52- Owner = configuration . GitHubOwner ,
53- Repo = configuration . GitHubRepository ,
54- Branch = configuration . GitHubBranch ,
56+ Owner = gitHubOwner ,
57+ Repo = gitHubRepository ,
58+ Branch = gitHubBranch ,
5559 Trigger = GitHubTrigger . WEBHOOK ,
5660 OauthToken = SecretValue . SecretsManager ( configuration . GitHubTokenSecretName , new SecretsManagerSecretOptions
5761 {
@@ -62,7 +66,7 @@ internal PipelineStack(
6266 var pipeline = new Pipeline ( this , "CodePipeline" , new PipelineProps
6367 {
6468 PipelineType = PipelineType . V2 ,
65- PipelineName = $ " { Configuration . ProjectName } - { frameworkConfiguration . Framework } " ,
69+ PipelineName = pipelineName ,
6670 RestartExecutionOnUpdate = true ,
6771 Stages =
6872 [
@@ -91,9 +95,9 @@ internal PipelineStack(
9195 } ,
9296 Source = Source . GitHub ( new GitHubSourceProps
9397 {
94- Owner = configuration . GitHubOwner ,
95- Repo = configuration . GitHubRepository ,
96- BranchOrRef = configuration . GitHubBranch
98+ Owner = gitHubOwner ,
99+ Repo = gitHubRepository ,
100+ BranchOrRef = gitHubBranch
97101 } ) ,
98102 EnvironmentVariables = new Dictionary < string , IBuildEnvironmentVariable >
99103 {
@@ -130,9 +134,9 @@ internal PipelineStack(
130134 } ,
131135 Source = Source . GitHub ( new GitHubSourceProps
132136 {
133- Owner = configuration . GitHubOwner ,
134- Repo = configuration . GitHubRepository ,
135- BranchOrRef = configuration . GitHubBranch
137+ Owner = gitHubOwner ,
138+ Repo = gitHubRepository ,
139+ BranchOrRef = gitHubBranch
136140 } ) ,
137141 EnvironmentVariables = new Dictionary < string , IBuildEnvironmentVariable >
138142 {
@@ -174,9 +178,9 @@ internal PipelineStack(
174178 } ,
175179 Source = Source . GitHub ( new GitHubSourceProps
176180 {
177- Owner = configuration . GitHubOwner ,
178- Repo = configuration . GitHubRepository ,
179- BranchOrRef = configuration . GitHubBranch
181+ Owner = gitHubOwner ,
182+ Repo = gitHubRepository ,
183+ BranchOrRef = gitHubBranch
180184 } ) ,
181185 EnvironmentVariables = new Dictionary < string , IBuildEnvironmentVariable >
182186 {
@@ -224,9 +228,9 @@ internal PipelineStack(
224228 } ,
225229 Source = Source . GitHub ( new GitHubSourceProps
226230 {
227- Owner = configuration . GitHubOwner ,
228- Repo = configuration . GitHubRepository ,
229- BranchOrRef = configuration . GitHubBranch
231+ Owner = gitHubOwner ,
232+ Repo = gitHubRepository ,
233+ BranchOrRef = gitHubBranch
230234 } ) ,
231235 EnvironmentVariables = new Dictionary < string , IBuildEnvironmentVariable >
232236 {
@@ -338,9 +342,9 @@ internal PipelineStack(
338342 } ,
339343 Source = Source . GitHub ( new GitHubSourceProps
340344 {
341- Owner = configuration . GitHubOwner ,
342- Repo = configuration . GitHubRepository ,
343- BranchOrRef = configuration . GitHubBranch
345+ Owner = gitHubOwner ,
346+ Repo = gitHubRepository ,
347+ BranchOrRef = gitHubBranch
344348 } ) ,
345349 EnvironmentVariables = new Dictionary < string , IBuildEnvironmentVariable >
346350 {
@@ -387,9 +391,9 @@ internal PipelineStack(
387391 } ,
388392 Source = Source . GitHub ( new GitHubSourceProps
389393 {
390- Owner = configuration . GitHubOwner ,
391- Repo = configuration . GitHubRepository ,
392- BranchOrRef = configuration . GitHubBranch
394+ Owner = gitHubOwner ,
395+ Repo = gitHubRepository ,
396+ BranchOrRef = gitHubBranch
393397 } ) ,
394398 EnvironmentVariables = new Dictionary < string , IBuildEnvironmentVariable >
395399 {
@@ -447,9 +451,9 @@ internal PipelineStack(
447451 } ,
448452 Source = Source . GitHub ( new GitHubSourceProps
449453 {
450- Owner = configuration . GitHubOwner ,
451- Repo = configuration . GitHubRepository ,
452- BranchOrRef = configuration . GitHubBranch
454+ Owner = gitHubOwner ,
455+ Repo = gitHubRepository ,
456+ BranchOrRef = gitHubBranch
453457 } ) ,
454458 EnvironmentVariables = new Dictionary < string , IBuildEnvironmentVariable >
455459 {
0 commit comments