Skip to content
Snippets Groups Projects
Commit dff485cb authored by Thomas Woerner's avatar Thomas Woerner
Browse files

utils/changelog: Fix get_commit to use proper variable

The function get_commit was using the global merge variable instead of
the local commit variable. Therefore it returned the wrong commit
subject for merges without subject.
parent 16471498
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ def store(commits, prs, authors, commit, author, merge, msg):
def get_commit(commits, commit):
_commits = [value for key, value in commits.items()
if key.startswith(merge)]
if key.startswith(commit)]
if len(_commits) == 1:
return _commits[0]
return commit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment