Skip to content

Commit 5e1fc20

Browse files
fix(skill/rtk-triage): increase PR/issue limit to 200 with pagination hint (rtk-ai#717)
* fix(skill/rtk-triage): increase PR/issue limit to 200 with pagination hint Raise gh pr list limit from 60 to 200 to match gh's max per call. Add inline comment explaining how to paginate for repos with >200 open PRs. Update threshold warning from >60 to >200 PRs/issues. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Florian BRUNIAUX <[email protected]> * docs(architecture): update module count to 67 (hook_cmd added in rtk-ai#573) hook_cmd.rs was added in feat: add Gemini CLI support (rtk-ai#573) but ARCHITECTURE.md was not updated. Fixes pre-push validation failure. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Florian BRUNIAUX <[email protected]> --------- Signed-off-by: Florian BRUNIAUX <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]>
1 parent 4020aa0 commit 5e1fc20

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.claude/skills/rtk-triage/SKILL.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,13 @@ gh api "repos/{owner}/{repo}/collaborators" --jq '.[].login'
5757

5858
**PRs** :
5959
```bash
60-
gh pr list --state open --limit 60 \
60+
# Fetcher toutes les PRs ouvertes — paginer si nécessaire (gh limite à 200 par appel)
61+
gh pr list --state open --limit 200 \
6162
--json number,title,author,createdAt,updatedAt,additions,deletions,changedFiles,isDraft,mergeable,reviewDecision,statusCheckRollup,body
6263

64+
# Si le repo a >200 PRs ouvertes, relancer avec --search pour paginer :
65+
# gh pr list --state open --limit 200 --search "is:pr is:open sort:updated-desc" ...
66+
6367
# Pour chaque PR, récupérer les fichiers modifiés (nécessaire pour overlap detection)
6468
# Prioriser les PRs candidates (même domaine, même auteur)
6569
gh pr view {num} --json files --jq '[.files[].path] | join(",")'
@@ -232,6 +236,6 @@ Croisement issues × PRs. {N} PRs ouvertes, {N} issues ouvertes.
232236

233237
- Langue : argument `en`/`fr`. Défaut : `fr`. Les commentaires GitHub restent toujours en anglais.
234238
- Ne jamais poster de commentaires GitHub sans validation utilisateur (AskUserQuestion).
235-
- Si >150 issues ou >60 PRs : prévenir l'utilisateur, proposer de filtrer par label ou date.
239+
- Si >200 issues ou >200 PRs : prévenir l'utilisateur et paginer (relancer avec `--search` ou `gh api` avec pagination).
236240
- L'analyse croisée (Phase 3) est toujours exécutée — c'est la valeur ajoutée de ce skill.
237241
- Le fichier claudedocs est sauvegardé automatiquement sauf si l'utilisateur dit "no save".

ARCHITECTURE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ SHARED utils.rs Helpers N/A ✓
293293
tee.rs Full output recovery N/A ✓
294294
```
295295

296-
**Total: 66 modules** (44 command modules + 22 infrastructure modules)
296+
**Total: 67 modules** (45 command modules + 22 infrastructure modules)
297297

298298
### Module Count Breakdown
299299

300-
- **Command Modules**: 44 (directly exposed to users)
300+
- **Command Modules**: 45 (directly exposed to users)
301301
- **Infrastructure Modules**: 22 (utils, filter, tracking, tee, config, init, gain, toml_filter, verify_cmd, trust, etc.)
302302
- **Git Commands**: 7 operations (status, diff, log, add, commit, push, branch/checkout)
303303
- **JS/TS Tooling**: 8 modules (modern frontend/fullstack development)

0 commit comments

Comments
 (0)