Skip to content

Commit 489bbc7

Browse files
committed
(maint) Update commits.rake to check for "Release prep"
Currently, the "Static Code Analysis / Run checks" will fail on release prep PRs because the check does not include "Release prep". This commit updates the commits Rake task to check for "Release prep".
1 parent de8125c commit 489bbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rakelib/commits.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ task(:commits) do
77
%x{git log --no-merges --pretty=%s #{commit_range}}.each_line do |commit_summary|
88
# This regex tests for the currently supported commit summary tokens.
99
# The exception tries to explain it in more full.
10-
if /^\((maint|packaging|doc|docs|pa-\d+)\)|revert/i.match(commit_summary).nil?
10+
if /^Release prep|\((maint|packaging|doc|docs|pa-\d+)\)|revert/i.match(commit_summary).nil?
1111
raise "\n\n\n\tThis commit summary didn't match CONTRIBUTING.md guidelines:\n" \
1212
"\n\t\t#{commit_summary}\n" \
1313
"\tThe commit summary (i.e. the first line of the commit message) should start with one of:\n" \

0 commit comments

Comments
 (0)