CondeNast / conventional-pull-request-action

Lint pull requests with the conventional commit spec, for a clean and conventional commit history
Apache License 2.0
15 stars 9 forks source link

fix: check PR title and commit subject equality #13

Closed mattbedell closed 3 years ago

mattbedell commented 3 years ago

12

Single commit pull requests with commitTitleMatch: true would check equality between the PR title and the entire commit message. This causes a failure for commit messages that contain a body.

This change alters the comparison so the PR title is compared with the commit subject only, allowing commits with a body to pass the check.

Review Checklist

PR titles must follow the type: description format. See Conventional Commits for a summary and examples.

Please complete these steps before requesting code review: