You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablesscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
_build_paginated_url in devops_cli.github.rate_limiter checks if 'page=' in endpoint:, which matches per_page=100 as a substring. re.sub(r'([?&])page=\d+', ...) then fails to match, returning the endpoint unchanged without appending &page=2. This causes _run_gh_paginated to request page 1 indefinitely in an infinite loop.
Additionally, devops gh project reconcile --dry-run does not cache candidate issues/PRs and queries all historical closed PRs (state=all), causing --dry-run to execute for minutes rather than returning in seconds.
Root Cause
In _build_paginated_url, substring match against page= triggers on per_page=.
_fetch_repository_issues and _fetch_repository_prs do not specify use_cache=True with cache TTL.
_fetch_repository_prs requests state=all even though _extract_linked_issue_numbers only inspects open PRs.
--dry-run evaluates candidates that do not exist on the project board.
Proposed Fix
Use standard library urllib.parse (urlsplit, parse_qs, urlencode, urlunsplit) in _build_paginated_url and _extract_page_per_page to reliably parse and replace the page query parameter.
Enable client-side caching (use_cache=True, cache_ttl=DEFAULT_GH_CACHE_TTL_SECONDS) on repository issue and PR fetches.
Optimize PR fetching to state=open for linked issue number resolution.
In --dry-run mode, only evaluate items that exist in the active project board items.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/cliCore CLI framework, Typer subcommands, options, and tablesscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
Activity
fix(github): resolve paginated url query replacement loop and optimiz…
feat(release): v0.2.19 (#217)