Commit graph

2323 commits

Author SHA1 Message Date
mrT23
577f24d107
Merge pull request #89 from zmeir/zmeir-review_score
Add Score Review Feature
2023-07-19 17:07:05 +03:00
Hussam.lawen
3326327572
More refactoring.... 2023-07-19 17:01:56 +03:00
Hussam.lawen
36be79ea38
ignore merge from main 2023-07-19 16:14:59 +03:00
Hussam.lawen
523839be7d
Merge commit 'd1586ddd77b86f0d3b29aee3370f29624799e388' into hl/incremental_review 2023-07-19 16:14:33 +03:00
mrT23
7fdbd6a680
Update utils.py 2023-07-19 15:12:50 +03:00
Hussam.lawen
17b40a1fa1
Merge commit '7abbe08ff15d31c7e20de6d88638bfe27430c2f4' into hl/incremental_review 2023-07-19 14:24:44 +03:00
Hussam.lawen
c47e74c5c7
Merge commit '5bc2ef1eff1f570779191a8f3c7a562f5b8fe230' into hl/incremental_review 2023-07-19 14:24:01 +03:00
mrT23
7abbe08ff1
Merge pull request #95 from Codium-ai/tr/disable_review_suggestiosn
disable code suggestions by default for review
2023-07-19 14:23:54 +03:00
Hussam.lawen
8038b6ab99
refactor and clean 2023-07-19 14:22:34 +03:00
zmeir
6e26ad0966 Merge branch 'main' into zmeir-review_score 2023-07-19 13:37:55 +03:00
zmeir
7e2449b228 Changed score type to int 2023-07-19 13:37:35 +03:00
mrT23
97bfee47a3
minor fixes 2023-07-19 11:34:55 +03:00
Ori Kotek
5bc2ef1eff
Merge pull request #92 from YuviGold/deploy-on-lambda
Deployment on AWS Lambda
2023-07-19 11:12:29 +03:00
zmeir
8868c92141 Merge branch 'main' into zmeir-review_score 2023-07-19 11:05:24 +03:00
zmeir
e17dd66dce Disable score review by default 2023-07-19 11:00:28 +03:00
zmeir
fc8494d696 Rephrase score description in promt 2023-07-19 10:59:52 +03:00
zmeir
f8aea909b4 Add example output 2023-07-19 10:57:35 +03:00
mrT23
ccddbeccad
num_code_suggestions=0 for review 2023-07-19 09:34:17 +03:00
mrT23
a47fa342cb
Merge pull request #88 from zmeir/zmeir-cli_args
CLI Arguments Refactoring
2023-07-19 08:15:19 +03:00
Hussam.lawen
f73cddcb93
Change Review title when 2023-07-19 01:03:47 +03:00
Hussam.lawen
5f36f0d753
Merge commit 'bdf7eff7cd0a8894c3e66e49bdf89f27da1bfcb4' into hl/incremental_review 2023-07-18 23:28:43 +03:00
Hussam.lawen
dc4bf13d39
Add Incremental Review 2023-07-18 23:14:47 +03:00
Yuval Goldberg
dc67e6a66e Support deploying pr-agent on AWS Lambda 2023-07-18 17:46:42 +03:00
zmeir
6d91f44634 Added configuration option to control publishing review progress
This can be useful in a few situations:
1. To reduce the number of GitHub API calls (thus avoiding hitting the rate limit)
2. When the trigger for the agent is an external process (e.g. some external CI job), so there is no need to publish a message like "preparing review..." because it's not a part of a natual conversation with the user
2023-07-18 16:41:58 +03:00
zmeir
0396e10706 Add configuration to request a score for the PR
This can help teams compare the review of the PR agent with that of a human reviewer, and fine-tune a score threshold for automatic approval where they decide the agent's review is satisfactory.
2023-07-18 16:40:35 +03:00
zmeir
77f243b7ab Allow passing CLI args (helps with debugging) 2023-07-18 16:39:46 +03:00
mrT23
c507785475
bugfix 2023-07-18 16:32:51 +03:00
Hussam Lawen
3efe08d619
Merge pull request #85 from Codium-ai/hl/always_filer_bad_extensions
Filter out bad files before getting their head and original source code and diff
2023-07-18 13:50:25 +03:00
Hussam Lawen
2e36fce4eb
Merge pull request #83 from Codium-ai/hl/gitlab_description
Support describe for Gitlab
2023-07-18 13:47:32 +03:00
Hussam.lawen
5d45632247
Performance improvement: Filter out bad files before getting their head and original source code and diff 2023-07-18 13:33:32 +03:00
Hussam.lawen
8fb9affef3
add try catch 2023-07-18 13:14:01 +03:00
Hussam Lawen
6c42a471e1
Merge pull request #76 from zmeir/zmeir-publish_inline_comments_single_api_call
Optimization of Inline Comments Publishing
2023-07-18 13:05:11 +03:00
Hussam.lawen
f2b74b6970
support gitlab describe function 2023-07-18 13:03:36 +03:00
Ori Kotek
05e4e09dfc
Lint 2023-07-18 12:27:28 +03:00
Ori Kotek
13092118dc
Move the new git provider function to the abstract interface 2023-07-18 12:26:49 +03:00
Ori Kotek
7d108992fc
Merge remote-tracking branch 'origin/main' into zmeir-publish_inline_comments_single_api_call 2023-07-18 11:53:41 +03:00
Ori Kotek
90f97b0226
Lint fixes 2023-07-18 11:34:57 +03:00
Ori Kotek
9e0f5f0ccc
Merge pull request #78 from Codium-ai/tr/agent_logic
Enhancement of PR Agent with User Interaction
2023-07-18 10:37:08 +03:00
mrT23
6d2673f39d
Merge remote-tracking branch 'origin/tr/agent_logic' into tr/agent_logic 2023-07-18 10:32:43 +03:00
mrT23
b3a1d456b2
if settings.pr_reviewer.num_code_suggestions 2023-07-18 10:32:36 +03:00
Ori Kotek
fdeae9c209
Update pr_agent/agent/pr_agent.py 2023-07-18 10:20:52 +03:00
Ori Kotek
a994ec1427
Call PRAgent from github_action_runner.py 2023-07-18 10:19:32 +03:00
Ori Kotek
e5259e2f5c
Small refactor 2023-07-18 10:17:09 +03:00
mrT23
51e08c3c2b
reflect and review + protections 2023-07-18 08:22:25 +03:00
mrT23
4c29ff2db1
Merge remote-tracking branch 'origin/tr/agent_logic' into tr/agent_logic
# Conflicts:
#	pr_agent/tools/pr_description.py
2023-07-18 08:06:47 +03:00
mrT23
5fbaa4366f
publish_output instead publish_review 2023-07-18 08:05:42 +03:00
mrT23
aee08ebbfe
Merge branch 'main' into tr/agent_logic 2023-07-18 08:04:47 +03:00
mrT23
539edcad3c
works 2023-07-17 16:53:38 +03:00
mrT23
ea27c63f13
Insights from user's answers 2023-07-17 15:59:57 +03:00
mrT23
c866288b0a
Merge remote-tracking branch 'origin/main' into tr/agent_logic 2023-07-17 15:59:37 +03:00
Patryk Kowalski
8ae3c60670 In case of new file creation by the MR there is a 404 error on file retrieval by gitlab provider.
It was handled by catching the error and replacing the file string with an empty string.
Type checking was added before byte decoding - necessary in case of the empty string.
2023-07-17 14:53:23 +02:00
mrT23
f8f415eb75
stable 2023-07-17 15:49:29 +03:00
zmeir
24583b05f7 Publish GitHub review comments with single API call 2023-07-17 10:41:02 +03:00
Ori Kotek
fa421fd169
Merge pull request #75 from Codium-ai/bugfix/rename_get_description
get_description was removed
2023-07-17 10:32:01 +03:00
Ori Kotek
e0ae5c945e
get_description was removed 2023-07-17 10:30:44 +03:00
mrT23
3b7cfe7bc5
Merge pull request #73 from Codium-ai/hl/clean_comments
Clean comments
2023-07-17 09:33:49 +03:00
Hussam Lawen
7884aa2348
Clean 2023-07-17 09:25:38 +03:00
mrT23
8f3520807c
minor fixes
minor fixes
2023-07-17 08:42:18 +03:00
mrT23
fa90b242e3
pr_information_from_user_prompts 2023-07-17 08:09:56 +03:00
Ori Kotek
c58e1f90e7
Merge branch 'main' into hl/gitlab_code_suggestion 2023-07-17 02:10:15 +03:00
Ori Kotek
d363f148f0
Merge pull request #65 from Codium-ai/tr/agent_logic
pr_information_from_user_prompts
2023-07-17 02:08:56 +03:00
Ori Kotek
cbf96a2e67
Merge pull request #68 from ilchemla/feature/remove-duplicate-function
Removal of Duplicate Function Across Git Providers
2023-07-17 02:07:09 +03:00
Hussam.lawen
fc309f69b9
Support Code Suggestion in Gitlab 2023-07-17 01:44:40 +03:00
Ori Kotek
0b1edd9716
A small typo 2023-07-16 21:47:50 +03:00
Ilan Chemla
e638dc075c Remove git_provider.get_description() which is a duplicate of git_provider.get_pr_description() 2023-07-16 21:47:48 +03:00
mrT23
f4de3d2899
pr_information_from_user_prompts 2023-07-16 19:36:20 +03:00
Ori Kotek
d54ee252ee
Improve help text 2023-07-16 17:41:23 +03:00
Ori Kotek
b030299547
Merge pull request #51 from ilchemla/feature/new-bitbucket-handler
Adding Bitbucket Provider Support
2023-07-16 17:04:06 +03:00
Zohar Meir
399d5c5c5d
Fixed minor typos in promts 2023-07-16 16:37:19 +03:00
mrT23
94173cbb06
Merge pull request #58 from Codium-ai/tr/readme_update2
update readme
2023-07-16 16:12:26 +03:00
mrT23
5edff8b7e4
update readme
update readme
2023-07-16 16:04:06 +03:00
Ori Kotek
93311a9d9b
Update GitHub app 2023-07-16 15:42:50 +03:00
Ori Kotek
704030230f
Merge pull request #59 from Codium-ai/enhancement/github_action_apply
Update Github polling
2023-07-16 15:03:44 +03:00
Ori Kotek
60bce8f049
Update Github polling 2023-07-16 15:00:13 +03:00
Ori Kotek
6cc9fe3d06
Merge pull request #57 from Codium-ai/enhancement/github_action_apply
Enhancement: Apply Github Action
2023-07-16 14:30:56 +03:00
Ori Kotek
0acf423450
Update comment 2023-07-16 14:30:34 +03:00
Ori Kotek
7958786b4c
Github action to work with an image stored on Dockerhub for faster execution 2023-07-16 14:19:02 +03:00
Ori Kotek
71efd84113
Merge pull request #52 from Codium-ai/enhancement/cli_update
cli.py - modify command line for a more coherent command invokation
2023-07-16 13:51:24 +03:00
Ori Kotek
2531849b73
Update usage instructions in PR comment 2023-07-16 13:45:20 +03:00
Ori Kotek
19f11f99ce
Github action support for new style commands 2023-07-16 13:36:02 +03:00
Ori Kotek
b3e79ed677
cli.py - modify command line for a more coherent command invokation 2023-07-16 13:18:29 +03:00
Ori Kotek
5d2fe07bf7
Merge pull request #47 from Codium-ai/feature/github_action
Github custom action development
2023-07-16 12:54:40 +03:00
mrT23
4f4989af8c
full code suggestions
full code suggestions
2023-07-16 09:01:57 +03:00
Ilan Chemla
0a4a604c28 Adding handler for Bitbucket Cloud users 2023-07-15 21:29:36 +03:00
Hussam Lawen
4a6bf4c55a
Merge branch 'main' into hl/gitlab_fix 2023-07-14 22:48:13 +03:00
Hussam.lawen
3f75b14ba3
small addition 2023-07-14 22:45:07 +03:00
mrT23
ae9cedd50d
Merge pull request #46 from Codium-ai/tr/description_tool
Add PR Description Tool
2023-07-13 21:00:50 +03:00
Hussam.lawen
ae63833043
Merge commit '055a8ea8590fbe9078cdc6af6398df2f053b9ce7' into hl/gitlab_fix 2023-07-13 20:44:26 +03:00
Hussam.lawen
da6828ad87
Inline suggestion refactor + Gitlab WORKS 2023-07-13 20:43:49 +03:00
Ori Kotek
1c1aad2806
Github custom action development - WIP 2023-07-13 19:08:10 +03:00
Ori Kotek
e2323dfb9f
Github custom action development - WIP 2023-07-13 18:54:40 +03:00
Ori Kotek
f6d4a214ca
Github custom action development - WIP 2023-07-13 18:40:03 +03:00
Ori Kotek
f337d76af6
Github custom action development - WIP 2023-07-13 18:32:28 +03:00
mrT23
4e59693c76
diff_files 2023-07-13 18:26:35 +03:00
Ori Kotek
4033303c1f
Github custom action development - WIP 2023-07-13 18:18:23 +03:00
Ori Kotek
38c8d187d2
Github custom action development - WIP 2023-07-13 18:16:25 +03:00
Ori Kotek
f8ddfd2f25
Merge remote-tracking branch 'origin/tr/description_tool' into feature/github_action 2023-07-13 18:06:35 +03:00
mrT23
4b4fda37a6
publish_description as abstract method 2023-07-13 18:04:28 +03:00
Ori Kotek
9ca6b789a7
Github custom action development - WIP 2023-07-13 18:02:38 +03:00
mrT23
0f73f5f906
set as title 2023-07-13 17:53:17 +03:00
Ori Kotek
055a8ea859
Merge pull request #44 from zmeir/patch-1
Typo when setting `openai.api_version`
2023-07-13 17:52:33 +03:00
Ori Kotek
5742a9be1e
Github custom action development 2023-07-13 17:46:12 +03:00
mrT23
914cc6639a
ignore current title 2023-07-13 17:34:18 +03:00
mrT23
f34cda126a
stable 2023-07-13 17:31:28 +03:00
mrT23
dece20c984
PRDescription 2023-07-13 17:24:56 +03:00
mrT23
94c1f430af
General PR suggestions prompt 2023-07-13 16:34:56 +03:00
mrT23
9fadde388b
remove title and description 2023-07-13 16:26:33 +03:00
Zohar Meir
f57d58ee7d
Typo when setting openai.api_version 2023-07-13 10:22:57 +03:00
mrT23
77a451ada0
inline_code_comments 2023-07-13 09:44:33 +03:00
mrT23
4b8420aa16
remove suggestion number 2023-07-13 08:10:36 +03:00
Hussam Lawen
e2faf117c5
Update gitlab config 2023-07-12 18:02:28 +03:00
Ori Kotek
cd1e62ec96
Add Azure OpenAI support 2023-07-12 11:53:46 +03:00
Ori Kotek
1bc206e7b2
Remove installation_id from cli 2023-07-12 11:31:06 +03:00
Hussam.lawen
b8a71b369d
add max_iter 2023-07-11 22:22:08 +03:00
Hussam.lawen
fd4a2bf7ff
refactor try_fix_json, generalize finding the ending of a json item (support new lines, spaces tab) 2023-07-11 22:11:42 +03:00
Hussam.lawen
a3211d4958
Merge commit '210d94f2aa6ebf872b9b85051d1842c32d4fc34e' into hl/try_fix_when_broken_output 2023-07-11 17:33:02 +03:00
Hussam.lawen
86d7ed5f82
Try to fix broken json output 2023-07-11 17:32:48 +03:00
Ori Kotek
b2d952cafa
1. Move deployment_type to configuration.toml
2. Lint
3. Inject GitHub app installation ID into GitHub provider using the settings mechanism.
2023-07-11 16:55:09 +03:00
Ori Kotek
6eacf4791d
Merge remote-tracking branch 'origin/main' into feature/gitlab_provider 2023-07-11 15:49:06 +03:00
Ori Kotek
4076f67ab8
Merge pull request #35 from ilchemla/hotfix/bad-filename-in-docs
Fix secrets filename extension in README
2023-07-11 15:37:09 +03:00
Ori Kotek
c2639a2520
Merge pull request #32 from Codium-ai/tr/focused_pr
Focused PR update
2023-07-11 15:29:36 +03:00
Ilan Chemla
38db65831e Fix secrets filename extension in README 2023-07-11 15:01:52 +03:00
Hussam Lawen
e1b856f7e6
Merge pull request #34 from Codium-ai/enhancement/soft_and_hard_thresh
Separate output token threshold to soft and hard instead of implicit hard = soft/2
2023-07-11 14:35:00 +03:00
Ori Kotek
5fdc9223e9
Separate output token threshold to soft and hard instead of implicit hard = soft/2 2023-07-11 14:11:46 +03:00
mrT23
301622216f
Focused PR update 2023-07-11 08:50:28 +03:00
Eugene Kaushnian
8fba670bda Rename github_app_webhook.py to github_app.py 2023-07-08 13:36:47 -04:00
salberts
ca47833c56 Merge remote-tracking branch 'refs/remotes/origin/feature/gitlab_provider' into feature/gitlab_provider 2023-07-08 17:19:54 +03:00
Albert
567475c18c
Update pr_agent/settings/.secrets_template.toml
Co-authored-by: Sergii Kovalev <enasik@gmail.com>
2023-07-08 15:29:05 +03:00
salberts
fb4badd160 changes 2023-07-08 12:14:32 +03:00
salberts
9695d96799 Simplify project identification 2023-07-08 11:49:11 +03:00
salberts
0930f76cb7 Merge branch 'feature/gitlab_provider' into feature/gitlab_webhook 2023-07-08 11:47:13 +03:00
salberts
365559405f Simplify gitlab project access 2023-07-08 11:46:41 +03:00
salberts
d4adcb3c22 Configurable polling interval 2023-07-08 10:26:41 +03:00
salberts
75167c2700 add polling 2023-07-08 08:52:11 +03:00
salberts
e63a4f47ce bugfixes 2023-07-07 17:06:53 +03:00
salberts
caff65613f docs 2023-07-07 16:36:56 +03:00
salberts
ee3cac9836 bugfix 2023-07-07 16:33:25 +03:00
salberts
8b3ff7a632 bugfix 2023-07-07 16:31:28 +03:00
salberts
7d49e080fc remove prints 2023-07-07 16:24:02 +03:00
salberts
1a94079936 style 2023-07-07 16:15:51 +03:00
salberts
7ed12c2f8e refactor 2023-07-07 16:10:33 +03:00
Albert Achtenberg
ed8cf27b05 working example 2023-07-07 15:02:40 +03:00
Hussam.lawen
efc8f755d5
exclude snap files 2023-07-06 20:22:54 +03:00
Ori Kotek
c8d369ee61
Protect against no notifications received 2023-07-06 20:04:32 +03:00
Ori Kotek
ffa4ce3f1e
Protect against no notifications received 2023-07-06 19:22:55 +03:00
Ori Kotek
2de83827b6
Add exception protection for unexpected conditions during request handling 2023-07-06 19:08:47 +03:00
Ori Kotek
9e96fbab1f
Don't add "How to use" when running from the command line - a small correction #2 2023-07-06 18:33:03 +03:00
Ori Kotek
f1ab6ec88f
Merge pull request #11 from Codium-ai/bugfix/double_notifications
Protect from notifications that may be handled twice
2023-07-06 18:17:13 +03:00
Ori Kotek
4331610e01
Don't add "How to use" when running from the command line - a small correction 2023-07-06 17:53:52 +03:00
Ori Kotek
d04c0f490c
Don't add "How to use" when running from the command line 2023-07-06 17:52:12 +03:00
Ori Kotek
6648c04799
Protect from notifications that may be handled twice by keeping a set of handled notification IDs 2023-07-06 17:46:43 +03:00
mrT23
30248c2a7b
readme update 2023-07-06 17:34:40 +03:00
mrT23
c2e3bf7b70
newline 2023-07-06 16:39:56 +03:00
mrT23
e5e90e35e5
minor fixes 2023-07-06 16:27:39 +03:00
Hussam Lawen
53e7ff62bf
Merge pull request #3 from Codium-ai/algo/combine_modified_files_one_list
Combine all modified and deleted files that been compressed to the prompt
2023-07-06 14:59:13 +03:00
Ori Kotek
1eea60c6a5
Merge pull request #7 from Codium-ai/algo/fix_speacial_tokens
Fix encoding error on special_tokens
2023-07-06 14:14:52 +03:00
Hussam.lawen
259fa84eeb
disabling encoding error on special_tokens 2023-07-06 13:22:12 +03:00
Hussam.lawen
ff720d32fe
pylance 2023-07-06 13:20:08 +03:00
Ori Kotek
399d7b7990
Improve handling of tagging and Github app user interaction - a small correction 2023-07-06 13:09:51 +03:00
Ori Kotek
71b077faf8
Merge remote-tracking branch 'origin/enhancment/markdown' into feature/github_tag_improve 2023-07-06 12:59:25 +03:00
Ori Kotek
b6333e7f20
Improve handling of tagging and Github app user interaction 2023-07-06 12:58:05 +03:00
mrT23
e53ae712f9
formatting 2023-07-06 12:49:10 +03:00
Hussam.lawen
795f6ab8d5
Add deleted files section and count their tokens 2023-07-06 12:21:27 +03:00
Hussam.lawen
e3b2469e0f
Merge commit '0ebd29d39891fba68a64e476cd52b16428c3132b' into algo/combine_modified_files_one_list 2023-07-06 12:01:51 +03:00
Ori Kotek
987befe457
Merge CLI scripts to cli.py, update Dockerfile and README.md 2023-07-06 11:37:44 +03:00
Hussam.lawen
1a626fb1f3
change "modified files" to "more modified files" 2023-07-06 11:23:38 +03:00
Hussam.lawen
0ce42e786e
Combine all modified file that been compressed into one list at the end of the PR 2023-07-06 11:12:41 +03:00
Ori Kotek
84231f99dc
Merge pull request #2 from Codium-ai/feature/support_openai_org
Add support for OpenAI organization in the secrets file
2023-07-06 10:06:16 +03:00
Ori Kotek
aa1c32c714
Merge remote-tracking branch 'origin/feature/delete_initial_comment' into feature/improve_instructions 2023-07-06 10:00:31 +03:00
Ori Kotek
b94734e69a
Add support for OpenAI organization in the secrets file 2023-07-06 09:52:01 +03:00
mrT23
f1004273ec
add try-except 2023-07-06 08:57:55 +03:00
mrT23
33f859b073
delete "Preparing review..." comment 2023-07-06 08:44:08 +03:00
Ori Kotek
4b4d91dfe9
Initial commit - PR-Agent OSS release 2023-07-06 00:21:08 +03:00