Get Merged Pull Requests Tool
get-merged-pull-requests-toolCount merged pull requests over a recent window (default 30 days), with a human-vs-bot split so you can answer "including dependabot" and "excluding dependabot" from the same result. Returns the total plus per-repository and per-author breakdowns. Optionally scope to specific "owner/name" repositories (e.g. patchstack/saas). Use this when the user asks how many PRs were merged, shipped, or closed on a repo or across the team — including bot/dependabot PRs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days. Defaults to 30. | |
| include_bots | No | Whether to include bot/dependabot PRs in the totals. Defaults to true; the result always reports the human-vs-bot split regardless. | |
| repositories | No | Optional list of "owner/name" repository slugs to scope to (e.g. ["patchstack/saas"]). A bare repo name like "saas" also matches. Omit to include every repository on the team. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Look-back window used, in days. | |
| team | Yes | Team name. | |
| since | Yes | ISO-8601 start of the window. | |
| until | Yes | ISO-8601 end of the window. | |
| authors | Yes | Per-author merged counts with an is_bot flag. | |
| bot_merged | Yes | Merged PRs authored by bots (any "[bot]" login). | |
| human_merged | Yes | Merged PRs authored by humans. | |
| repositories | Yes | Repository slugs included in the result. | |
| total_merged | Yes | Total merged PRs in the window (respects include_bots). | |
| dependabot_merged | Yes | Merged PRs authored by dependabot specifically. | |
| repositories_breakdown | Yes | Per-repository totals with human/bot split. | |
| unmatched_repositories | Yes | Requested slugs that did not match a team repository. |