From 3f7cc00962823b4e80d77672e4eb54c9e7958354 Mon Sep 17 00:00:00 2001 From: Christian Steinhaus Date: Fri, 9 Aug 2019 13:30:22 +0200 Subject: [PATCH] Changed function name `extract_commit_message` is now called `extract_commit_info` to better represent its functionality --- wmn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmn.py b/wmn.py index 0518792..1ad3aaf 100644 --- a/wmn.py +++ b/wmn.py @@ -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