Skip to content

Commit

Permalink
fix(check-pr-title): include regex in failure message (#336)
Browse files Browse the repository at this point in the history
* fix(check-pr-title): include regex in failure message

* chore: committing generated dist

* update again

---------

Co-authored-by: danadajian <[email protected]>
  • Loading branch information
danadajian and danadajian authored Feb 21, 2023
1 parent 0b9b8d3 commit 80c02ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/956.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/956.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/helpers/check-pr-title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ export const checkPrTitle = async ({ pattern = DEFAULT_PR_TITLE_REGEX }: CheckPr
if (regex.test(title)) {
return true;
}
setFailed('Pull request title does not meet requirements.');
setFailed(`Pull request title does not meet requirements. The title must match the following regex: ${pattern}`);
return false;
};

0 comments on commit 80c02ee

Please sign in to comment.