Skip to content

Commit 2fca973

Browse files
authored
Update pending_user_response.py to fix lint runner
1 parent a194264 commit 2fca973

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pending_user_response.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def main():
2424
repo = g.get_repo(REPO_NAME)
2525

2626
print("[VALIDATION] Would connect to Github and fetch repo:", REPO_NAME)
27+
2728
issues = repo.get_issues(state='open', labels=[LABEL])
2829
print(f"[VALIDATION] Would fetch open issues with label '{LABEL}'.")
2930

@@ -41,13 +42,13 @@ def main():
4142
# ---- REMINDER LOGIC ----
4243
# Only remind if NO reminder in last 7 days
4344
recent_auto_reminder = any(
44-
(now - c.created_at).days < REMINDER_COOLDOWN_DAYS
45-
for c in auto_comments
45+
(now - c.created_at).days < REMINDER_COOLDOWN_DAYS for c in auto_comments
4646
)
4747

4848
if not auto_comments:
4949
if (
50-
last_comment and (now - last_comment.created_at).days >= DAYS_BEFORE_REMINDER
50+
last_comment
51+
and (now - last_comment.created_at).days >= DAYS_BEFORE_REMINDER
5152
):
5253
user = issue.user.login
5354
print(

0 commit comments

Comments
 (0)