From d8a9fb80d2d78e775114cb54b8e4001f5b913ad4 Mon Sep 17 00:00:00 2001 From: Itamar Friedman Date: Thu, 10 Aug 2023 01:30:12 +0300 Subject: [PATCH 1/4] fixing cli pr_url help description --- pr_agent/cli.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pr_agent/cli.py b/pr_agent/cli.py index 8dd21b3f2..0f8710419 100644 --- a/pr_agent/cli.py +++ b/pr_agent/cli.py @@ -10,13 +10,13 @@ def run(inargs=None): parser = argparse.ArgumentParser(description='AI based pull request analyzer', usage= """\ -Usage: cli.py --pr-url []. +Usage: cli.py --pr-url= []. For example: -- cli.py --pr-url=... review -- cli.py --pr-url=... describe -- cli.py --pr-url=... improve -- cli.py --pr-url=... ask "write me a poem about this PR" -- cli.py --pr-url=... reflect +- cli.py --pr_url=... review +- cli.py --pr_url=... describe +- cli.py --pr_url=... improve +- cli.py --pr_url=... ask "write me a poem about this PR" +- cli.py --pr_url=... reflect Supported commands: review / review_pr - Add a review that includes a summary of the PR and specific suggestions for improvement. @@ -27,7 +27,7 @@ def run(inargs=None): update_changelog - Update the changelog based on the PR's contents. To edit any configuration parameter from 'configuration.toml', just add -config_path=. -For example: '- cli.py --pr-url=... review --pr_reviewer.extra_instructions="focus on the file: ..."' +For example: 'python cli.py --pr_url=... review --pr_reviewer.extra_instructions="focus on the file: ..."' """) parser.add_argument('--pr_url', type=str, help='The URL of the PR to review', required=True) parser.add_argument('command', type=str, help='The', choices=commands, default='review') From 28f277bf312a75003ed1603178db79dbb186fa53 Mon Sep 17 00:00:00 2001 From: Itamar Friedman Date: Thu, 10 Aug 2023 01:31:06 +0300 Subject: [PATCH 2/4] fixing pr_url param description (was wrongly mentioned as `pr-url`) --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b8ab88c95..0ec00ec21 100644 --- a/README.md +++ b/README.md @@ -97,12 +97,12 @@ CodiumAI `PR-Agent` is an open-source tool aiming to help developers review pull | | Incremental PR Review | :white_check_mark: | | | Examples for invoking the different tools via the CLI: -- **Review**: python cli.py --pr-url= review -- **Describe**: python cli.py --pr-url= describe -- **Improve**: python cli.py --pr-url= improve -- **Ask**: python cli.py --pr-url= ask "Write me a poem about this PR" -- **Reflect**: python cli.py --pr-url= reflect -- **Update Changelog**: python cli.py --pr-url= update_changelog +- **Review**: python cli.py --pr_url= review +- **Describe**: python cli.py --pr_url= describe +- **Improve**: python cli.py --pr_url= improve +- **Ask**: python cli.py --pr_url= ask "Write me a poem about this PR" +- **Reflect**: python cli.py --pr_url= reflect +- **Update Changelog**: python cli.py --pr_url= update_changelog "" is the url of the relevant PR (for example: https://github.com/Codium-ai/pr-agent/pull/50). From 2b8056392dc039577ef231b1f949ca211ddf5958 Mon Sep 17 00:00:00 2001 From: Itamar Friedman Date: Thu, 10 Aug 2023 01:34:24 +0300 Subject: [PATCH 3/4] litellm was mentioned twice in the requirements.txt --- requirements.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index ebea2b714..ea2cacdff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,5 +13,4 @@ atlassian-python-api==3.39.0 GitPython~=3.1.32 litellm~=0.1.351 PyYAML==6.0 -starlette-context==0.3.6 -litellm~=0.1.351 \ No newline at end of file +starlette-context==0.3.6 \ No newline at end of file From 6448d73585ac711d4bdf13ba8aeaa389453dfd6e Mon Sep 17 00:00:00 2001 From: Ori Kotek Date: Thu, 10 Aug 2023 02:16:16 +0300 Subject: [PATCH 4/4] Update requirements.txt --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ea2cacdff..ebea2b714 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,4 +13,5 @@ atlassian-python-api==3.39.0 GitPython~=3.1.32 litellm~=0.1.351 PyYAML==6.0 -starlette-context==0.3.6 \ No newline at end of file +starlette-context==0.3.6 +litellm~=0.1.351 \ No newline at end of file