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 squash merge strategy. If the merge is successful, it closes the pull request.
Synopsis
- data MergePullRequestBySquash = MergePullRequestBySquash' {
- 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
- newMergePullRequestBySquash :: Text -> Text -> MergePullRequestBySquash
- mergePullRequestBySquash_email :: Lens' MergePullRequestBySquash (Maybe Text)
- mergePullRequestBySquash_authorName :: Lens' MergePullRequestBySquash (Maybe Text)
- mergePullRequestBySquash_conflictDetailLevel :: Lens' MergePullRequestBySquash (Maybe ConflictDetailLevelTypeEnum)
- mergePullRequestBySquash_commitMessage :: Lens' MergePullRequestBySquash (Maybe Text)
- mergePullRequestBySquash_conflictResolution :: Lens' MergePullRequestBySquash (Maybe ConflictResolution)
- mergePullRequestBySquash_conflictResolutionStrategy :: Lens' MergePullRequestBySquash (Maybe ConflictResolutionStrategyTypeEnum)
- mergePullRequestBySquash_keepEmptyFolders :: Lens' MergePullRequestBySquash (Maybe Bool)
- mergePullRequestBySquash_sourceCommitId :: Lens' MergePullRequestBySquash (Maybe Text)
- mergePullRequestBySquash_pullRequestId :: Lens' MergePullRequestBySquash Text
- mergePullRequestBySquash_repositoryName :: Lens' MergePullRequestBySquash Text
- data MergePullRequestBySquashResponse = MergePullRequestBySquashResponse' {}
- newMergePullRequestBySquashResponse :: Int -> MergePullRequestBySquashResponse
- mergePullRequestBySquashResponse_pullRequest :: Lens' MergePullRequestBySquashResponse (Maybe PullRequest)
- mergePullRequestBySquashResponse_httpStatus :: Lens' MergePullRequestBySquashResponse Int
Creating a Request
data MergePullRequestBySquash Source #
See: newMergePullRequestBySquash
smart constructor.
MergePullRequestBySquash' | |
|
Instances
newMergePullRequestBySquash Source #
:: Text | |
-> Text | |
-> MergePullRequestBySquash |
Create a value of MergePullRequestBySquash
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:MergePullRequestBySquash'
, mergePullRequestBySquash_email
- The email address of the person merging the branches. This information
is used in the commit information for the merge.
$sel:authorName:MergePullRequestBySquash'
, mergePullRequestBySquash_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:MergePullRequestBySquash'
, mergePullRequestBySquash_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:MergePullRequestBySquash'
, mergePullRequestBySquash_commitMessage
- The commit message to include in the commit information for the merge.
$sel:conflictResolution:MergePullRequestBySquash'
, mergePullRequestBySquash_conflictResolution
- If AUTOMERGE is the conflict resolution strategy, a list of inputs to
use when resolving conflicts during a merge.
$sel:conflictResolutionStrategy:MergePullRequestBySquash'
, mergePullRequestBySquash_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:MergePullRequestBySquash'
, mergePullRequestBySquash_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:MergePullRequestBySquash'
, mergePullRequestBySquash_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:MergePullRequestBySquash'
, mergePullRequestBySquash_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
$sel:repositoryName:MergePullRequestBySquash'
, mergePullRequestBySquash_repositoryName
- The name of the repository where the pull request was created.
Request Lenses
mergePullRequestBySquash_email :: Lens' MergePullRequestBySquash (Maybe Text) Source #
The email address of the person merging the branches. This information is used in the commit information for the merge.
mergePullRequestBySquash_authorName :: Lens' MergePullRequestBySquash (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.
mergePullRequestBySquash_conflictDetailLevel :: Lens' MergePullRequestBySquash (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.
mergePullRequestBySquash_commitMessage :: Lens' MergePullRequestBySquash (Maybe Text) Source #
The commit message to include in the commit information for the merge.
mergePullRequestBySquash_conflictResolution :: Lens' MergePullRequestBySquash (Maybe ConflictResolution) Source #
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
mergePullRequestBySquash_conflictResolutionStrategy :: Lens' MergePullRequestBySquash (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.
mergePullRequestBySquash_keepEmptyFolders :: Lens' MergePullRequestBySquash (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.
mergePullRequestBySquash_sourceCommitId :: Lens' MergePullRequestBySquash (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.
mergePullRequestBySquash_pullRequestId :: Lens' MergePullRequestBySquash Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
mergePullRequestBySquash_repositoryName :: Lens' MergePullRequestBySquash Text Source #
The name of the repository where the pull request was created.
Destructuring the Response
data MergePullRequestBySquashResponse Source #
See: newMergePullRequestBySquashResponse
smart constructor.
MergePullRequestBySquashResponse' | |
|
Instances
Eq MergePullRequestBySquashResponse Source # | |
Read MergePullRequestBySquashResponse Source # | |
Show MergePullRequestBySquashResponse Source # | |
Generic MergePullRequestBySquashResponse Source # | |
NFData MergePullRequestBySquashResponse Source # | |
Defined in Amazonka.CodeCommit.MergePullRequestBySquash rnf :: MergePullRequestBySquashResponse -> () # | |
type Rep MergePullRequestBySquashResponse Source # | |
Defined in Amazonka.CodeCommit.MergePullRequestBySquash type Rep MergePullRequestBySquashResponse = D1 ('MetaData "MergePullRequestBySquashResponse" "Amazonka.CodeCommit.MergePullRequestBySquash" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "MergePullRequestBySquashResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PullRequest)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newMergePullRequestBySquashResponse Source #
Create a value of MergePullRequestBySquashResponse
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:MergePullRequestBySquashResponse'
, mergePullRequestBySquashResponse_pullRequest
- Undocumented member.
$sel:httpStatus:MergePullRequestBySquashResponse'
, mergePullRequestBySquashResponse_httpStatus
- The response's http status code.
Response Lenses
mergePullRequestBySquashResponse_pullRequest :: Lens' MergePullRequestBySquashResponse (Maybe PullRequest) Source #
Undocumented member.
mergePullRequestBySquashResponse_httpStatus :: Lens' MergePullRequestBySquashResponse Int Source #
The response's http status code.