-
Notifications
You must be signed in to change notification settings - Fork 255
Publish and Prerelease from multiple branches (input desired) #423
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
Hi @jacksbox, @williamluke4 & @danth I've been using the Node semantic-release for a while & in the process of converting to this to eliminate the need for Node installation on some Jenkins agents, and was looking to see if this was a feature today/came across this issue. I use Proposals1. Create a new sub-table configuration option, something like[tool.semantic_release.branches]
"branch regex" = <per-branch config dict>
# e.g.
main = true # always release
"^dev-?.*" = {prerelease = true, prerelease_tag = "alpha"} I believe it's possible to create the same kind of structure in [tool:semantic_release.branches]
"^dev-*$"=
=prerelease = true
=prerelease_tag = "alpha" but admittedly haven't really tested yet. This kind've follows the options available in the Node semantic-release configuration, and would allow a per-branch pattern configuration to hook into. I had some ideas around defining keys such as I think this will hook into the recent pre-release functionality pretty well as the recent inclusion of pre-release functionality in your PR, since (if I understood correctly) that relies on setting a flag A question I still have is what the default should look like - I suggest a default which has the same effect as [tool.semantic_release.branches]
master = true but the specifics will depend on what options are allowed in that per-branch configuration. It could go as granular as allowing most other configuration settings (e.g. 2. Deprecate the
|
@relekang hi, came to check on this and realised I didn't include you in the set of tags- sorry about that! I'd love to get your thoughts on the above, if that's a direction python-semantic-release could go in |
This feature request has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed. |
This feature request has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed. |
Hi I'm also interested in this features, I was thinking on just add branch to the semantic-release command as a paremeter, but not sure if the inner-workings allow this |
This issue is stale because it has not been confirmed or planned by the maintainers and has been open 90 days with no recent activity. It will be closed in 7 days, if no further activity occurs. Thank you for your contributions. |
Completed in |
Description
Related to this Issue and PR from me regarding prereleases:
#386
#413
With the (hopefully soon) new prerelease option, it would be nice to have the option to publish from multiple branches with different options.
Use cases
This would enable flows like:
Branch: master -> publish normal new version
Branch: dev -> publish new beta prerelease
Branch: feature/* -> publish new alpha prerelease
Possible implementation
This would change how the
branch
configuration option works - or possible remove it - as we than would not check out a branch on the publish command, but would analyse what to exactly do based on the currently checked out branch.PS: Another possible option to handle this, could be a dedicated
prerelease
command which can be called from the ci pipeline directly, which than would operate on the current branch...Would love to get some input!
The text was updated successfully, but these errors were encountered: