diff --git a/src/index.js b/src/index.js index 807a819ca..896cdd2b9 100644 --- a/src/index.js +++ b/src/index.js @@ -67,7 +67,7 @@ module.exports = async function run() { // GitHub does not count merge commits when deciding whether to use // the PR title or a commit message for the squash commit message. nonMergeCommits = commits.filter( - (commit) => !commit.commit.message.startsWith('Merge branch') + (commit) => commit.parents.length < 2 ); // We only need two non-merge commits to know that the PR