You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I custom the detection logic for getting next version?
I want to custom the logic of getNextVersion.
For example, I want to implement label based version management:
Calculate Next version from GitHub PR's labels
If these includes only Version: patch, next version is patch
If these includes Version: patch and Version: minor, next version is minor
If any one is Version: major label, next version is major
-- https://gist.github.com/azu/e39fcc506eff4242beb27b84cac17b82
During I try to implement my Release Flow idea using ship.js, I noticed that ship.js only support conventional commits to detect next version.
Describe the solution you'd like
Add new lifecyle hook like updateVersion before shouldPrepare
module.exports={updateVersion: async({
revisionRange,
currentVersion,
dir})=>{// user defined logicconstnextVersion=awaitcalculateNextVersion();return{ nextVersion }}};
Is your feature request related to a problem? Please describe.
Currently, It seems that ship.js support only conventional commits to get Next version.
Can I custom the detection logic for getting next version?
I want to custom the logic of
getNextVersion
.For example, I want to implement label based version management:
During I try to implement my Release Flow idea using ship.js, I noticed that ship.js only support conventional commits to detect next version.
Describe the solution you'd like
Add new lifecyle hook like
updateVersion
beforeshouldPrepare
Describe alternatives you've considered
{ versionStrategy: "conventional-commits" | customFunction }
.next-version
file in the repository, use it as next version and delete it after preparedI don't know ship.js internal, maybe exist more reasonable implementation.
Additional context
The text was updated successfully, but these errors were encountered: