We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f931d9 commit c88954cCopy full SHA for c88954c
src/input-helper.ts
@@ -301,11 +301,8 @@ async function getCommitMessagesFromPullRequest(
301
if (repository.pullRequest) {
302
messages = repository.pullRequest.commits.edges
303
.filter(function (edge: CommitEdgeItem): boolean {
304
- if (edge.node.commit.parents.totalCount > 1) {
305
- // Skip merge commits (which have more than 1 parent commit)
306
- return false
307
- }
308
- return true
+ // Skip merge commits (which have more than 1 parent commit)
+ return edge.node.commit.parents.totalCount === 1
309
})
310
.map(function (edge: CommitEdgeItem): string {
311
return edge.node.commit.message
0 commit comments