File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 2828 echo STEP_START=$(date +%s) >> $GITHUB_ENV
2929 - name : " Checkout Source"
3030 if : ${{ github.repository_owner == 'puppetlabs' }}
31- uses : actions/checkout@v3
31+ uses : actions/checkout@v4
3232 with :
3333 fetch-depth : 0
3434 persist-credentials : false
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-20.04
1010 steps :
1111 - name : Checkout code
12- uses : actions/checkout@v3
12+ uses : actions/checkout@v4
1313 with :
1414 ref : ${{ github.ref }}
1515 clean : true
3333 runs-on : ubuntu-20.04
3434 steps :
3535 - name : Checkout code
36- uses : actions/checkout@v3
36+ uses : actions/checkout@v4
3737 with :
3838 ref : ${{ github.ref }}
3939 clean : true
Original file line number Diff line number Diff line change 1818 runs-on : ' ubuntu-20.04'
1919 steps :
2020 - name : Checkout current PR code
21- uses : actions/checkout@v3
21+ uses : actions/checkout@v4
2222 with :
2323 fetch-depth : 0
2424
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 "
22task ( :commits ) do
33 # This rake task looks at the summary from every commit from this branch not
44 # in the branch targeted for a PR.
@@ -7,16 +7,15 @@ 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 /^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 " \
1514 "\t \t (docs)\n " \
1615 "\t \t (docs)(DOCUMENT-<digits>)\n " \
1716 "\t \t (packaging)\n "
1817 "\t \t (maint)\n " \
19- "\t \t Release prep v <tag>\n " \
18+ "\t \t Release prep v<tag>\n " \
2019 "\n \t This test for the commit summary is case-insensitive.\n \n \n "
2120 else
2221 puts "#{ commit_summary } "
You can’t perform that action at this time.
0 commit comments