Skip to content

Commit eb11f5b

Browse files
TyMickgabrielmfern
andcommitted
chore: improve PR title check error (#664)
Co-authored-by: Gabriel Miranda <[email protected]>
1 parent 5c3b01d commit eb11f5b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/scripts/pr-title-check.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ const isValidType = (title) =>
1010
const validateTitle = (title) => {
1111
if (!isValidType(title)) {
1212
console.error(
13-
`PR title does not follow the required format.
14-
example: "type: My PR Title"
15-
16-
- type: "feat", "fix", "chore", or "refactor"
17-
- First letter of the PR title needs to be lowercased
18-
`,
13+
`PR title does not follow the required format "[type]: [title]".
14+
- Example: "fix: email compatibility issue"
15+
- Allowed types: 'feat', 'fix', 'chore', 'refactor'
16+
- First letter of the title portion (after the colon) must be lowercased`,
1917
);
2018
process.exit(1);
2119
}

0 commit comments

Comments
 (0)