libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeCommit.Types.CommentsForPullRequest

Description

 
Synopsis

Documentation

data CommentsForPullRequest Source #

Returns information about comments on a pull request.

See: newCommentsForPullRequest smart constructor.

Constructors

CommentsForPullRequest' 

Fields

  • beforeBlobId :: Maybe Text

    The full blob ID of the file on which you want to comment on the destination commit.

  • location :: Maybe Location

    Location information about the comment on the pull request, including the file name, line number, and whether the version of the file where the comment was made is BEFORE (destination branch) or AFTER (source branch).

  • afterCommitId :: Maybe Text

    The full commit ID of the commit that was the tip of the source branch at the time the comment was made.

  • pullRequestId :: Maybe Text

    The system-generated ID of the pull request.

  • afterBlobId :: Maybe Text

    The full blob ID of the file on which you want to comment on the source commit.

  • beforeCommitId :: Maybe Text

    The full commit ID of the commit that was the tip of the destination branch when the pull request was created. This commit is superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.

  • repositoryName :: Maybe Text

    The name of the repository that contains the pull request.

  • comments :: Maybe [Comment]

    An array of comment objects. Each comment object contains information about a comment on the pull request.

Instances

Instances details
Eq CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Read CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Show CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Generic CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Associated Types

type Rep CommentsForPullRequest :: Type -> Type #

NFData CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Methods

rnf :: CommentsForPullRequest -> () #

Hashable CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

FromJSON CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

type Rep CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

type Rep CommentsForPullRequest = D1 ('MetaData "CommentsForPullRequest" "Amazonka.CodeCommit.Types.CommentsForPullRequest" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "CommentsForPullRequest'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "beforeBlobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Location))) :*: (S1 ('MetaSel ('Just "afterCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "afterBlobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "beforeCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "comments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Comment]))))))

newCommentsForPullRequest :: CommentsForPullRequest Source #

Create a value of CommentsForPullRequest 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:beforeBlobId:CommentsForPullRequest', commentsForPullRequest_beforeBlobId - The full blob ID of the file on which you want to comment on the destination commit.

$sel:location:CommentsForPullRequest', commentsForPullRequest_location - Location information about the comment on the pull request, including the file name, line number, and whether the version of the file where the comment was made is BEFORE (destination branch) or AFTER (source branch).

$sel:afterCommitId:CommentsForPullRequest', commentsForPullRequest_afterCommitId - The full commit ID of the commit that was the tip of the source branch at the time the comment was made.

$sel:pullRequestId:CommentsForPullRequest', commentsForPullRequest_pullRequestId - The system-generated ID of the pull request.

$sel:afterBlobId:CommentsForPullRequest', commentsForPullRequest_afterBlobId - The full blob ID of the file on which you want to comment on the source commit.

$sel:beforeCommitId:CommentsForPullRequest', commentsForPullRequest_beforeCommitId - The full commit ID of the commit that was the tip of the destination branch when the pull request was created. This commit is superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.

$sel:repositoryName:CommentsForPullRequest', commentsForPullRequest_repositoryName - The name of the repository that contains the pull request.

$sel:comments:CommentsForPullRequest', commentsForPullRequest_comments - An array of comment objects. Each comment object contains information about a comment on the pull request.

commentsForPullRequest_beforeBlobId :: Lens' CommentsForPullRequest (Maybe Text) Source #

The full blob ID of the file on which you want to comment on the destination commit.

commentsForPullRequest_location :: Lens' CommentsForPullRequest (Maybe Location) Source #

Location information about the comment on the pull request, including the file name, line number, and whether the version of the file where the comment was made is BEFORE (destination branch) or AFTER (source branch).

commentsForPullRequest_afterCommitId :: Lens' CommentsForPullRequest (Maybe Text) Source #

The full commit ID of the commit that was the tip of the source branch at the time the comment was made.

commentsForPullRequest_pullRequestId :: Lens' CommentsForPullRequest (Maybe Text) Source #

The system-generated ID of the pull request.

commentsForPullRequest_afterBlobId :: Lens' CommentsForPullRequest (Maybe Text) Source #

The full blob ID of the file on which you want to comment on the source commit.

commentsForPullRequest_beforeCommitId :: Lens' CommentsForPullRequest (Maybe Text) Source #

The full commit ID of the commit that was the tip of the destination branch when the pull request was created. This commit is superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.

commentsForPullRequest_repositoryName :: Lens' CommentsForPullRequest (Maybe Text) Source #

The name of the repository that contains the pull request.

commentsForPullRequest_comments :: Lens' CommentsForPullRequest (Maybe [Comment]) Source #

An array of comment objects. Each comment object contains information about a comment on the pull request.