Changed function name
`extract_commit_message` is now called `extract_commit_info` to better represent its functionality
This commit is contained in:
parent
9a0f0cbfba
commit
3f7cc00962
2
wmn.py
2
wmn.py
|
@ -86,7 +86,7 @@ def process_gitlab_request():
|
||||||
def sort_commits_by_time(commits):
|
def sort_commits_by_time(commits):
|
||||||
return sorted(commits, key=lambda commit: commit["timestamp"])
|
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"))
|
msg = shorten(next(iter_first_line(commit["message"]), "$EMPTY_COMMIT_MESSAGE - impossibruh"))
|
||||||
url = commit["url"]
|
url = commit["url"]
|
||||||
return msg, url
|
return msg, url
|
||||||
|
|
Loading…
Reference in a new issue