GitHub Pulls List
1 credits/call
ae_github_pulls_list
List pull requests in a GitHub repository, filtered by status (open, closed, or all), branches, or sort order.
1 credits/call
Pricing
1 credits/call
| Condition | Charge |
|---|---|
| Each call | 1 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
base | string | No | Filter pulls by base branch name. Example: `gh-pages`. | — |
head | string | No | Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`. | — |
page | integer | No | The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | 1 |
repo | string | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | — |
sort | enum (created | updated | popularity | long-running) | No | What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month. | created |
owner | string | Yes | The account owner of the repository. The name is not case sensitive. | — |
state | enum (open | closed | all) | No | Either `open`, `closed`, or `all` to filter by state. | open |
per_page | integer | No | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | 30 |
direction | enum (asc | desc) | No | The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. | — |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_github_pulls_list' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"repo": "xxx",
"owner": "xxx"
}
}'No response example available yet.

