Skip to content

Commit 94112f8

Browse files
committed
(maint) Updates projects in commits check
The MODULES and FM Jira projects have been retired. This commit updates the commits check Rake task to no longer verify that commit summaries reference those projects, and instead adds the PA Jira project as an option instead.
1 parent aa106ed commit 94112f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rakelib/commits.rake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ 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|fm-\d+|modules-\d+)\)|revert/i.match(commit_summary).nil?
10+
if /^\((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" \
14-
"\t\t(MODULES-<digits>) # this is most common and should be a ticket at tickets.puppet.com\n" \
15-
"\t\t(FM-<digits>)\n" \
14+
"\t\t(PA-<digits>) # this is most common and should be a ticket at tickets.puppet.com\n" \
1615
"\t\t(docs)\n" \
1716
"\t\t(docs)(DOCUMENT-<digits>)\n" \
1817
"\t\t(packaging)\n"

0 commit comments

Comments
 (0)