| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.GetMergeCommit
Description
Returns information about a specified merge commit.
Synopsis
- data GetMergeCommit = GetMergeCommit' {}
- newGetMergeCommit :: Text -> Text -> Text -> GetMergeCommit
- getMergeCommit_conflictDetailLevel :: Lens' GetMergeCommit (Maybe ConflictDetailLevelTypeEnum)
- getMergeCommit_conflictResolutionStrategy :: Lens' GetMergeCommit (Maybe ConflictResolutionStrategyTypeEnum)
- getMergeCommit_repositoryName :: Lens' GetMergeCommit Text
- getMergeCommit_sourceCommitSpecifier :: Lens' GetMergeCommit Text
- getMergeCommit_destinationCommitSpecifier :: Lens' GetMergeCommit Text
- data GetMergeCommitResponse = GetMergeCommitResponse' {}
- newGetMergeCommitResponse :: Int -> GetMergeCommitResponse
- getMergeCommitResponse_baseCommitId :: Lens' GetMergeCommitResponse (Maybe Text)
- getMergeCommitResponse_destinationCommitId :: Lens' GetMergeCommitResponse (Maybe Text)
- getMergeCommitResponse_mergedCommitId :: Lens' GetMergeCommitResponse (Maybe Text)
- getMergeCommitResponse_sourceCommitId :: Lens' GetMergeCommitResponse (Maybe Text)
- getMergeCommitResponse_httpStatus :: Lens' GetMergeCommitResponse Int
Creating a Request
data GetMergeCommit Source #
See: newGetMergeCommit smart constructor.
Constructors
| GetMergeCommit' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> GetMergeCommit |
Create a value of GetMergeCommit 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:conflictDetailLevel:GetMergeCommit', getMergeCommit_conflictDetailLevel - The level of conflict detail to use. If unspecified, the default
FILE_LEVEL is used, which returns a not-mergeable result if the same
file has differences in both branches. If LINE_LEVEL is specified, a
conflict is considered not mergeable if the same file in both branches
has differences on the same line.
$sel:conflictResolutionStrategy:GetMergeCommit', getMergeCommit_conflictResolutionStrategy - Specifies which branch to use when resolving conflicts, or whether to
attempt automatically merging two versions of a file. The default is
NONE, which requires any conflicts to be resolved manually before the
merge operation is successful.
GetMergeCommit, getMergeCommit_repositoryName - The name of the repository that contains the merge commit about which
you want to get information.
$sel:sourceCommitSpecifier:GetMergeCommit', getMergeCommit_sourceCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to
identify a commit (for example, a branch name or a full commit ID).
$sel:destinationCommitSpecifier:GetMergeCommit', getMergeCommit_destinationCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to
identify a commit (for example, a branch name or a full commit ID).
Request Lenses
getMergeCommit_conflictDetailLevel :: Lens' GetMergeCommit (Maybe ConflictDetailLevelTypeEnum) Source #
The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
getMergeCommit_conflictResolutionStrategy :: Lens' GetMergeCommit (Maybe ConflictResolutionStrategyTypeEnum) Source #
Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
getMergeCommit_repositoryName :: Lens' GetMergeCommit Text Source #
The name of the repository that contains the merge commit about which you want to get information.
getMergeCommit_sourceCommitSpecifier :: Lens' GetMergeCommit Text Source #
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
getMergeCommit_destinationCommitSpecifier :: Lens' GetMergeCommit Text Source #
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
Destructuring the Response
data GetMergeCommitResponse Source #
See: newGetMergeCommitResponse smart constructor.
Constructors
| GetMergeCommitResponse' | |
Fields
| |
Instances
newGetMergeCommitResponse Source #
Create a value of GetMergeCommitResponse 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:baseCommitId:GetMergeCommitResponse', getMergeCommitResponse_baseCommitId - The commit ID of the merge base.
GetMergeCommitResponse, getMergeCommitResponse_destinationCommitId - The commit ID of the destination commit specifier that was used in the
merge evaluation.
$sel:mergedCommitId:GetMergeCommitResponse', getMergeCommitResponse_mergedCommitId - The commit ID for the merge commit created when the source branch was
merged into the destination branch. If the fast-forward merge strategy
was used, there is no merge commit.
GetMergeCommitResponse, getMergeCommitResponse_sourceCommitId - The commit ID of the source commit specifier that was used in the merge
evaluation.
$sel:httpStatus:GetMergeCommitResponse', getMergeCommitResponse_httpStatus - The response's http status code.
Response Lenses
getMergeCommitResponse_baseCommitId :: Lens' GetMergeCommitResponse (Maybe Text) Source #
The commit ID of the merge base.
getMergeCommitResponse_destinationCommitId :: Lens' GetMergeCommitResponse (Maybe Text) Source #
The commit ID of the destination commit specifier that was used in the merge evaluation.
getMergeCommitResponse_mergedCommitId :: Lens' GetMergeCommitResponse (Maybe Text) Source #
The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, there is no merge commit.
getMergeCommitResponse_sourceCommitId :: Lens' GetMergeCommitResponse (Maybe Text) Source #
The commit ID of the source commit specifier that was used in the merge evaluation.
getMergeCommitResponse_httpStatus :: Lens' GetMergeCommitResponse Int Source #
The response's http status code.