Skip to content

feat: add pipelineName option to prevent monorepo workflow collisions#182

Open
hoegertn wants to merge 4 commits intomainfrom
claude/add-pipeline-name-option-Bcrn0
Open

feat: add pipelineName option to prevent monorepo workflow collisions#182
hoegertn wants to merge 4 commits intomainfrom
claude/add-pipeline-name-option-Bcrn0

Conversation

@hoegertn
Copy link
Contributor

Summary

  • Adds a pipelineName option to CDKPipelineOptions and DriftDetectionWorkflowOptions that acts as a namespace prefix for all repo-global identifiers (workflow files, artifact names, concurrency groups, and GitLab job names)
  • When a project has a parent (monorepo subproject), pipelineName defaults to the project name; for standalone projects, no prefix is applied — fully backward compatible
  • Prefixes are applied consistently across GitHub workflows, GitLab CI jobs, artifact names, and concurrency groups in all pipeline types (GitHub, GitLab) and drift detection workflows

Test plan

  • All 172 existing tests pass with no snapshot changes, confirming backward compatibility for standalone projects
  • Verify in a monorepo setup that two subprojects generate distinct workflow files (e.g. backend-deploy.yml and frontend-deploy.yml)
  • Verify pipelineName can be explicitly overridden to a custom value
  • Verify GitLab CI job names are correctly prefixed and cross-references (needs/extends) are consistent

https://claude.ai/code/session_01BLsobs9698wX9PPEBx6wBK

…onorepos

Add a `pipelineName` option to `CDKPipelineOptions` and
`DriftDetectionWorkflowOptions` that acts as a namespace prefix for all
repo-global identifiers (workflow files, artifact names, concurrency
groups, and GitLab job names).

When a project has a parent (monorepo subproject), pipelineName defaults
to the project name. For standalone projects, no prefix is applied,
preserving full backward compatibility.

https://claude.ai/code/session_01BLsobs9698wX9PPEBx6wBK
@github-actions github-actions bot requested a review from Lock128 March 25, 2026 19:37
github-actions bot and others added 2 commits March 25, 2026 19:38
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Move the namePrefix after the leading dot (e.g. `.backend-aws_base`)
so GitLab still treats these jobs as hidden templates.

https://claude.ai/code/session_01BLsobs9698wX9PPEBx6wBK
@hoegertn hoegertn enabled auto-merge March 25, 2026 23:08
…ift detection

- GitHub: verify prefixed workflow files, artifact names, and concurrency groups
- GitLab: verify prefixed job names and hidden job dot-prefix preservation
- Drift detection: verify prefixed workflow/artifact names (GitHub) and job names (GitLab)
- Standalone projects: verify no prefix is applied without parent or explicit pipelineName

https://claude.ai/code/session_01BLsobs9698wX9PPEBx6wBK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants