-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Feature Request] Allow to source version bump type from branch name #34
Comments
Hello Manuel, So looking at the current "pipeline" there are several steps, for example:
The idea for v5 is that these will be injected functions rather than coded directly, allowing behaviors to be switched out. I am planning to include a module to use branch names to determine the commit type as mentioned in #22. |
See release of version 5.0.0, I have been playing with a Possibly you could just "be careful" with this, but I'm going to give it a bit more thought first. |
The new behavior for version 5 going forward will be to sort by the version number itself rather than the date. This should be sufficient to cover edge cases here. As of the most recent commit, setting the |
Hey @PaulHatch, thanks for this recent feature. It's a great addition, but unfortunately I don't believe it will work for our purposes -- but I wanted to be sure before we moved on (because if I'm correct, I don't think it would make sense to change the behavior to meet our needs). Our current branching strategy for releases is that we branch off of Is this summary correct? I believe the "solution" would be for us to 1) make fixes during release cycles to |
Sorry I missed this question until now, but just in case some one else comes across it, you are correct with the current implementation. In v5.0.0 the branch must be merged to be picked up. In general I think the current versioning based on branches is somewhat primitive, branch version is complicated because branching strategies impact the shape of the commit graph significantly. It may be necessary to provide multiple branch-type versioning providers to accommodate different branching strategies. I've created ticket #76 to revisit this in the next feature release. In the meantime I am closing this ticket as branch versioning is supported in v5.0.0. |
Thank you for providing this Github Action for everyone! We are in the process of moving from Concourse to Github Actions, and I found that your action is the closest one to behaving how we like to handle semantic versioning.
I noticed that you have v5 planned, and it seems like you might have this use case in mind. But just in case you don't, I wanted to lay out a feature that we would appreciate seeing in v5.
Feature Request
Allow users to choose between sourcing the version bump type (
major
|minor
|patch
) from the branch name, instead of the git log commit message.Use case
We use a branching strategy that involves prefixing the branch to indicate what the intended semantic version change would be.
Examples:
MAJOR
major/
breaking/
MINOR
minor/
feature/
feat/
Any other branch name would yield a
PATCH
version bump.The text was updated successfully, but these errors were encountered: