From 832bc8abe1b6962b89b9b8ff2714a299a4db7072 Mon Sep 17 00:00:00 2001 From: Jochen Pfeiffer Date: Fri, 20 Mar 2020 12:36:02 +0100 Subject: [PATCH] Less restricted filter for release commit messages (#253) * Less restricted filter for release commit messages * use `start_with?` for check --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 061e8bf8..59df7c8b 100644 --- a/Rakefile +++ b/Rakefile @@ -398,7 +398,7 @@ end def is_release_commit_for_version(version) commit_message = `git log -1 --pretty=%B 2> /dev/null` - return commit_message.match(/^Release #{version} \(.*\)$/) + return commit_message.start_with?("Release #{version} ") end def checkout_and_pull_master