Get Created Pull Requests Tool
get-created-pull-requests-toolCount pull requests OPENED over a recent window (default 1 day), broken down per repository and per author, with a human-vs-bot/dependabot split. Use this whenever the question is how many pull requests were created, opened or raised — today, this week, on a repo, or across the team — and especially when someone asks to see it "per repo" or "by repository".
Prefer this over a per-person activity breakdown for any total. It counts from
the team's repositories rather than its member list, so it includes authors who
have no Coderbuds account (reported as authors_without_member and
created_by_non_members) and excludes a member's work in repositories this
team does not ship. A member-first count gets both of those wrong.
The result carries its own denominator: repositories is exactly the list the
numbers came from, so you can answer "which repos is this based on" from the
same call. Slugs that match no team repository come back in
unmatched_repositories instead of quietly counting zero.
Opened is counted by the time the provider recorded the pull request being
opened. That is a different set from merged in the window — use
get-merged-pull-requests for merges, and never present the two as reconciling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days, trailing from now. Defaults to 1 — note that is the last 24 hours, not today's calendar day. | |
| 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 counts with is_bot and is_member flags. | |
| counted_as | Yes | What "created" means in this result, to quote when reporting it. | |
| bot_created | Yes | PRs opened by bots (any "[bot]" login). | |
| not_captured | Yes | Limits of this result, to repeat when reporting the numbers. | |
| repositories | Yes | Repository slugs the numbers came from — the denominator for the whole result. | |
| human_created | Yes | PRs opened by humans. | |
| total_created | Yes | Total PRs opened in the window (respects include_bots). | |
| dependabot_created | Yes | PRs opened by dependabot specifically. | |
| authors_without_member | Yes | Human authors with no Coderbuds membership on this team — people a per-person breakdown would have omitted entirely. | |
| created_by_non_members | Yes | PRs those non-member humans opened. | |
| repositories_breakdown | Yes | Per-repository totals with human/bot split, highest first. | |
| unmatched_repositories | Yes | Requested slugs that did not match a team repository. |