Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xuthus5 committed Oct 28, 2024
1 parent 3e80179 commit 1fedd28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Common PR Title Checker
uses: xuthus5/pr-title-checker@v0.0.5
uses: xuthus5/pr-title-checker@v1
```
## Standard
Expand Down
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ async function run() {

const titleRegex = new RegExp(core.getInput('pattern'));
if (!titleRegex.test(titleToCheck)) {
core.setFailed(`pull request title or latest commit message does not conform to the standard. Please use the format: <type>(<scope>): <subject>\n\nthe <type> can be: feat, fix, docs, style, refactor, test, pref, build, ci, chore or revert`);
core.setFailed(
"Pull request title or latest commit message does not conform to the standard. " +
"Please use the format: <type>(<scope>): <subject>\n\n" +
"The <type> can be: feat, fix, docs, style, refactor, test, pref, build, ci, chore or revert\n\n" +
"There must be exactly one space after the colon, and no space is allowed at the end of the title.\n\n" +
"Only displayable ASCII characters are allowed in the title. " +
"The displayable character number range is 32-126 (0x20-0x7E), a total of 95 characters"
);
} else {
core.info(`pull request title or latest commit message conforms to the standard`);
}
Expand Down

0 comments on commit 1fedd28

Please sign in to comment.