Skip to content

Commit f913d37

Browse files
fix: Better strategy to detect merge commits (#132)
* fix: avoid edge cases when identifying merge commits. * fix: revert changes to dist/.
1 parent 4feeedb commit f913d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = async function run() {
6767
// GitHub does not count merge commits when deciding whether to use
6868
// the PR title or a commit message for the squash commit message.
6969
nonMergeCommits = commits.filter(
70-
(commit) => !commit.commit.message.startsWith('Merge branch')
70+
(commit) => commit.parents.length < 2
7171
);
7272

7373
// We only need two non-merge commits to know that the PR

0 commit comments

Comments
 (0)