1**To view comments for a pull request** 2 3This example demonstrates how to view comments for a pull request in a repository named ``MyDemoRepo``. :: 4 5 aws codecommit get-comments-for-pull-request \ 6 --repository-name MyDemoRepo \ 7 --before-commit-ID 317f8570EXAMPLE \ 8 --after-commit-id 5d036259EXAMPLE 9 10Output:: 11 12 { 13 "commentsForPullRequestData": [ 14 { 15 "afterBlobId": "1f330709EXAMPLE", 16 "afterCommitId": "5d036259EXAMPLE", 17 "beforeBlobId": "80906a4cEXAMPLE", 18 "beforeCommitId": "317f8570EXAMPLE", 19 "comments": [ 20 { 21 "authorArn": "arn:aws:iam::111111111111:user/Saanvi_Sarkar", 22 "clientRequestToken": "", 23 "commentId": "abcd1234EXAMPLEb5678efgh", 24 "content": "These don't appear to be used anywhere. Can we remove them?", 25 "creationDate": 1508369622.123, 26 "deleted": false, 27 "lastModifiedDate": 1508369622.123, 28 "callerReactions": [], 29 "reactionCounts": 30 { 31 "THUMBSUP" : 6, 32 "CONFUSED" : 1 33 } 34 }, 35 { 36 "authorArn": "arn:aws:iam::111111111111:user/Li_Juan", 37 "clientRequestToken": "", 38 "commentId": "442b498bEXAMPLE5756813", 39 "content": "Good catch. I'll remove them.", 40 "creationDate": 1508369829.104, 41 "deleted": false, 42 "lastModifiedDate": 150836912.273, 43 "callerReactions": ["THUMBSUP"] 44 "reactionCounts": 45 { 46 "THUMBSUP" : 14 47 } 48 } 49 ], 50 "location": { 51 "filePath": "ahs_count.py", 52 "filePosition": 367, 53 "relativeFileVersion": "AFTER" 54 }, 55 "repositoryName": "MyDemoRepo", 56 "pullRequestId": "42" 57 } 58 ], 59 "nextToken": "exampleToken" 60 } 61