Commit 3700dc60 authored by intrigeri's avatar intrigeri

generate-changelog: skip merge commits

parent 8e0865e6
......@@ -85,7 +85,11 @@ class ChangelogGenerator(object):
}
for issue in mr.closes_issues()
],
"commit_messages": [commit.title for commit in mr.commits()],
"commit_messages": [
commit.title for commit in mr.commits()
# Ignore merge commits
if len(project.commits.get(commit.id).parent_ids) == 1
],
})
# yapf: enable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment