Don't ignore stale repos
This updated time doesn't reflect whether any issues have been updated inside, unfortunately.
This commit is contained in:
parent
849fd70b83
commit
aeefd70f61
1 changed files with 0 additions and 4 deletions
|
@ -21,8 +21,6 @@ def get_existing_task(tasks: Dict[int, str], issue_or_pr):
|
||||||
def get_relevant_issues():
|
def get_relevant_issues():
|
||||||
since = datetime.datetime.now() - relativedelta(weeks=1)
|
since = datetime.datetime.now() - relativedelta(weeks=1)
|
||||||
for repo in github.get_user().get_repos():
|
for repo in github.get_user().get_repos():
|
||||||
if repo.updated_at < since:
|
|
||||||
continue
|
|
||||||
for issue in repo.get_issues(since=since, state="all"):
|
for issue in repo.get_issues(since=since, state="all"):
|
||||||
if issue.pull_request is None:
|
if issue.pull_request is None:
|
||||||
yield issue
|
yield issue
|
||||||
|
@ -31,8 +29,6 @@ def get_relevant_issues():
|
||||||
def get_relevant_prs():
|
def get_relevant_prs():
|
||||||
since = datetime.datetime.now() - relativedelta(weeks=1)
|
since = datetime.datetime.now() - relativedelta(weeks=1)
|
||||||
for repo in github.get_user().get_repos():
|
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"):
|
for pull in repo.get_pulls(state="all", sort="updated", direction="desc"):
|
||||||
if pull.updated_at < since:
|
if pull.updated_at < since:
|
||||||
break
|
break
|
||||||
|
|
Reference in a new issue