From aeefd70f611f039b4e780b118f463e7516377f18 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 29 Oct 2019 12:03:58 +0000 Subject: [PATCH] Don't ignore stale repos This updated time doesn't reflect whether any issues have been updated inside, unfortunately. --- actioner/utils/github.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/actioner/utils/github.py b/actioner/utils/github.py index b3b58dd..60c41c2 100644 --- a/actioner/utils/github.py +++ b/actioner/utils/github.py @@ -21,8 +21,6 @@ def get_existing_task(tasks: Dict[int, str], issue_or_pr): def get_relevant_issues(): since = datetime.datetime.now() - relativedelta(weeks=1) for repo in github.get_user().get_repos(): - if repo.updated_at < since: - continue for issue in repo.get_issues(since=since, state="all"): if issue.pull_request is None: yield issue @@ -31,8 +29,6 @@ def get_relevant_issues(): def get_relevant_prs(): since = datetime.datetime.now() - relativedelta(weeks=1) for repo in github.get_user().get_repos(): - if repo.updated_at < since: - continue for pull in repo.get_pulls(state="all", sort="updated", direction="desc"): if pull.updated_at < since: break