File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 28
28
echo STEP_START=$(date +%s) >> $GITHUB_ENV
29
29
- name : " Checkout Source"
30
30
if : ${{ github.repository_owner == 'puppetlabs' }}
31
- uses : actions/checkout@v3
31
+ uses : actions/checkout@v4
32
32
with :
33
33
fetch-depth : 0
34
34
persist-credentials : false
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-20.04
10
10
steps :
11
11
- name : Checkout code
12
- uses : actions/checkout@v3
12
+ uses : actions/checkout@v4
13
13
with :
14
14
ref : ${{ github.ref }}
15
15
clean : true
33
33
runs-on : ubuntu-20.04
34
34
steps :
35
35
- name : Checkout code
36
- uses : actions/checkout@v3
36
+ uses : actions/checkout@v4
37
37
with :
38
38
ref : ${{ github.ref }}
39
39
clean : true
Original file line number Diff line number Diff line change 18
18
runs-on : ' ubuntu-20.04'
19
19
steps :
20
20
- name : Checkout current PR code
21
- uses : actions/checkout@v3
21
+ uses : actions/checkout@v4
22
22
with :
23
23
fetch-depth : 0
24
24
Original file line number Diff line number Diff line change 1
- desc "verify that commit messages match CONTRIBUTING.md requirements "
1
+ desc "verify that commit summaries are properly formatted "
2
2
task ( :commits ) do
3
3
# This rake task looks at the summary from every commit from this branch not
4
4
# in the branch targeted for a PR.
@@ -7,11 +7,10 @@ task(:commits) do
7
7
%x{git log --no-merges --pretty=%s #{ commit_range } } . each_line do |commit_summary |
8
8
# This regex tests for the currently supported commit summary tokens.
9
9
# The exception tries to explain it in more full.
10
- if /^Release prep|\( (maint|packaging|doc|docs|modules-\d +)\) |revert/i . match ( commit_summary ) . nil?
11
- raise "\n \n \n \t This commit summary didn't match CONTRIBUTING.md guidelines:\n " \
12
- "\n \t \t #{ commit_summary } \n " \
13
- "\t The 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 " \
10
+ if /^Release prep|\( (maint|packaging|doc|docs|modules|pa-\d +)\) |revert/i . match ( commit_summary ) . nil?
11
+ raise "\n \n \n \t Please make sure that your commit summary (i.e. the first line of the commit message) starts with one of the following:\n " \
12
+ "\t \t (PA-<digits>)\n " \
13
+ "\t \t (MODULES-<digits>)\n " \
15
14
"\t \t (docs)\n " \
16
15
"\t \t (docs)(DOCUMENT-<digits>)\n " \
17
16
"\t \t (packaging)\n "
You can’t perform that action at this time.
0 commit comments