PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
codecommit
**To add a comment to a pull request** This example demonstrates how to add the comment '"These don't appear to be used anywhere. Can we remove them?"' on the change to the 'ahs_count.py' file in a pull request with the ID of '47' in a repository named 'MyDemoRepo':: aws codecommit post-comment-for-pull-request --pull-request-id "47" --repository-name MyDemoRepo --before-commit-id 317f8570EXAMPLE --after-commit-id 5d036259EXAMPLE --client-request-token 123Example --content ""These don't appear to be used anywhere. Can we remove them?"" --location filePath=ahs_count.py,filePosition=367,relativeFileVersion=AFTER Output:: { "afterBlobId": "1f330709EXAMPLE", "afterCommitId": "5d036259EXAMPLE", "beforeBlobId": "80906a4cEXAMPLE", "beforeCommitId": "317f8570EXAMPLE", "comment": { "authorArn": "arn:aws:iam::111111111111:user/Saanvi_Sarkar", "clientRequestToken": "123Example", "commentId": "abcd1234EXAMPLEb5678efgh", "content": "These don't appear to be used anywhere. Can we remove them?", "creationDate": 1508369622.123, "deleted": false, "CommentId": "", "lastModifiedDate": 1508369622.123 } "location": { "filePath": "ahs_count.py", "filePosition": 367, "relativeFileVersion": "AFTER" }, "repositoryName": "MyDemoRepo", "pullRequestId": "47" }
[-] get-merge-conflicts.rst
[edit]
[-] describe-pull-request-events.rst
[edit]
[-] update-pull-request-status.rst
[edit]
[-] credential-helper.rst
[edit]
[-] list-pull-requests.rst
[edit]
[-] delete-comment-content.rst
[edit]
[-] test-repository-triggers.rst
[edit]
[-] get-repository-triggers.rst
[edit]
[-] get-comments-for-pull-request.rst
[edit]
[-] delete-file.rst
[edit]
[+]
..
[-] batch-get-repositories.rst
[edit]
[-] put-repository-triggers.rst
[edit]
[-] delete-branch.rst
[edit]
[-] get-branch.rst
[edit]
[-] create-commit.rst
[edit]
[-] list-branches.rst
[edit]
[-] post-comment-for-pull-request.rst
[edit]
[-] get-pull-request.rst
[edit]
[-] update-repository-name.rst
[edit]
[-] update-default-branch.rst
[edit]
[-] get-comment.rst
[edit]
[-] update-comment.rst
[edit]
[-] get-commit.rst
[edit]
[-] get-file.rst
[edit]
[-] get-folder.rst
[edit]
[-] post-comment-reply.rst
[edit]
[-] put-file.rst
[edit]
[-] get-blob.rst
[edit]
[-] create-repository.rst
[edit]
[-] update-pull-request-description.rst
[edit]
[-] create-pull-request.rst
[edit]
[-] get-differences.rst
[edit]
[-] merge-pull-request-by-fast-forward.rst
[edit]
[-] list-repositories.rst
[edit]
[-] create-branch.rst
[edit]
[-] update-repository-description.rst
[edit]
[-] delete-repository.rst
[edit]
[-] update-pull-request-title.rst
[edit]
[-] get-comments-for-compared-commit.rst
[edit]
[-] get-repository.rst
[edit]
[-] post-comment-for-compared-commit.rst
[edit]