Initial implementation of CodeCommit (second attempt) #235
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds an initial implementation of AWS CodeCommit. (see issue #138)
This will run the pr-agent CLI in "review" mode, and it posts the AI generated comment to your CodeCommit PR. (see the setup instructions at the bottom of
INSTALL.md
file)This implementation adds PR review capabilities as a first step... more features can be added based on usage and demand.
Notes
get_pr_description_full
method was added togit_provider
class in a PR that was merged just before PR 232. I changed myCodeCommitProvider
class to implement the newget_pr_description_full
method and unit tests are passing now.Changes
boto3
to therequirements.txt
andpyproject.toml
filesCodeCommitProvider
to thepr_agent/git_providers/__init__.py
filepr_agent/git_providers
codecommit_provider.py
GitProvider
interface, which implements the bulk of the provider functionality for CodeCommitgit_provider.py
,bitbucket_provider.py
, andlocal_git_provider.py
, with customizations specific for CodeCommitcodecommit_client.py
codecommit_provider.py
cleanergit_providers
so as not start building out new directory structures to hold one extra file... this can be moved latertests/unittest
, for testing the above classestest_codecommit_client.py
test_codecommit_provider.py
README.md
INSTALL.md