Skip to content

Commit

Permalink
Fix code to detect if PR title matches commit message (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
callms committed Dec 15, 2023
1 parent c34602b commit 1c208ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/actions/pullRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ exports.validatePR = async function validatePR({ pullRequest, issue }) {
commits === 1 &&
!title.match(/^Revert ".*"/) &&
!title.match(/^Bump .*/) &&
!committer === "ms-bot" &&
!committer === "ms-upgrade-aws"
committer !== "ms-bot" &&
committer !== "ms-upgrade-aws"
) {
// we have only one commit, make sure its name match the name of the PR
const {
Expand Down

0 comments on commit 1c208ee

Please sign in to comment.