Groovy web console

subscribe to the feed Subscribe
to this

version stuff

Published 3 months ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def pr_title = 'chore(deps): bump next-transpile-modules from 9.1.0 to 10.0.0';
def splitTitle = pr_title.split(' ')
def newVersion = splitTitle[-1]
def oldVersion = splitTitle[-3] 
println newVersion println oldVersion 
def splitNewVersion = newVersion.split('\\.').collect { it as int }
def splitOldVersion = oldVersion.split('\\.').collect { it as int }
println splitOldVersion[0] 
println splitNewVersion[0]
println splitNewVersion[0] > splitOldVersion[0]