Changed function name

`extract_commit_message` is now called `extract_commit_info` to better
represent its functionality
This commit is contained in:
Christian Steinhaus 2019-08-09 13:30:22 +02:00
parent 9a0f0cbfba
commit 3f7cc00962

2
wmn.py
View file

@ -86,7 +86,7 @@ def process_gitlab_request():
def sort_commits_by_time(commits):
return sorted(commits, key=lambda commit: commit["timestamp"])
def extract_commit_message(commit):
def extract_commit_info(commit):
msg = shorten(next(iter_first_line(commit["message"]), "$EMPTY_COMMIT_MESSAGE - impossibruh"))
url = commit["url"]
return msg, url