Skip to content

feat: component references and automatic dependency tracking#2656

Open
ryanfaircloth wants to merge 1 commit intogoogleapis:mainfrom
ryanfaircloth:feat/component-dependency-tracking
Open

feat: component references and automatic dependency tracking#2656
ryanfaircloth wants to merge 1 commit intogoogleapis:mainfrom
ryanfaircloth:feat/component-dependency-tracking

Conversation

@ryanfaircloth
Copy link

@ryanfaircloth ryanfaircloth commented Jan 18, 2026

This adds support for component references in extra-files, allowing files to be updated with versions from other components in the monorepo. Also implements automatic dependency tracking that bumps dependent components when their dependencies change.

Features:

  • Component references in extra-files (component field)
  • Template formatting with {{version}}, {{major}}, {{minor}}, {{patch}}, {{prerelease}}, {{component}}
  • Automatic dependency tracking with bumpDependents option
  • Dependency notes in PR bodies
  • Templated updaters for JSON, YAML, TOML, XML
  • Complete versionsMap passed to strategies

This is particularly useful for Helm charts that reference container image versions, or any scenario where components depend on versions from other components but need independent versioning.

Tests: All 1079 tests passing

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes: #2655

This adds support for component references in extra-files, allowing
files to be updated with versions from other components in the monorepo.
Also implements automatic dependency tracking that bumps dependent
components when their dependencies change.

Features:
- Component references in extra-files (component field)
- Template formatting with {{version}}, {{major}}, {{minor}}, {{patch}}, {{prerelease}}, {{component}}
- Automatic dependency tracking with bumpDependents option
- Dependency notes in PR bodies
- Templated updaters for JSON, YAML, TOML, XML
- Complete versionsMap passed to strategies

This is particularly useful for Helm charts that reference container
image versions, or any scenario where components depend on versions
from other components but need independent versioning.

Tests: All 1079 tests passing
Signed-off-by: Ryan Faircloth <actual@rfaircloth.com>
@ryanfaircloth ryanfaircloth requested review from a team as code owners January 18, 2026 23:05
@google-cla
Copy link

google-cla bot commented Jan 18, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add component version references and template formatting to extra-files configuration

2 participants