-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Feature Request
Add a flag to verscout to create release candidate releases.
Motivation
To deploy to my dev instances, I need rc-releases. At the moment, I always concatenate a timestmap to the version that verscout outputs. But that way I always generate a new release since my comparision (last_version == next_version) is always false, even if there are no commits present, that would bump the version. If verscout would be able to check for the latest rc release, the comparison would again be true for releases with no bumpable commits.
I can of course work around it, but it would involve a few lines of bash and I would rather see verscout do the calculations and comparisions.
Proposed Solution
When a --rc flag is passed, verscout fetches the last full-release version and, if available, the last release-candidate version. rc-versions always follow the format x.y.z-rc.<incrementing number of candidates>.
The following describes the behaviour when the --rc flag is set:
next_version
- If a rc-release is available and no bump is needed, the last rc-release-version is passed as next version.
- if no rc-version is available and no bump is needed, return the full version as next version
- If a bump is needed, the last regular-version is fetched, bumped and a rc-version is returned as last version
last_version
- if a rc-release is available, return the rc-version
- if no rc-release is available and there is no version bump, return the last full-version
- if no rc-release is available and there is a version bump, return the last full-version