Triage Tools: Remove workarround when searching for issues
When the `'state'` is not informed, it means that only open issues will be fetched. Because of this, a workarround was used to enclose the closed ones as well. However, we can use `'all'` to fetch both open and closed.
This commit is contained in:
parent
55613de74c
commit
5f3b271421
|
@ -76,7 +76,7 @@ def gitea_json_issues_search(
|
|||
type=None,
|
||||
since=None,
|
||||
before=None,
|
||||
state=None,
|
||||
state='all',
|
||||
labels=None,
|
||||
created=False,
|
||||
reviewed=False,
|
||||
|
@ -115,18 +115,6 @@ def gitea_json_issues_search(
|
|||
|
||||
issues = url_json_get_all_pages(issues_url, verbose=verbose)
|
||||
|
||||
if not state:
|
||||
# Also search closed issues:
|
||||
issues.extend(gitea_json_issues_search(type=type,
|
||||
since=since,
|
||||
before=before,
|
||||
state="closed",
|
||||
labels=labels,
|
||||
created=created,
|
||||
reviewed=reviewed,
|
||||
access_token=access_token,
|
||||
verbose=False))
|
||||
|
||||
if verbose:
|
||||
print(f"Total: {len(issues)} ", end="\n\n", flush=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue