Merge pull request #459 from t-woerner/changelog_get_commit

utils/changelog: Fix get_commit to use proper variable
This commit is contained in:
Rafael Guterres Jeffman
2020-11-30 12:07:26 -03:00
committed by GitHub

View File

@@ -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