Integrations
GitHub
APIs
List Merged Pull Requests

List Merged Pull Requests

This method enables users to list all merged pull requests in a GitHub repository.

For more information on the API for listing pull requests, see List pull requests (opens in a new tab).

To use this API endpoint for a private repository, your GitHub token requires the following scopes:

For a Fine-grained token:

- "Pull requests" repository permissions (read)

Alternatively, for a Token (classic):

- repo

SDK Import:

from admyral.actions import list_github_merged_pull_requests

Arguments

Argument NameDescriptionRequired
Repository Owner repo_ownerThe owner of the repository.yes
Repository Name repo_nameThe name of the repository.yes
Start Time start_timeThe date and time to start retrieving events in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). If not specified, all available Audit logs will be returned-
End Time end_timeThe date and time to stop retrieving events in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).-
Limit limitThe maximum number of events to retrieve.-

Returns

A JSON array of merged pull requests.

Required Secrets

Secret PlaceholderDescription
GITHUB_SECRETGitHub secret. See GitHub setup

SDK Example

commit_diff = list_github_merged_pull_requests(
	repo_owner="admyral",
	repo_name="admyral",
	secrets={"GITHUB_SECRET": "your_github_secret"}
)