404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.117.107.190: ~ $
**To merge a pull request using the squash merge strategy**

The following ``merge-pull-request-by-squash`` example merges and closes the specified pull request using the conflict resolution strategy of ACCEPT_SOURCE in a repository named ``MyDemoRepo``. ::

    aws codecommit merge-pull-request-by-squash \
        --pull-request-id 47 \
        --source-commit-id 99132ab0EXAMPLE \
        --repository-name MyDemoRepo \
        --conflict-detail-level LINE_LEVEL \
        --conflict-resolution-strategy ACCEPT_SOURCE \
        --name "Jorge Souza" --email "jorge_souza@example.com" \
        --commit-message "Merging pull request 47 by squash and accepting source in merge conflicts"

Output::

    {
        "pullRequest": {
            "approvalRules": [
                {
                    "approvalRuleContent": "{\"Version\": \"2018-11-08\",\"DestinationReferences\": [\"refs/heads/main\"],\"Statements\": [{\"Type\": \"Approvers\",\"NumberOfApprovalsNeeded\": 2,\"ApprovalPoolMembers\": [\"arn:aws:sts::123456789012:assumed-role/CodeCommitReview/*\"]}]}",
                    "approvalRuleId": "dd8b17fe-EXAMPLE",
                    "approvalRuleName": "2-approver-rule-for-main",
                    "creationDate": 1571356106.936,
                    "lastModifiedDate": 571356106.936,
                    "lastModifiedUser": "arn:aws:iam::123456789012:user/Mary_Major",
                    "originApprovalRuleTemplate": {
                        "approvalRuleTemplateId": "dd8b17fe-EXAMPLE",
                        "approvalRuleTemplateName": "2-approver-rule-for-main"
                    },
                    "ruleContentSha256": "4711b576EXAMPLE"
                }
            ],
            "authorArn": "arn:aws:iam::123456789012:user/Li_Juan",
            "clientRequestToken": "",
            "creationDate": 1508530823.142,
            "description": "Review the latest changes and updates to the global variables",
            "lastActivityDate": 1508887223.155,
            "pullRequestId": "47",
            "pullRequestStatus": "CLOSED",
            "pullRequestTargets": [
                {
                    "destinationCommit": "9f31c968EXAMPLE",
                    "destinationReference": "refs/heads/main",
                    "mergeMetadata": {
                        "isMerged": true,
                        "mergedBy": "arn:aws:iam::123456789012:user/Mary_Major"
                    },
                    "repositoryName": "MyDemoRepo",
                    "sourceCommit": "99132ab0EXAMPLE",
                    "sourceReference": "refs/heads/variables-branch"
                }
            ],
            "title": "Consolidation of global variables"
        }
    }

For more information, see `Merge a Pull Request <https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-merge-pull-request.html#merge-pull-request-by-squash>`__ in the *AWS CodeCommit User Guide*.

Filemanager

Name Type Size Permission Actions
associate-approval-rule-template-with-repository.rst File 687 B 0644
batch-associate-approval-rule-template-with-repositories.rst File 1.04 KB 0644
batch-describe-merge-conflicts.rst File 2.79 KB 0644
batch-disassociate-approval-rule-template-from-repositories.rst File 914 B 0644
batch-get-commits.rst File 1.73 KB 0644
batch-get-repositories.rst File 1.71 KB 0644
create-approval-rule-template.rst File 1.91 KB 0644
create-branch.rst File 287 B 0644
create-commit.rst File 968 B 0755
create-pull-request-approval-rule.rst File 1.84 KB 0644
create-pull-request.rst File 2.48 KB 0644
create-repository.rst File 799 B 0644
create-unreferenced-merge-commit.rst File 1.05 KB 0644
credential-helper.rst File 1.47 KB 0755
delete-approval-rule-template.rst File 564 B 0644
delete-branch.rst File 312 B 0644
delete-comment-content.rst File 798 B 0644
delete-file.rst File 808 B 0755
delete-pull-request-approval-rule.rst File 664 B 0644
delete-repository.rst File 244 B 0644
describe-merge-conflicts.rst File 2.24 KB 0644
describe-pull-request-events.rst File 908 B 0644
disassociate-approval-rule-template-from-repository.rst File 692 B 0644
evaluate-pull-request-approval-rules.rst File 1003 B 0644
get-approval-rule-template.rst File 1.3 KB 0644
get-blob.rst File 368 B 0644
get-branch.rst File 330 B 0644
get-comment-reactions.rst File 1.91 KB 0644
get-comment.rst File 880 B 0644
get-comments-for-compared-commit.rst File 2.47 KB 0644
get-comments-for-pull-request.rst File 2.33 KB 0644
get-commit.rst File 917 B 0644
get-differences.rst File 1.27 KB 0644
get-file.rst File 789 B 0755
get-folder.rst File 1.95 KB 0755
get-merge-commit.rst File 941 B 0644
get-merge-conflicts.rst File 1.77 KB 0644
get-merge-options.rst File 996 B 0644
get-pull-request-approval-states.rst File 702 B 0644
get-pull-request-override-state.rst File 811 B 0644
get-pull-request.rst File 1.84 KB 0644
get-repository-triggers.rst File 1.05 KB 0644
get-repository.rst File 872 B 0644
list-approval-rule-templates.rst File 795 B 0644
list-associated-approval-rule-templates-for-repository.rst File 717 B 0644
list-branches.rst File 282 B 0644
list-pull-requests.rst File 515 B 0644
list-repositories-for-approval-rule-template.rst File 684 B 0644
list-repositories.rst File 483 B 0644
list-tags-for-resource.rst File 604 B 0644
merge-branches-by-fast-forward.rst File 743 B 0644
merge-branches-by-squash.rst File 890 B 0644
merge-branches-by-three-way.rst File 892 B 0644
merge-pull-request-by-fast-forward.rst File 2.3 KB 0644
merge-pull-request-by-squash.rst File 2.85 KB 0644
merge-pull-request-by-three-way.rst File 2.78 KB 0644
override-pull-request-approval-rules.rst File 715 B 0644
post-comment-for-compared-commit.rst File 1.46 KB 0644
post-comment-for-pull-request.rst File 1.68 KB 0644
post-comment-reply.rst File 924 B 0644
put-comment-reaction.rst File 623 B 0644
put-file.rst File 815 B 0644
put-repository-triggers.rst File 1.36 KB 0644
tag-resource.rst File 535 B 0644
test-repository-triggers.rst File 613 B 0644
untag-resource.rst File 565 B 0644
update-approval-rule-template-content.rst File 1.63 KB 0644
update-approval-rule-template-description.rst File 1.49 KB 0644
update-approval-rule-template-name.rst File 1.38 KB 0644
update-comment.rst File 897 B 0644
update-default-branch.rst File 312 B 0644
update-pull-request-approval-rule-content.rst File 1.49 KB 0644
update-pull-request-approval-state.rst File 740 B 0644
update-pull-request-description.rst File 1.26 KB 0644
update-pull-request-status.rst File 1.97 KB 0644
update-pull-request-title.rst File 2.28 KB 0644
update-repository-description.rst File 336 B 0644
update-repository-name.rst File 660 B 0644