-
Notifications
You must be signed in to change notification settings - Fork 255
Add @ to allowed separators of version_variables #1156
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
Comments
Seems reasonable, just note that we also have issue #846 open as tag formats (default tag version is usually prefixed with a |
@codejedi365 Thank you for your response! Seems like the issue number you referred to did not make it into the comment. Could you add it? |
Updated. Must of got distracted before completion, thanks. |
Thank you! I'll try to implement the features within this week and get back to you once I published the PR. I will improve some of the documentation regarding the version_variables configuration as well, as it took me some time to figure out how exactly it works. |
@codejedi365 sry it took me so long, i just published a pull request! |
No problem, thanks for the support, I'll take a look tonight |
…`@` symbol separator Resolves: python-semantic-release#1156
…`@` symbol separator Resolves: python-semantic-release#1156
…`@` symbol separator Resolves: python-semantic-release#1156
…`@` symbol separator Resolves: python-semantic-release#1156
…`@` symbol separator Resolves: python-semantic-release#1156
🎉 This issue has been resolved in Version 9.20.0 🎉You can find more information about this release on the GitHub Releases page. |
@codejedi365 i just checked if everything worked. unfortunately it does not, as psr does not allow the "v" in front of the version. was this intentional? My pr did include this feature. |
@benedikt-hess-km, did you review the new configuration docs? If you want to stamp the tag format, you need to specify The problem with an optional v, is that PSR allows for a custom tag format so the v-prefix is not guaranteed. Unfortunately this means it's not flexible to be compatible between tag-formatted versions and numeric versions so make sure the one you are trying to replace is a tag format. If I did mess something up then please identify what the mistake was in the E2E test because that one was supposed to mirror your exact situation. |
oh wow sry I did not! Works like a charm! |
Glad to hear, you had me worried for a minute. |
Feature Request
Description
Currently, when defining version variables with the
version_variables
configuration parameter, the versions in the specified files, have to be preceded by:
,=
or:=
.See
python-semantic-release/src/semantic_release/cli/config.py
Line 719 in 2f18a6d
I would like to add the
@
to the allowed separators, as it is used in gitHub actions ymls.Use cases
I have a github repo (e.g.
my-org/my-actions
) containing multiple actions:action1.yml
andaction2.yml
are both called bycombinded.yml
Currently there is no way for PSR to update the two versions in the
combined.yml
file.Possible implementation
change line to
r"\s*(:=@|[:=])\s*",
python-semantic-release/src/semantic_release/cli/config.py
Line 719 in 2f18a6d
The text was updated successfully, but these errors were encountered: