# Fetch pull requests reliably regardless of repository size

> Resolved a crash in GitHubTools where get_pull_requests would raise an IndexError if the repository contained fewer pull requests than the specified limit.

- Published: 2026-04-09
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/fetch-pull-requests-reliably-regardless-of-repository-size
- Markdown: https://agno-com-nine.vercel.app/articles/fetch-pull-requests-reliably-regardless-of-repository-size.md

Resolved a crash in `GitHubTools` where `get_pull_requests` would raise an `IndexError` if the repository contained fewer pull requests than the specified limit. The tool now returns however many PRs are available.
