Add bump since git ref

This commit is contained in:
Davide 2024-11-07 18:35:00 +01:00
parent 2c1ccbcbfd
commit fdd8716d2f
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
2 changed files with 11 additions and 0 deletions

5
ci/bump-since.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
if [ ! -z $1 ]; then
SINCE="since:$1"
fi
bundle exec fastlane bump $SINCE

View File

@ -23,7 +23,13 @@ logname = "CHANGELOG.txt"
desc "Bump version" desc "Bump version"
lane :bump do |options| lane :bump do |options|
unless options[:only] unless options[:only]
if options[:since]
between = [options[:since], "HEAD"]
else
between = nil
end
log = changelog_from_git_commits( log = changelog_from_git_commits(
between: between,
pretty: "* %s", pretty: "* %s",
date_format: "short" date_format: "short"
) )