libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer
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.CodeGuruReviewer.Types.CommitDiffSourceCodeType

Description

 
Synopsis

Documentation

data CommitDiffSourceCodeType Source #

A type of SourceCodeType that specifies the commit diff for a pull request on an associated repository. The SourceCommit and DestinationCommit fields are required to do a pull request code review.

See: newCommitDiffSourceCodeType smart constructor.

Constructors

CommitDiffSourceCodeType' 

Fields

  • sourceCommit :: Maybe Text

    The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.

  • mergeBaseCommit :: Maybe Text

    The SHA of the merge base of a commit.

  • destinationCommit :: Maybe Text

    The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.

Instances

Instances details
Eq CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

Read CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

Show CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

Generic CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

Associated Types

type Rep CommitDiffSourceCodeType :: Type -> Type #

NFData CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

Hashable CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

ToJSON CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

FromJSON CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

type Rep CommitDiffSourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType

type Rep CommitDiffSourceCodeType = D1 ('MetaData "CommitDiffSourceCodeType" "Amazonka.CodeGuruReviewer.Types.CommitDiffSourceCodeType" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "CommitDiffSourceCodeType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceCommit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "mergeBaseCommit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "destinationCommit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newCommitDiffSourceCodeType :: CommitDiffSourceCodeType Source #

Create a value of CommitDiffSourceCodeType 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:sourceCommit:CommitDiffSourceCodeType', commitDiffSourceCodeType_sourceCommit - The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.

$sel:mergeBaseCommit:CommitDiffSourceCodeType', commitDiffSourceCodeType_mergeBaseCommit - The SHA of the merge base of a commit.

$sel:destinationCommit:CommitDiffSourceCodeType', commitDiffSourceCodeType_destinationCommit - The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.

commitDiffSourceCodeType_sourceCommit :: Lens' CommitDiffSourceCodeType (Maybe Text) Source #

The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.

commitDiffSourceCodeType_destinationCommit :: Lens' CommitDiffSourceCodeType (Maybe Text) Source #

The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.