Skip to content

Commit

Permalink
fix: use cleaned title for match
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Sep 2, 2019
1 parent 255aecf commit ab08b75
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index-node10-dev.cjs.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/index-node10-dev.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-node10.cjs.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/index-node10.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/pr-handlers/actions/editOpenedPR.ts
Expand Up @@ -45,7 +45,7 @@ export const editOpenedPR: PRHandler<
const errorRule = repoContext.config.parsePR.title.find((rule) => {
if (rule.bot === false && isPrFromBot) return false;

const match = rule.regExp.exec(pr.title);
const match = rule.regExp.exec(title);
if (match === null) {
if (rule.status) {
statuses.push({ name: rule.status, error: rule.error });
Expand Down

0 comments on commit ab08b75

Please sign in to comment.