File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments