https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/examples/codecommit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/examples/codecommit/create-pull-request.rst
**To create a pull request**

The following ``create-pull-request`` example creates a pull request named 'Pronunciation difficulty analyzer' with a description of 'Please review these changes by Tuesday' that targets the 'jane-branch' source branch and is to be merged to the default branch 'main' in an AWS CodeCommit repository named 'MyDemoRepo'. ::

    aws codecommit create-pull-request \
        --title "My Pull Request" \
        --description "Please review these changes by Tuesday" \
        --client-request-token 123Example \
        --targets repositoryName=MyDemoRepo,sourceReference=MyNewBranch 

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": "dd3d22fe-EXAMPLE",
                        "approvalRuleTemplateName": "2-approver-rule-for-main"
                    },
                    "ruleContentSha256": "4711b576EXAMPLE"
                }
            ],
            "authorArn": "arn:aws:iam::111111111111:user/Jane_Doe",
            "description": "Please review these changes by Tuesday",
            "title": "Pronunciation difficulty analyzer",
            "pullRequestTargets": [
                {
                    "destinationCommit": "5d036259EXAMPLE",
                    "destinationReference": "refs/heads/main",
                    "repositoryName": "MyDemoRepo",
                    "sourceCommit": "317f8570EXAMPLE",
                    "sourceReference": "refs/heads/jane-branch",
                    "mergeMetadata": {
                        "isMerged": false
                    }
                }
            ],
            "lastActivityDate": 1508962823.285,
            "pullRequestId": "42",
            "clientRequestToken": "123Example",
            "pullRequestStatus": "OPEN",
            "creationDate": 1508962823.285
        }
    }

https://t.me/RX1948 - 2025