Don't ignore stale repos

This updated time doesn't reflect whether any issues have been updated inside, unfortunately.
This commit is contained in:
Jake Howard 2019-10-29 12:03:58 +00:00
parent 849fd70b83
commit aeefd70f61
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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