Skip to content

fix: Point pr-review-scanner at rossoctl repo names#34

Open
rubambiza wants to merge 1 commit into
rossoctl:mainfrom
rubambiza:fix/pr-review-scanner-rossoctl-repos
Open

fix: Point pr-review-scanner at rossoctl repo names#34
rubambiza wants to merge 1 commit into
rossoctl:mainfrom
rubambiza:fix/pr-review-scanner-rossoctl-repos

Conversation

@rubambiza

Copy link
Copy Markdown
Contributor

Summary

gh pr list --repo <renamed-repo> follows the org rename for a bare listing, but silently drops results when the query is combined with a --label (or --author) filter. Because pr-review-scanner.sh hardcoded the old kagenti/* repo names, its --label ready-for-ai-review query returned zero matches after the rename — so labeled PRs were skipped with no error and never queued for review.

This points REPOS at the canonical rossoctl/* names (kagentirossoctl, kagenti-extensionscortex), which restores the label query.

Why separate from the search-restore fix

This is a distinct failure mode from the search-based one (gh api search/issues 422 vs. gh pr list filtered-redirect drop) and touches a different file, so it is isolated here for a clean, revertible change.

Verification

  • A labeled PR that returned 0 under the old repo names is now found and marked eligible by the scanner dry-run.
  • No behavior change beyond the repo list; syntax-checked.

Scope / follow-up

Minimal interim fix. The full allowlist-driven enumeration (a shared core-repos list read by all programs, replacing hardcoded arrays) lands in a later change tracked under the epic. dep-bump-scanner.sh has the same class of bug via --author "app/dependabot"; it is deferred to that allowlist change because it also requires resolving duplicate local clones.

Part of #32.

Assisted-By: Claude Code

gh pr list --repo follows org renames for bare listing but SILENTLY
drops results when combined with --label (and --author) filters. The
scanner's hardcoded kagenti/* REPOS array therefore matched zero
labeled PRs after the rename, so ready-for-ai-review PRs were skipped
without any error.

Point REPOS at the canonical rossoctl/* names (kagenti->rossoctl,
kagenti-extensions->cortex) so the label query resolves again. Verified:
a labeled PR that returned 0 under the old names is now found and marked
eligible.

Minimal interim fix; the full allowlist-driven enumeration lands in a
later change. Part of rossoctl#32.

Assisted-By: Claude Code (Anthropic AI) <noreply@anthropic.com>

Signed-off-by: Gloire Rubambiza <gloire@ibm.com>
@rubambiza rubambiza self-assigned this Jul 23, 2026
@rubambiza rubambiza added the ready-for-ai-review Request automated AI code review from clawgenti label Jul 23, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Targeted rename of hardcoded kagenti/* repo names to their canonical rossoctl/* equivalents in pr-review-scanner.sh, including the in-file comment example. Fixes the silent --label filter failure caused by GitHub not forwarding filtered gh pr list queries through the org redirect.

All checks pass. Ready for human review.


Reviewed by clawgenti using github:pr-review

@rubambiza rubambiza added ready-for-human-review AI review passed, ready for human reviewer and removed ready-for-ai-review Request automated AI code review from clawgenti labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human-review AI review passed, ready for human reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants