diff --git a/lib/python/qmk/cli/generate/develop_pr_list.py b/lib/python/qmk/cli/generate/develop_pr_list.py index 549db5b185f..9bbe2099302 100755 --- a/lib/python/qmk/cli/generate/develop_pr_list.py +++ b/lib/python/qmk/cli/generate/develop_pr_list.py @@ -39,7 +39,12 @@ def _try_open_cache(cli): return None cache_loc = Path(cli.config_file).parent - return SqliteCache(cache_loc) + cache = SqliteCache(cache_loc) + + if cli.args.clean: + cache.clear() + + return cache def _get_github(): @@ -48,9 +53,11 @@ def _get_github(): except ImportError: return None - return GhApi() + # ghapi v2 (July 2026) is now async by default - luckily v1 happily ignores the sync argument + return GhApi(sync=True) +@cli.argument('-c', '--clean', arg_only=True, action='store_true', help="Remove cache before list generation.") @cli.argument('-f', '--from-ref', default='0.11.0', help='Git revision/tag/reference/branch to begin search') @cli.argument('-b', '--branch', default='upstream/develop', help='Git branch to iterate (default: "upstream/develop")') @cli.subcommand('Creates the develop PR list.', hidden=False if cli.config.user.developer else True)