amazonka-codecommit-2.0: Amazon CodeCommit SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • afterBlobId :: Maybe Text

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

  • 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.

  • beforeBlobId :: Maybe Text

    The full blob ID of the file on which you want to comment on the destination 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.

  • comments :: Maybe [Comment]

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

  • 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).

  • pullRequestId :: Maybe Text

    The system-generated ID of the pull request.

  • repositoryName :: Maybe Text

    The name of the repository that contains the pull request.

Instances

Instances details
FromJSON 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 #

Read CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Show CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

NFData CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Methods

rnf :: CommentsForPullRequest -> () #

Eq CommentsForPullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.CommentsForPullRequest

Hashable 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" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "CommentsForPullRequest'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "afterBlobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "afterCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "beforeBlobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "beforeCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "comments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Comment])) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Location))) :*: (S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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:afterBlobId:CommentsForPullRequest', commentsForPullRequest_afterBlobId - The full blob ID of the file on which you want to comment on the source commit.

$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:beforeBlobId:CommentsForPullRequest', commentsForPullRequest_beforeBlobId - The full blob ID of the file on which you want to comment on the destination 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:comments:CommentsForPullRequest', commentsForPullRequest_comments - An array of comment objects. Each comment object contains information about a comment on the pull request.

$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:pullRequestId:CommentsForPullRequest', commentsForPullRequest_pullRequestId - The system-generated ID of the pull request.

$sel:repositoryName:CommentsForPullRequest', commentsForPullRequest_repositoryName - The name of the repository that contains 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_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_beforeBlobId :: Lens' CommentsForPullRequest (Maybe Text) Source #

The full blob ID of the file on which you want to comment on the destination 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_comments :: Lens' CommentsForPullRequest (Maybe [Comment]) Source #

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

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_pullRequestId :: Lens' CommentsForPullRequest (Maybe Text) Source #

The system-generated ID of the pull request.

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

The name of the repository that contains the pull request.