mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 21:38:13 +02:00
idk how to name variables
This commit is contained in:
@ -69,7 +69,8 @@ def augment_comments(comments: list[dict]) -> list[dict]:
|
|||||||
|
|
||||||
|
|
||||||
def process_pull_request(repo_url: str, pr_number: str) -> bool:
|
def process_pull_request(repo_url: str, pr_number: str) -> bool:
|
||||||
comments = augment_comments(get_comments(repo_url, pr_number))
|
tmp_comments = get_comments(repo_url, pr_number)
|
||||||
|
comments = augment_comments(tmp_comments)
|
||||||
|
|
||||||
if len(comments) == 0:
|
if len(comments) == 0:
|
||||||
# No comments, can't extract triplet
|
# No comments, can't extract triplet
|
||||||
@ -80,7 +81,8 @@ def process_pull_request(repo_url: str, pr_number: str) -> bool:
|
|||||||
|
|
||||||
# get commits and filter out the ones that are older than the first
|
# get commits and filter out the ones that are older than the first
|
||||||
# comment, since they are the commits relevant for the PR
|
# comment, since they are the commits relevant for the PR
|
||||||
commits = get_useful_commits(get_commits(repo_url, pr_number), first_comment_date)
|
tmp_commits = get_commits(repo_url, pr_number)
|
||||||
|
commits = get_useful_commits(tmp_commits, first_comment_date)
|
||||||
|
|
||||||
if len(commits) == 0:
|
if len(commits) == 0:
|
||||||
# No commits after the first comment, there were no revision from the contributor, so no triplet
|
# No commits after the first comment, there were no revision from the contributor, so no triplet
|
||||||
|
Reference in New Issue
Block a user