Copyright | (c) 2013-2021 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 |
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
- data ListPullRequests = ListPullRequests' {}
- newListPullRequests :: Text -> ListPullRequests
- listPullRequests_authorArn :: Lens' ListPullRequests (Maybe Text)
- listPullRequests_nextToken :: Lens' ListPullRequests (Maybe Text)
- listPullRequests_pullRequestStatus :: Lens' ListPullRequests (Maybe PullRequestStatusEnum)
- listPullRequests_maxResults :: Lens' ListPullRequests (Maybe Int)
- listPullRequests_repositoryName :: Lens' ListPullRequests Text
- data ListPullRequestsResponse = ListPullRequestsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- pullRequestIds :: [Text]
- newListPullRequestsResponse :: Int -> ListPullRequestsResponse
- listPullRequestsResponse_nextToken :: Lens' ListPullRequestsResponse (Maybe Text)
- listPullRequestsResponse_httpStatus :: Lens' ListPullRequestsResponse Int
- listPullRequestsResponse_pullRequestIds :: Lens' ListPullRequestsResponse [Text]
Creating a Request
data ListPullRequests Source #
See: newListPullRequests
smart constructor.
ListPullRequests' | |
|
Instances
Create a value of ListPullRequests
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:authorArn:ListPullRequests'
, listPullRequests_authorArn
- 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.
$sel:nextToken:ListPullRequests'
, listPullRequests_nextToken
- An enumeration token that, when provided in a request, returns the next
batch of the results.
$sel:pullRequestStatus:ListPullRequests'
, listPullRequests_pullRequestStatus
- Optional. The status of the pull request. If used, this refines the
results to the pull requests that match the specified status.
$sel:maxResults:ListPullRequests'
, listPullRequests_maxResults
- A non-zero, non-negative integer used to limit the number of returned
results.
$sel:repositoryName:ListPullRequests'
, listPullRequests_repositoryName
- The name of the repository for which you want to list pull requests.
Request Lenses
listPullRequests_authorArn :: 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.
listPullRequests_nextToken :: Lens' ListPullRequests (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
listPullRequests_pullRequestStatus :: 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.
listPullRequests_maxResults :: Lens' ListPullRequests (Maybe Int) Source #
A non-zero, non-negative integer used to limit the number of returned results.
listPullRequests_repositoryName :: Lens' ListPullRequests Text Source #
The name of the repository for which you want to list pull requests.
Destructuring the Response
data ListPullRequestsResponse Source #
See: newListPullRequestsResponse
smart constructor.
ListPullRequestsResponse' | |
|
Instances
newListPullRequestsResponse Source #
Create a value of ListPullRequestsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListPullRequests'
, listPullRequestsResponse_nextToken
- An enumeration token that allows the operation to batch the next results
of the operation.
$sel:httpStatus:ListPullRequestsResponse'
, listPullRequestsResponse_httpStatus
- The response's http status code.
$sel:pullRequestIds:ListPullRequestsResponse'
, listPullRequestsResponse_pullRequestIds
- The system-generated IDs of the pull requests.
Response Lenses
listPullRequestsResponse_nextToken :: Lens' ListPullRequestsResponse (Maybe Text) Source #
An enumeration token that allows the operation to batch the next results of the operation.
listPullRequestsResponse_httpStatus :: Lens' ListPullRequestsResponse Int Source #
The response's http status code.
listPullRequestsResponse_pullRequestIds :: Lens' ListPullRequestsResponse [Text] Source #
The system-generated IDs of the pull requests.