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.

Productivity
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
basestringNoFilter pulls by base branch name. Example: `gh-pages`.—
headstringNoFilter 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`.—
pageintegerNoThe 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
repostringYesThe name of the repository without the `.git` extension. The name is not case sensitive.—
sortenum (created | updated | popularity | long-running)NoWhat 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
ownerstringYesThe account owner of the repository. The name is not case sensitive.—
stateenum (open | closed | all)NoEither `open`, `closed`, or `all` to filter by state.open
per_pageintegerNoThe 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
directionenum (asc | desc)NoThe direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.—

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request 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.