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

Description

 
Synopsis

Documentation

data PullRequestTarget Source #

Returns information about a pull request target.

See: newPullRequestTarget smart constructor.

Constructors

PullRequestTarget' 

Fields

  • sourceCommit :: Maybe Text

    The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip of the branch.

  • destinationReference :: Maybe Text

    The branch of the repository where the pull request changes are merged. Also known as the destination branch.

  • mergeMetadata :: Maybe MergeMetadata

    Returns metadata about the state of the merge, including whether the merge has been made.

  • mergeBase :: Maybe Text

    The commit ID of the most recent commit that the source branch and the destination branch have in common.

  • destinationCommit :: Maybe Text

    The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.

  • repositoryName :: Maybe Text

    The name of the repository that contains the pull request source and destination branches.

  • sourceReference :: Maybe Text

    The branch of the repository that contains the changes for the pull request. Also known as the source branch.

Instances

Instances details
Eq PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

Read PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

Show PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

Generic PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

Associated Types

type Rep PullRequestTarget :: Type -> Type #

NFData PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

Methods

rnf :: PullRequestTarget -> () #

Hashable PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

FromJSON PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

type Rep PullRequestTarget Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PullRequestTarget

type Rep PullRequestTarget = D1 ('MetaData "PullRequestTarget" "Amazonka.CodeCommit.Types.PullRequestTarget" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "PullRequestTarget'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sourceCommit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "destinationReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "mergeMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MergeMetadata)))) :*: ((S1 ('MetaSel ('Just "mergeBase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "destinationCommit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sourceReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newPullRequestTarget :: PullRequestTarget Source #

Create a value of PullRequestTarget 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:PullRequestTarget', pullRequestTarget_sourceCommit - The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip of the branch.

$sel:destinationReference:PullRequestTarget', pullRequestTarget_destinationReference - The branch of the repository where the pull request changes are merged. Also known as the destination branch.

$sel:mergeMetadata:PullRequestTarget', pullRequestTarget_mergeMetadata - Returns metadata about the state of the merge, including whether the merge has been made.

$sel:mergeBase:PullRequestTarget', pullRequestTarget_mergeBase - The commit ID of the most recent commit that the source branch and the destination branch have in common.

$sel:destinationCommit:PullRequestTarget', pullRequestTarget_destinationCommit - The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.

$sel:repositoryName:PullRequestTarget', pullRequestTarget_repositoryName - The name of the repository that contains the pull request source and destination branches.

$sel:sourceReference:PullRequestTarget', pullRequestTarget_sourceReference - The branch of the repository that contains the changes for the pull request. Also known as the source branch.

pullRequestTarget_sourceCommit :: Lens' PullRequestTarget (Maybe Text) Source #

The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip of the branch.

pullRequestTarget_destinationReference :: Lens' PullRequestTarget (Maybe Text) Source #

The branch of the repository where the pull request changes are merged. Also known as the destination branch.

pullRequestTarget_mergeMetadata :: Lens' PullRequestTarget (Maybe MergeMetadata) Source #

Returns metadata about the state of the merge, including whether the merge has been made.

pullRequestTarget_mergeBase :: Lens' PullRequestTarget (Maybe Text) Source #

The commit ID of the most recent commit that the source branch and the destination branch have in common.

pullRequestTarget_destinationCommit :: Lens' PullRequestTarget (Maybe Text) Source #

The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.

pullRequestTarget_repositoryName :: Lens' PullRequestTarget (Maybe Text) Source #

The name of the repository that contains the pull request source and destination branches.

pullRequestTarget_sourceReference :: Lens' PullRequestTarget (Maybe Text) Source #

The branch of the repository that contains the changes for the pull request. Also known as the source branch.