feat: categorize_issues.py now accepts a full github search URL as input instead of a raw query string

This commit is contained in:
Coco Sheng
2026-05-06 16:32:59 -04:00
parent 374e4713d8
commit fb236ea0e2
2 changed files with 25 additions and 9 deletions
+4 -4
View File
@@ -23,12 +23,12 @@ correct types (`bug` or `feature`) directly on GitHub, and then fetch the data
into a local JSON file for analysis.
**A) Auto-Categorize on GitHub:** We provide a dedicated Python script that will
automatically fetch uncategorized issues matching your search query, classify
them using the Gemini API, and apply the correct labels and title prefixes
(`[Bug]` or `[Feature]`) directly on GitHub.
automatically fetch uncategorized issues matching your search URL, classify them
using the Gemini API, and apply the correct labels and title prefixes (`[Bug]`
or `[Feature]`) directly on GitHub.
```bash
python3 categorize_issues.py --api-key "YOUR_KEY" --search "repo:google-gemini/gemini-cli -label:type/bug -label:type/feature is:open" --limit 50
python3 categorize_issues.py "https://github.com/google-gemini/gemini-cli/issues/?q=-label:type/bug+-label:type/feature+is:open" --api-key "YOUR_KEY" --limit 50
```
**B) Export to JSON:** Once the issues are correctly labeled on GitHub, fetch