github_api_paginated_search
/github_api_paginated_search
Pobiera dane z Search API GitHuba przez gh CLI z poprawną paginacją i scalaniem wyników, gdy trzeba więcej niż 100 elementów lub pełne pokrycie okresu.
- Autor
- cxcscmu ↗
- Repozytorium
- SkillLearnBench ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 02.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 02.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pobiera dane z Search API GitHuba przez gh CLI z poprawną paginacją i scalaniem wyników, gdy trzeba więcej niż 100 elementów lub pełne pokrycie okresu.
Oryginalny opis (EN)
Fetch data from GitHub's Search API using the GitHub CLI (gh) while correctly handling pagination and merging results. Use this when you need to retrieve more than 100 items or ensure full dataset coverage for a specific period.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 16 linii, 152 słów
Podgląd SKILL.md
--- name: github_api_paginated_search description: Fetch data from GitHub's Search API using the GitHub CLI (gh) while correctly handling pagination and merging results. Use this when you need to retrieve more than 100 items or ensure full dataset coverage for a specific period. --- To fetch all items from a GitHub search query across multiple pages: 1. Use the `gh api` command with the `--paginate` flag. 2. Target the `search/issues` endpoint (which covers both Issues and Pull Requests). 3. Append your query using the `-f q="..."` parameter. 4. Use `jq` with the `-s` (slurp) flag to combine the separate JSON objects returned for each page into a single array of items. Example for fetching all PRs created in a specific month: ```bash gh api --paginate "search/issues" -f q="repo:cli/cli is:pr created:2024-12-01..2024-12-31" | jq -s 'map(.items) | add' > prs.json ``` Key considerations: - **Pagination**: Without `-s 'map(.items) | add'`, `jq` will only process the first page's object or encounter errors when trying to treat multiple JSON objects as a single stream. - **Separate Queries**: Use distinct queries for "created" and "closed" events to ensure accuracy, as an item created in one month might be closed in another.
Wersje
W bazie nie ma innych skilli o nazwie github_api_paginated_search.
Migawka bazy z 13.11.2026 · wersja paczki 2b8edfac4fd9 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100evo-gh-data-fetcher
Pobiera dane o pull requestach i issues z repozytorium GitHub przez REST API z curl lub subprocess, z parsowaniem JSON, paginacją, filtrowaniem dat i obsługą błędów. - 96create-test
Tworzy lub aktualizuje testy, aby zapewnić pełne pokrycie bieżących zmian w kodzie. - 100github-commit-recovery
Odzyskuje usunięte commity z GitHuba przez REST API, interfejs webowy i git fetch, gdy znane są ich SHA, aby pobrać treść, diffy i patche. - 100github-commit-recovery
Odzyskuje usunięte commity z GitHuba przez REST API, interfejs webowy i git fetch, gdy znane są ich SHA, aby pobrać treść, diffy i patche. - 100github-gh-cli
Sprawdza przez gh CLI pull requesty, issues, uruchomienia workflow i dane API bez otwierania przeglądarki, z wynikiem w JSON. - 95github-cli
Obsługuje operacje na GitHubie przez lokalny gh CLI: adresy URL, wyszukiwanie repozytoriów i kodu, issues, pull requesty, Actions, wydania, uprawnienia i zapytania API.