Is it possible right now, programatically to get a list of commits on an AWS CodeCommit repository?
I understand I can use the git command, but I am trying to get the repository information by using CodeCommit's API. Is that possible, or des the API not exist?
You can use:
aws codecommit get-branch --repository-name MyRepo --branch-name MyBranch
In order to get the commit ID of the branch.
Then you can call:
aws codecommit get-commit --repository-name MyRepo --commitId MyCommitID
to get the comment, author and parent commit ID. Iterating through the parent IDs you can get the history.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With