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 |
Synopsis
- data PullRequest = PullRequest' {
- approvalRules :: Maybe [ApprovalRule]
- authorArn :: Maybe Text
- pullRequestId :: Maybe Text
- creationDate :: Maybe POSIX
- pullRequestStatus :: Maybe PullRequestStatusEnum
- title :: Maybe Text
- clientRequestToken :: Maybe Text
- lastActivityDate :: Maybe POSIX
- revisionId :: Maybe Text
- pullRequestTargets :: Maybe [PullRequestTarget]
- description :: Maybe Text
- newPullRequest :: PullRequest
- pullRequest_approvalRules :: Lens' PullRequest (Maybe [ApprovalRule])
- pullRequest_authorArn :: Lens' PullRequest (Maybe Text)
- pullRequest_pullRequestId :: Lens' PullRequest (Maybe Text)
- pullRequest_creationDate :: Lens' PullRequest (Maybe UTCTime)
- pullRequest_pullRequestStatus :: Lens' PullRequest (Maybe PullRequestStatusEnum)
- pullRequest_title :: Lens' PullRequest (Maybe Text)
- pullRequest_clientRequestToken :: Lens' PullRequest (Maybe Text)
- pullRequest_lastActivityDate :: Lens' PullRequest (Maybe UTCTime)
- pullRequest_revisionId :: Lens' PullRequest (Maybe Text)
- pullRequest_pullRequestTargets :: Lens' PullRequest (Maybe [PullRequestTarget])
- pullRequest_description :: Lens' PullRequest (Maybe Text)
Documentation
data PullRequest Source #
Returns information about a pull request.
See: newPullRequest
smart constructor.
PullRequest' | |
|
Instances
newPullRequest :: PullRequest Source #
Create a value of PullRequest
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:approvalRules:PullRequest'
, pullRequest_approvalRules
- The approval rules applied to the pull request.
$sel:authorArn:PullRequest'
, pullRequest_authorArn
- The Amazon Resource Name (ARN) of the user who created the pull request.
$sel:pullRequestId:PullRequest'
, pullRequest_pullRequestId
- The system-generated ID of the pull request.
$sel:creationDate:PullRequest'
, pullRequest_creationDate
- The date and time the pull request was originally created, in timestamp
format.
$sel:pullRequestStatus:PullRequest'
, pullRequest_pullRequestStatus
- The status of the pull request. Pull request status can only change from
OPEN
to CLOSED
.
$sel:title:PullRequest'
, pullRequest_title
- The user-defined title of the pull request. This title is displayed in
the list of pull requests to other repository users.
$sel:clientRequestToken:PullRequest'
, pullRequest_clientRequestToken
- A unique, client-generated idempotency token that, when provided in a
request, ensures the request cannot be repeated with a changed
parameter. If a request is received with the same parameters and a token
is included, the request returns information about the initial request
that used that token.
$sel:lastActivityDate:PullRequest'
, pullRequest_lastActivityDate
- The day and time of the last user or system activity on the pull
request, in timestamp format.
$sel:revisionId:PullRequest'
, pullRequest_revisionId
- The system-generated revision ID for the pull request.
$sel:pullRequestTargets:PullRequest'
, pullRequest_pullRequestTargets
- The targets of the pull request, including the source branch and
destination branch for the pull request.
$sel:description:PullRequest'
, pullRequest_description
- The user-defined description of the pull request. This description can
be used to clarify what should be reviewed and other details of the
request.
pullRequest_approvalRules :: Lens' PullRequest (Maybe [ApprovalRule]) Source #
The approval rules applied to the pull request.
pullRequest_authorArn :: Lens' PullRequest (Maybe Text) Source #
The Amazon Resource Name (ARN) of the user who created the pull request.
pullRequest_pullRequestId :: Lens' PullRequest (Maybe Text) Source #
The system-generated ID of the pull request.
pullRequest_creationDate :: Lens' PullRequest (Maybe UTCTime) Source #
The date and time the pull request was originally created, in timestamp format.
pullRequest_pullRequestStatus :: Lens' PullRequest (Maybe PullRequestStatusEnum) Source #
The status of the pull request. Pull request status can only change from
OPEN
to CLOSED
.
pullRequest_title :: Lens' PullRequest (Maybe Text) Source #
The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.
pullRequest_clientRequestToken :: Lens' PullRequest (Maybe Text) Source #
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
pullRequest_lastActivityDate :: Lens' PullRequest (Maybe UTCTime) Source #
The day and time of the last user or system activity on the pull request, in timestamp format.
pullRequest_revisionId :: Lens' PullRequest (Maybe Text) Source #
The system-generated revision ID for the pull request.
pullRequest_pullRequestTargets :: Lens' PullRequest (Maybe [PullRequestTarget]) Source #
The targets of the pull request, including the source branch and destination branch for the pull request.
pullRequest_description :: Lens' PullRequest (Maybe Text) Source #
The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.