@@ -21,41 +21,40 @@ jobs:
21
21
name : GitLint
22
22
steps :
23
23
- name : Lint commits, branches, and pull requests
24
- uses :
aschbacd/[email protected] .1
24
+ uses :
aschbacd/[email protected] .2
25
25
with :
26
- github-token : ${{ secrets.GITHUB_TOKEN }}
27
26
commit-message-body-max-length : 72
28
27
commit-message-subject-max-length : 50
29
28
prohibit-unknown-commit-authors : true
30
29
prohibit-unknown-commit-committers : true
31
- re-commit-message-subject : " ^[A-Z].*((?!\\ .).)$"
32
- re-pull-request-title : " ^[A-Z].*((?!\\ .).)$"
30
+ re-commit-message-subject : ^[A-Z].*((?!\.).)$
31
+ re-pull-request-title : ^[A-Z].*((?!\.).)$
33
32
` ` `
34
33
35
34
## Customization
36
35
37
36
The following input keys can be used in your GitHub Actions workflow (shown above).
38
37
39
- | Key | Description | Default | Recommended |
40
- | ---------------------------------- | ------------------------------------------------------------ | ----------------------- | ----------------------------- |
41
- | commit-message-body-max-length | Max. characters for line in commit message body | -1 (disabled) | 72 |
42
- | commit-message-body-min-length | Min. characters for line in commit message body | -1 (disabled) | -1 (disabled) |
43
- | commit-message-subject-max-length | Max. characters for commit message subject | -1 (disabled) | 50 |
44
- | commit-message-subject-min-length | Min. characters for commit message subject | -1 (disabled) | -1 (disabled) |
45
- | github-token | Token used to authenticate against GitHub api | ` -` | `${{ secrets.GITHUB_TOKEN }}` |
46
- | prohibit-blank-lines-cm-body | Commit message body cannot include blank lines | `false` | `false` |
47
- | prohibit-unknown-commit-authors | Commit author must be GitHub user | `false` | `true` |
48
- | prohibit-unknown-commit-committers | Commit committer must be GitHub user | `false` | `true` |
49
- | prohibit-unsigned-commits | Commits without a valid signature are invalid | `false` | `false` |
50
- | re-branch-name | Regex used to check branch name | `.*` | `[a-z]+\/.+` |
51
- | re-commit-author-email | Regex used to check commit author email | `.*` | `.*` |
52
- | re-commit-author-name | Regex used to check commit author name | `.*` | `.*` |
53
- | re-commit-committer-email | Regex used to check commit committer email | `.*` | `.*` |
54
- | re-commit-committer-name | Regex used to check commit committer name | `.*` | `.*` |
55
- | re-commit-message-body | Regex used to check commit message body (DotAll) | `.*` | `.*` |
56
- | re-commit-message-split | Regex used to split commit message subject and body (DotAll) | `([^\n]*)(?:\n\n(.*))?` | `([^\n]*)(?:\n\n(.*))?` |
57
- | re-commit-message-subject | Regex used to check commit message subject | `.*` | `^[A-Z].*((?!\.).)$` |
58
- | re-pull-request-title | Regex used to check pull request title | `.*` | `^[A-Z].*((?!\.).)$` |
38
+ | Key | Description | Default | Recommended |
39
+ | ---------------------------------- | ------------------------------------------------------------ | ----------------------- | ----------------------- |
40
+ | commit-message-body-max-length | Max. characters for line in commit message body | -1 (disabled) | 72 |
41
+ | commit-message-body-min-length | Min. characters for line in commit message body | -1 (disabled) | -1 (disabled) |
42
+ | commit-message-subject-max-length | Max. characters for commit message subject | -1 (disabled) | 50 |
43
+ | commit-message-subject-min-length | Min. characters for commit message subject | -1 (disabled) | -1 (disabled) |
44
+ | github-token | Token used to authenticate against GitHub api | ` ${{ github.token }}` | `${{ github.token }}` |
45
+ | prohibit-blank-lines-cm-body | Commit message body cannot include blank lines | `false` | `false` |
46
+ | prohibit-unknown-commit-authors | Commit author must be GitHub user | `false` | `true` |
47
+ | prohibit-unknown-commit-committers | Commit committer must be GitHub user | `false` | `true` |
48
+ | prohibit-unsigned-commits | Commits without a valid signature are invalid | `false` | `false` |
49
+ | re-branch-name | Regex used to check branch name | `.*` | `.*` |
50
+ | re-commit-author-email | Regex used to check commit author email | `.*` | `.*` |
51
+ | re-commit-author-name | Regex used to check commit author name | `.*` | `.*` |
52
+ | re-commit-committer-email | Regex used to check commit committer email | `.*` | `.*` |
53
+ | re-commit-committer-name | Regex used to check commit committer name | `.*` | `.*` |
54
+ | re-commit-message-body | Regex used to check commit message body (DotAll) | `.*` | `.*` |
55
+ | re-commit-message-split | Regex used to split commit message subject and body (DotAll) | `([^\n]*)(?:\n\n(.*))?` | `([^\n]*)(?:\n\n(.*))?` |
56
+ | re-commit-message-subject | Regex used to check commit message subject | `.*` | `^[A-Z].*((?!\.).)$` |
57
+ | re-pull-request-title | Regex used to check pull request title | `.*` | `^[A-Z].*((?!\.).)$` |
59
58
60
59
# # Resources
61
60
0 commit comments