|
1 | | -# Commit Messages(in Pull Reqeust) Checker with regex |
| 1 | +# Commit Messages (in Pull Request) Checker with regex |
2 | 2 |
|
3 | 3 |  |
4 | 4 |  |
5 | 5 |
|
6 | | -A GitHub action that checks that commit messages match a regex patter. The |
| 6 | +A GitHub action that checks that commit messages match a regex pattern. The |
7 | 7 | action is able to act on pull request and push events and check the pull |
8 | 8 | request title and body or the commit message of the commits of a push. |
9 | 9 |
|
10 | 10 | On pull requests the title and body are concatenated delimited by two line |
11 | 11 | breaks. |
12 | 12 |
|
13 | | -Designed to be very flexible in usage you can split checks into various |
| 13 | +Designed to be very flexible in usage: you can split checks into various |
14 | 14 | workflows, using action types on pull request to listen on, define branches |
15 | 15 | for pushes etc. etc. |
16 | 16 |
|
@@ -45,23 +45,23 @@ jobs: |
45 | 45 | token: ${{ secrets.GITHUB_TOKEN }} |
46 | 46 |
|
47 | 47 | - name: Check Subject Line Length |
48 | | - uses: tim-actions/commit-message-checker-with-regex@v0.1.0 |
| 48 | + uses: tim-actions/commit-message-checker-with-regex@v1.0.0 |
49 | 49 | with: |
50 | 50 | commits: ${{ steps.get-pr-commits.outputs.commits }} |
51 | 51 | pattern: '^.{0,75}(\n.*)*$' |
52 | 52 | error: 'Subject too long (max 75)' |
53 | 53 |
|
54 | 54 | - name: Check Body Line Length |
55 | 55 | if: ${{ success() || failure() }} |
56 | | - uses: tim-actions/commit-message-checker-with-regex@v0.1.0 |
| 56 | + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 |
57 | 57 | with: |
58 | 58 | commits: ${{ steps.get-pr-commits.outputs.commits }} |
59 | 59 | pattern: '^.+(\n.{0,72})*$' |
60 | 60 | error: 'Body line too long (max 72)' |
61 | 61 |
|
62 | 62 | - name: Check Fixes |
63 | 63 | if: ${{ success() || failure() }} |
64 | | - uses: tim-actions/commit-message-checker-with-regex@v0.1.0 |
| 64 | + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 |
65 | 65 | with: |
66 | 66 | commits: ${{ steps.get-pr-commits.outputs.commits }} |
67 | 67 | pattern: '\s*Fixes\s*:?\s*(#\d+|github\.com\/kata-containers\/[a-z-.]*#\d+)' |
|
70 | 70 |
|
71 | 71 | - name: Check subsystem |
72 | 72 | if: ${{ success() || failure() }} |
73 | | - uses: tim-actions/commit-message-checker-with-regex@v0.1.0 |
| 73 | + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 |
74 | 74 | with: |
75 | 75 | commits: ${{ steps.get-pr-commits.outputs.commits }} |
76 | 76 | pattern: '^[\h]*([^:\h\n]+)[\h]*:' |
|
0 commit comments