Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom template versions for dependency update and sync #1072

Merged
merged 5 commits into from
Dec 31, 2024

Conversation

simu
Copy link
Member

@simu simu commented Dec 30, 2024

We make use of the native support for specifying a template version in Cruft to pass through a custom version in dependency update and sync.

We introduce flag --template-version for the component and package update and sync commands.

Resolves #618

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation.
  • Update tests.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency, internal
    as they show up in the changelog
  • Link this PR to related issues.

We make use of the native support for specifying a template version in
Cruft to pass through a custom version in dependency update and sync.

We introduce flag `--template-version` for the component and package
`update` and `sync` commands.

Resolves #618
@simu simu added the enhancement New feature or request label Dec 30, 2024
@simu simu changed the title Feat/template version update sync Add support for custom template versions for dependency update and sync Dec 30, 2024
@simu simu force-pushed the feat/template-version-update-sync branch 3 times, most recently from 3ee2ff8 to f259a06 Compare December 30, 2024 14:23
simu added 2 commits December 30, 2024 15:24
This should reduce the code complexity of each method as well as
allowing us to write simpler tests for the dependency syncing mechanism.
@simu simu force-pushed the feat/template-version-update-sync branch from f259a06 to 295bd57 Compare December 30, 2024 14:28
simu added 2 commits December 30, 2024 15:32
We don't want to see diffs when running `sync` with a custom template
version, since this flag is primarily intended to be run on template
repo PRs where we don't care that the template version changes since the
actual change will only be applied once we merge the PR.
@simu simu marked this pull request as ready for review December 30, 2024 14:54
@simu simu requested a review from a team as a code owner December 30, 2024 14:54
@simu simu requested a review from a team December 30, 2024 14:54
@simu simu merged commit cf35c02 into master Dec 31, 2024
20 checks passed
@simu simu deleted the feat/template-version-update-sync branch December 31, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support rendering preview of template changes in a feature branch for component update / package update
2 participants