-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(managers/git-submodules): support updating git-tag versions #30104
Conversation
@Shegox, once merged, how will this work? I am very interested in using it ASAP Edit: I mean, will this require any additional configuration, or setting a tag name into the |
This should suffice, if your submodule has a standard {
"git-submodules": {
"enabled": true
}
} And then my [submodule "deps/renovatebot"]
path = deps/renovatebot
url = https://github.com/renovatebot/renovate.git
branch = 37.425.0 This will then create an update PR like this: @DanySK You can as well see the demo repository here: https://github.com/Shegox/renovate-submodule-parent (Update PR: Shegox/renovate-submodule-parent#1) |
54526bc
to
48f6532
Compare
This comment has been minimized.
This comment has been minimized.
@Shegox thanks for this, I'm looking forward to testing it! Would you mind adding |
Co-authored-by: Tom Plant <[email protected]>
🎉 This issue has been resolved in version 38.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR introduces support for updating git submodules using versioned git tags. This enhancement is useful for updating submodules to follow specific releases (i.e., tags) rather than tracking a particular branch, such as the
main
branch of a downstream repository.Additionally, it changes the versioning scheme from
git-refs
tosemver
if the currentbranch
value matches a validsemver
format.Context
Previously, Renovate already supported updating submodules via manual adjustments:
semver
.gitmodules
file wasn't updated automatically. (could be overcome with a RegexManager)fixes #14258
fixes #24827
Inspired by the fork from
@pl4nty
(#24827 (comment))Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via:
Demo Repository: https://github.com/Shegox/renovate-submodule-parent
Demo Pull Request: Shegox/renovate-submodule-parent#1