Skip to content
Snippets Groups Projects
Unverified Commit 6f27ce6e authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman Committed by GitHub
Browse files

Merge pull request #459 from t-woerner/changelog_get_commit

utils/changelog: Fix get_commit to use proper variable
parents 16471498 dff485cb
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): ...@@ -87,7 +87,7 @@ def store(commits, prs, authors, commit, author, merge, msg):
def get_commit(commits, commit): def get_commit(commits, commit):
_commits = [value for key, value in commits.items() _commits = [value for key, value in commits.items()
if key.startswith(merge)] if key.startswith(commit)]
if len(_commits) == 1: if len(_commits) == 1:
return _commits[0] return _commits[0]
return commit return commit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment