list_pull_requests
¶
list_pull_requests(
repository_name: RepositoryName,
*,
config_overrides: Optional[CodeCommitClientConfig] = None,
author_arn: Optional[Arn] = None,
pull_request_status: Optional[PullRequestStatusEnum] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListPullRequestsOutput
Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
Parameters:
-
repository_name(RepositoryName) –The name of the repository for which you want to list pull requests.
-
author_arn(Optional[Arn], default:None) –Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.
-
pull_request_status(Optional[PullRequestStatusEnum], default:None) –Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.
-
next_token(Optional[NextToken], default:None) –An enumeration token that, when provided in a request, returns the next batch of the results.
-
max_results(Optional[MaxResults], default:None) –A non-zero, non-negative integer used to limit the number of returned results.
Raises:
-
AuthorDoesNotExistException–The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.
-
EncryptionIntegrityChecksFailedException–An encryption integrity check failed.
-
EncryptionKeyAccessDeniedException–An encryption key could not be accessed.
-
EncryptionKeyDisabledException–The encryption key is disabled.
-
EncryptionKeyNotFoundException–No encryption key was found.
-
EncryptionKeyUnavailableException–The encryption key is not available.
-
InvalidAuthorArnException–The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again.
-
InvalidContinuationTokenException–The specified continuation token is not valid.
-
InvalidMaxResultsException–The specified number of maximum results is not valid.
-
InvalidPullRequestStatusException–The pull request status is not valid. The only valid values are
OPENandCLOSED. -
InvalidRepositoryNameException–A specified repository name is not valid.
This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
-
RepositoryDoesNotExistException–The specified repository does not exist.
-
RepositoryNameRequiredException–A repository name is required, but was not specified.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codecommit/_services/code_commit.py
3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 | |