mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user