Skip to content

Commit

Permalink
fix: Consider merge commits for single commit validation (amannn#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy committed Oct 26, 2021
1 parent 64af21f commit c048fb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ module.exports = async function run() {
pull_number: contextPullRequest.number,
per_page: 2
});

throw new Error(JSON.stringify(commits));

if (commits.length === 1) {
try {
Expand Down

0 comments on commit c048fb8

Please sign in to comment.