Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
Synopsis
- data GetMergeOptions = GetMergeOptions' {}
- newGetMergeOptions :: Text -> Text -> Text -> GetMergeOptions
- getMergeOptions_conflictDetailLevel :: Lens' GetMergeOptions (Maybe ConflictDetailLevelTypeEnum)
- getMergeOptions_conflictResolutionStrategy :: Lens' GetMergeOptions (Maybe ConflictResolutionStrategyTypeEnum)
- getMergeOptions_repositoryName :: Lens' GetMergeOptions Text
- getMergeOptions_sourceCommitSpecifier :: Lens' GetMergeOptions Text
- getMergeOptions_destinationCommitSpecifier :: Lens' GetMergeOptions Text
- data GetMergeOptionsResponse = GetMergeOptionsResponse' {}
- newGetMergeOptionsResponse :: Int -> Text -> Text -> Text -> GetMergeOptionsResponse
- getMergeOptionsResponse_httpStatus :: Lens' GetMergeOptionsResponse Int
- getMergeOptionsResponse_mergeOptions :: Lens' GetMergeOptionsResponse [MergeOptionTypeEnum]
- getMergeOptionsResponse_sourceCommitId :: Lens' GetMergeOptionsResponse Text
- getMergeOptionsResponse_destinationCommitId :: Lens' GetMergeOptionsResponse Text
- getMergeOptionsResponse_baseCommitId :: Lens' GetMergeOptionsResponse Text
Creating a Request
data GetMergeOptions Source #
See: newGetMergeOptions
smart constructor.
GetMergeOptions' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> GetMergeOptions |
Create a value of GetMergeOptions
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:GetMergeOptions'
, getMergeOptions_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:GetMergeOptions'
, getMergeOptions_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.
$sel:repositoryName:GetMergeOptions'
, getMergeOptions_repositoryName
- The name of the repository that contains the commits about which you
want to get merge options.
$sel:sourceCommitSpecifier:GetMergeOptions'
, getMergeOptions_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:GetMergeOptions'
, getMergeOptions_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
getMergeOptions_conflictDetailLevel :: Lens' GetMergeOptions (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.
getMergeOptions_conflictResolutionStrategy :: Lens' GetMergeOptions (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.
getMergeOptions_repositoryName :: Lens' GetMergeOptions Text Source #
The name of the repository that contains the commits about which you want to get merge options.
getMergeOptions_sourceCommitSpecifier :: Lens' GetMergeOptions 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).
getMergeOptions_destinationCommitSpecifier :: Lens' GetMergeOptions 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 GetMergeOptionsResponse Source #
See: newGetMergeOptionsResponse
smart constructor.
GetMergeOptionsResponse' | |
|
Instances
newGetMergeOptionsResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> Text | |
-> GetMergeOptionsResponse |
Create a value of GetMergeOptionsResponse
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:httpStatus:GetMergeOptionsResponse'
, getMergeOptionsResponse_httpStatus
- The response's http status code.
$sel:mergeOptions:GetMergeOptionsResponse'
, getMergeOptionsResponse_mergeOptions
- The merge option or strategy used to merge the code.
$sel:sourceCommitId:GetMergeOptionsResponse'
, getMergeOptionsResponse_sourceCommitId
- The commit ID of the source commit specifier that was used in the merge
evaluation.
$sel:destinationCommitId:GetMergeOptionsResponse'
, getMergeOptionsResponse_destinationCommitId
- The commit ID of the destination commit specifier that was used in the
merge evaluation.
$sel:baseCommitId:GetMergeOptionsResponse'
, getMergeOptionsResponse_baseCommitId
- The commit ID of the merge base.
Response Lenses
getMergeOptionsResponse_httpStatus :: Lens' GetMergeOptionsResponse Int Source #
The response's http status code.
getMergeOptionsResponse_mergeOptions :: Lens' GetMergeOptionsResponse [MergeOptionTypeEnum] Source #
The merge option or strategy used to merge the code.
getMergeOptionsResponse_sourceCommitId :: Lens' GetMergeOptionsResponse Text Source #
The commit ID of the source commit specifier that was used in the merge evaluation.
getMergeOptionsResponse_destinationCommitId :: Lens' GetMergeOptionsResponse Text Source #
The commit ID of the destination commit specifier that was used in the merge evaluation.
getMergeOptionsResponse_baseCommitId :: Lens' GetMergeOptionsResponse Text Source #
The commit ID of the merge base.