-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub data access pr migration #2864
Conversation
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
@@ -50,18 +49,18 @@ def collect_pull_requests(repo_git: str, full_collection: bool) -> int: | |||
all_data.append(pr) | |||
|
|||
if len(all_data) >= 1000: | |||
process_pull_requests(all_data, f"{owner}/{repo}: Pr task", repo_id, logger, augur_db) | |||
process_pull_requests(all_data, f"{owner}/{repo}: Github Pr task", repo_id, logger, augur_db) | |||
total_count += len(all_data) | |||
all_data.clear() | |||
|
|||
if len(all_data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
C1802: Do not use len(SEQUENCE)
without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
total_count += len(all_data) | ||
all_data.clear() | ||
|
||
if len(all_data): | ||
process_pull_requests(all_data, f"{owner}/{repo}: Pr task", repo_id, logger, augur_db) | ||
process_pull_requests(all_data, f"{owner}/{repo}: Github Pr task", repo_id, logger, augur_db) | ||
total_count += len(all_data) | ||
|
||
if total_count > 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
@@ -278,8 +263,7 @@ def collect_pull_request_review_comments(repo_git: str) -> None: | |||
pr_review_msg_mapping_data = {} | |||
|
|||
pr_review_comments_len = len(all_raw_pr_review_messages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
W0612: Unused variable 'pr_review_comments_len' (unused-variable)
Signed commits