| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CodeCommit.ListPullRequests
Description
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.
This operation returns paginated results.
Synopsis
- listPullRequests :: Text -> ListPullRequests
- data ListPullRequests
- lprAuthorARN :: Lens' ListPullRequests (Maybe Text)
- lprNextToken :: Lens' ListPullRequests (Maybe Text)
- lprPullRequestStatus :: Lens' ListPullRequests (Maybe PullRequestStatusEnum)
- lprMaxResults :: Lens' ListPullRequests (Maybe Int)
- lprRepositoryName :: Lens' ListPullRequests Text
- listPullRequestsResponse :: Int -> ListPullRequestsResponse
- data ListPullRequestsResponse
- lprrsNextToken :: Lens' ListPullRequestsResponse (Maybe Text)
- lprrsResponseStatus :: Lens' ListPullRequestsResponse Int
- lprrsPullRequestIds :: Lens' ListPullRequestsResponse [Text]
Creating a Request
Arguments
| :: Text | |
| -> ListPullRequests |
Creates a value of ListPullRequests with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lprAuthorARN- 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.lprNextToken- An enumeration token that when provided in a request, returns the next batch of the results.lprPullRequestStatus- Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.lprMaxResults- A non-negative integer used to limit the number of returned results.lprRepositoryName- The name of the repository for which you want to list pull requests.
data ListPullRequests Source #
See: listPullRequests smart constructor.
Instances
Request Lenses
lprAuthorARN :: Lens' ListPullRequests (Maybe Text) Source #
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.
lprNextToken :: Lens' ListPullRequests (Maybe Text) Source #
An enumeration token that when provided in a request, returns the next batch of the results.
lprPullRequestStatus :: Lens' ListPullRequests (Maybe PullRequestStatusEnum) Source #
Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.
lprMaxResults :: Lens' ListPullRequests (Maybe Int) Source #
A non-negative integer used to limit the number of returned results.
lprRepositoryName :: Lens' ListPullRequests Text Source #
The name of the repository for which you want to list pull requests.
Destructuring the Response
listPullRequestsResponse Source #
Arguments
| :: Int | |
| -> ListPullRequestsResponse |
Creates a value of ListPullRequestsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lprrsNextToken- An enumeration token that when provided in a request, returns the next batch of the results.lprrsResponseStatus- -- | The response status code.lprrsPullRequestIds- The system-generated IDs of the pull requests.
data ListPullRequestsResponse Source #
See: listPullRequestsResponse smart constructor.
Instances
Response Lenses
lprrsNextToken :: Lens' ListPullRequestsResponse (Maybe Text) Source #
An enumeration token that when provided in a request, returns the next batch of the results.
lprrsResponseStatus :: Lens' ListPullRequestsResponse Int Source #
- - | The response status code.
lprrsPullRequestIds :: Lens' ListPullRequestsResponse [Text] Source #
The system-generated IDs of the pull requests.