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 |
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request.
Synopsis
- data MergePullRequestByThreeWay = MergePullRequestByThreeWay' {
- email :: Maybe Text
- authorName :: Maybe Text
- conflictDetailLevel :: Maybe ConflictDetailLevelTypeEnum
- commitMessage :: Maybe Text
- conflictResolution :: Maybe ConflictResolution
- conflictResolutionStrategy :: Maybe ConflictResolutionStrategyTypeEnum
- keepEmptyFolders :: Maybe Bool
- sourceCommitId :: Maybe Text
- pullRequestId :: Text
- repositoryName :: Text
- newMergePullRequestByThreeWay :: Text -> Text -> MergePullRequestByThreeWay
- mergePullRequestByThreeWay_email :: Lens' MergePullRequestByThreeWay (Maybe Text)
- mergePullRequestByThreeWay_authorName :: Lens' MergePullRequestByThreeWay (Maybe Text)
- mergePullRequestByThreeWay_conflictDetailLevel :: Lens' MergePullRequestByThreeWay (Maybe ConflictDetailLevelTypeEnum)
- mergePullRequestByThreeWay_commitMessage :: Lens' MergePullRequestByThreeWay (Maybe Text)
- mergePullRequestByThreeWay_conflictResolution :: Lens' MergePullRequestByThreeWay (Maybe ConflictResolution)
- mergePullRequestByThreeWay_conflictResolutionStrategy :: Lens' MergePullRequestByThreeWay (Maybe ConflictResolutionStrategyTypeEnum)
- mergePullRequestByThreeWay_keepEmptyFolders :: Lens' MergePullRequestByThreeWay (Maybe Bool)
- mergePullRequestByThreeWay_sourceCommitId :: Lens' MergePullRequestByThreeWay (Maybe Text)
- mergePullRequestByThreeWay_pullRequestId :: Lens' MergePullRequestByThreeWay Text
- mergePullRequestByThreeWay_repositoryName :: Lens' MergePullRequestByThreeWay Text
- data MergePullRequestByThreeWayResponse = MergePullRequestByThreeWayResponse' {}
- newMergePullRequestByThreeWayResponse :: Int -> MergePullRequestByThreeWayResponse
- mergePullRequestByThreeWayResponse_pullRequest :: Lens' MergePullRequestByThreeWayResponse (Maybe PullRequest)
- mergePullRequestByThreeWayResponse_httpStatus :: Lens' MergePullRequestByThreeWayResponse Int
Creating a Request
data MergePullRequestByThreeWay Source #
See: newMergePullRequestByThreeWay
smart constructor.
MergePullRequestByThreeWay' | |
|
Instances
newMergePullRequestByThreeWay Source #
:: Text | |
-> Text | |
-> MergePullRequestByThreeWay |
Create a value of MergePullRequestByThreeWay
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:email:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_email
- The email address of the person merging the branches. This information
is used in the commit information for the merge.
$sel:authorName:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_authorName
- The name of the author who created the commit. This information is used
as both the author and committer for the commit.
$sel:conflictDetailLevel:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_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:commitMessage:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_commitMessage
- The commit message to include in the commit information for the merge.
$sel:conflictResolution:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_conflictResolution
- If AUTOMERGE is the conflict resolution strategy, a list of inputs to
use when resolving conflicts during a merge.
$sel:conflictResolutionStrategy:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_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:keepEmptyFolders:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_keepEmptyFolders
- If the commit contains deletions, whether to keep a folder or folder
structure if the changes leave the folders empty. If true, a .gitkeep
file is created for empty folders. The default is false.
$sel:sourceCommitId:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_sourceCommitId
- The full commit ID of the original or updated commit in the pull request
source branch. Pass this value if you want an exception thrown if the
current commit ID of the tip of the source branch does not match this
commit ID.
$sel:pullRequestId:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
$sel:repositoryName:MergePullRequestByThreeWay'
, mergePullRequestByThreeWay_repositoryName
- The name of the repository where the pull request was created.
Request Lenses
mergePullRequestByThreeWay_email :: Lens' MergePullRequestByThreeWay (Maybe Text) Source #
The email address of the person merging the branches. This information is used in the commit information for the merge.
mergePullRequestByThreeWay_authorName :: Lens' MergePullRequestByThreeWay (Maybe Text) Source #
The name of the author who created the commit. This information is used as both the author and committer for the commit.
mergePullRequestByThreeWay_conflictDetailLevel :: Lens' MergePullRequestByThreeWay (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.
mergePullRequestByThreeWay_commitMessage :: Lens' MergePullRequestByThreeWay (Maybe Text) Source #
The commit message to include in the commit information for the merge.
mergePullRequestByThreeWay_conflictResolution :: Lens' MergePullRequestByThreeWay (Maybe ConflictResolution) Source #
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
mergePullRequestByThreeWay_conflictResolutionStrategy :: Lens' MergePullRequestByThreeWay (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.
mergePullRequestByThreeWay_keepEmptyFolders :: Lens' MergePullRequestByThreeWay (Maybe Bool) Source #
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a .gitkeep file is created for empty folders. The default is false.
mergePullRequestByThreeWay_sourceCommitId :: Lens' MergePullRequestByThreeWay (Maybe Text) Source #
The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.
mergePullRequestByThreeWay_pullRequestId :: Lens' MergePullRequestByThreeWay Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
mergePullRequestByThreeWay_repositoryName :: Lens' MergePullRequestByThreeWay Text Source #
The name of the repository where the pull request was created.
Destructuring the Response
data MergePullRequestByThreeWayResponse Source #
See: newMergePullRequestByThreeWayResponse
smart constructor.
MergePullRequestByThreeWayResponse' | |
|
Instances
Eq MergePullRequestByThreeWayResponse Source # | |
Read MergePullRequestByThreeWayResponse Source # | |
Show MergePullRequestByThreeWayResponse Source # | |
Generic MergePullRequestByThreeWayResponse Source # | |
NFData MergePullRequestByThreeWayResponse Source # | |
Defined in Amazonka.CodeCommit.MergePullRequestByThreeWay rnf :: MergePullRequestByThreeWayResponse -> () # | |
type Rep MergePullRequestByThreeWayResponse Source # | |
Defined in Amazonka.CodeCommit.MergePullRequestByThreeWay type Rep MergePullRequestByThreeWayResponse = D1 ('MetaData "MergePullRequestByThreeWayResponse" "Amazonka.CodeCommit.MergePullRequestByThreeWay" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "MergePullRequestByThreeWayResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PullRequest)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newMergePullRequestByThreeWayResponse Source #
Create a value of MergePullRequestByThreeWayResponse
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:pullRequest:MergePullRequestByThreeWayResponse'
, mergePullRequestByThreeWayResponse_pullRequest
- Undocumented member.
$sel:httpStatus:MergePullRequestByThreeWayResponse'
, mergePullRequestByThreeWayResponse_httpStatus
- The response's http status code.
Response Lenses
mergePullRequestByThreeWayResponse_pullRequest :: Lens' MergePullRequestByThreeWayResponse (Maybe PullRequest) Source #
Undocumented member.
mergePullRequestByThreeWayResponse_httpStatus :: Lens' MergePullRequestByThreeWayResponse Int Source #
The response's http status code.