Groovy web console

subscribe to the feed Subscribe
to this
site

filterNonReleaseChanges

Published 2 weeks ago by FH
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def filterNonReleaseChanges(String changes) {
    return changes.replaceAll(/(?m)^- chore\(release\).*?\n/, "");
}

print(filterNonReleaseChanges("""- chore(release): 3.1.0-alpha.11
- chore: housekeeping (#436)
- chore(release): 3.1.0-alpha.10
- chore(taly-builders:screenshot): provide debug option & improve logging (#431)
- chore(release): 3.1.0-alpha.9"""))