Commit graph

1390 commits

Author SHA1 Message Date
Tal
75800a745c
Merge pull request #764 from Codium-ai/hl/incremental_review_update
Hl/incremental review update
2024-03-11 00:03:16 -07:00
Tal
256d1a3369
Merge pull request #751 from danstis/fix/ado-spaces
Fix URL encoding in Azure DevOps webhook handler
2024-03-10 23:57:59 -07:00
mrT23
33a911da4c
log 2024-03-11 08:56:48 +02:00
mrT23
a27ad0feb6
log 2024-03-11 08:55:07 +02:00
mrT23
6c5697b07c
Enhance logging and refactor code in gitlab_webhook.py, update logger level in bitbucket_app.py and github_polling.py, remove redundant section in github.md 2024-03-11 08:50:19 +02:00
Hussam.lawen
5453507097
small fix 2024-03-10 17:19:27 +02:00
Hussam.lawen
003c49052e
skip incremental review if no file changed since last review 2024-03-10 17:15:25 +02:00
mrT23
4810b8549b
docs 2024-03-10 16:59:37 +02:00
mrT23
10a96d61ca
Merge remote-tracking branch 'origin/main' into tr/split
# Conflicts:
#	pr_agent/settings/pr_reviewer_prompts.toml
2024-03-10 16:57:25 +02:00
mrT23
8324e9a38d
can_be_split 2024-03-10 16:56:32 +02:00
Hussam.lawen
ff2346eacc
update markdown 2024-03-10 14:18:29 +02:00
mrT23
b4e9c55d8d
fixed bug in inline_code_suggestions in review 2024-03-10 07:50:12 +02:00
mrT23
bb341a6568
Fix missing colons in class definitions in pr_reviewer_prompts.toml 2024-03-10 07:39:10 +02:00
Dan Anstis
73624148a5 Fix URL encoding in Azure DevOps webhook handler 2024-03-08 04:39:57 +00:00
Ori Kotek
1ff0afabae
Refactor update changelog 2024-03-07 00:48:33 +02:00
mrT23
0690f2bbfd
Refactor litellm_ai_handler.py and update requirements.txt
- Replace retry library with tenacity for better exception handling
- Add verbosity level checks for logging prompts and AI responses
- Add support for HuggingFace API base and repetition penalty in chat completion
- Update requirements.txt with tenacity library
2024-03-06 12:13:54 +02:00
mrT23
26fb2a4164
Add support for Anthropic Claude-3 model in configuration and update Usage.md 2024-03-06 08:20:08 +02:00
mrT23
1c856a7d41
upgrade litellm 2024-03-06 08:06:59 +02:00
mrT23
2f6f1d5879
Add command execution functionality to Bitbucket app and update configuration settings 2024-03-06 07:53:13 +02:00
mrT23
c7eb70d00d
protections 2024-03-05 20:11:39 +02:00
mrT23
d77db93f80
protections 2024-03-05 18:34:18 +02:00
mrT23
acefbff62b
Add 'final_update_message' option to control publishing of update message in persistent comments 2024-03-05 17:29:17 +02:00
mrT23
da39149c61
Add unique_strings function and remove duplicate issues in utils.py; Update pr_reviewer_prompts.toml template 2024-03-04 11:07:39 +02:00
mrT23
eed23a7aaa
Add truncation and summarization features to PR code suggestions 2024-03-04 08:16:05 +02:00
mrT23
248c6b13be
Update suggestion content in pr_code_suggestions_prompts.toml 2024-03-04 07:56:44 +02:00
mrT23
aa9dbf7111
updated readme 2024-03-03 15:04:59 +02:00
Tal
0709d5f663
Merge pull request #730 from Codium-ai/tr/issue_header
Enhance markdown formatting fo issues
2024-03-03 04:06:04 -08:00
mrT23
c372c71514
prompt 2024-03-03 14:04:09 +02:00
mrT23
b3fd05c465
try-except 2024-03-03 13:58:10 +02:00
mrT23
f1bd67b7e9
Remove functionality and references to 'remove_previous_review_comment' option 2024-03-03 11:24:30 +02:00
mrT23
5880221d00
Update logger setup to include debug level in github_app.py 2024-03-02 23:32:26 +02:00
Tal
9a0288250d
Merge pull request #729 from Codium-ai/tr/wiki
wiki
2024-03-02 10:24:27 -08:00
mrT23
917bdd5cb8
Refactor Usage.md for improved readability and organization 2024-03-02 20:23:10 +02:00
mrT23
db796416d9
wiki 2024-03-02 20:16:29 +02:00
mrT23
35315c070f
major 2024-03-01 13:18:53 +02:00
mrT23
e589dcb489
Enhance markdown formatting and update prompt descriptions in pr_reviewer_prompts.toml 2024-03-01 13:02:50 +02:00
Ori Kotek
a86a3f52f0
a minor bugfix 2024-02-29 16:03:00 +02:00
Tal
2340f95488
Merge pull request #727 from Codium-ai/tr/repo_log
log event
2024-02-28 22:10:26 -08:00
mrT23
dd4dc4b761
log event 2024-02-29 08:09:25 +02:00
Tal
6a51a646ee
Merge pull request #725 from Codium-ai/tr/repo_log
get_log_context
2024-02-28 11:26:53 -08:00
mrT23
8d498cd70c
git_org 2024-02-28 16:14:13 +02:00
mrT23
d5e72c2183
get_log_context 2024-02-28 16:10:57 +02:00
mrT23
b09b936b15
get_log_context 2024-02-28 16:05:52 +02:00
Tal
6f22e5f557
Merge pull request #714 from Codium-ai/tr/improve_tweaks
improve tweaks
2024-02-28 05:57:38 -08:00
mrT23
dbe772e708
capitalize 2024-02-28 13:59:04 +02:00
Ori Kotek
9c7ac125e1
Tweak analytics log message to add api_url 2024-02-28 12:05:01 +02:00
mrT23
a8c5ac10b6
Merge remote-tracking branch 'origin/main' into tr/improve_tweaks 2024-02-28 11:09:48 +02:00
mrT23
047c370683
Update README.md and add gfm markdown support check in pr_help_message.py 2024-02-28 09:20:14 +02:00
mrT23
07f507c442
remove_initial_comment 2024-02-28 09:08:48 +02:00
mrT23
39538c5356
cleaning 2024-02-28 09:01:39 +02:00
mrT23
0c654b3b64
handle unsupported platforms for update changelog 2024-02-28 08:41:25 +02:00
mrT23
4316d00941
log_context 2024-02-26 21:12:28 +02:00
mrT23
edc9d8944e
Refactor handle_closed_pr function to check for merged PRs 2024-02-26 20:56:43 +02:00
Ori Kotek
910c56c851
Merge pull request #721 from Codium-ai/ok/identity_provider
Identity provider
2024-02-26 20:23:09 +02:00
Ori Kotek
ab29cf2b30
Identity provider 2024-02-26 20:21:20 +02:00
mrT23
60a37158b1
Add functionality to calculate and log PR statistics on closure 2024-02-26 20:09:01 +02:00
mrT23
4921c26432
Add functionality to calculate and log PR statistics on closure 2024-02-26 20:02:11 +02:00
Ori Kotek
8bdc90c0f7
Identity provider 2024-02-26 19:00:21 +02:00
Ori Kotek
77831c793d
Identity provider 2024-02-26 18:31:12 +02:00
Ori Kotek
8843f7bc8b
Add analytics logging 2024-02-26 16:15:23 +02:00
mrT23
ffe4512b7d
small log improvement 2024-02-26 15:16:59 +02:00
mrT23
a5cb35418e
remove 'review_requested' (can trigger rate limit, and doesnt make sense algorighmically) 2024-02-26 14:20:50 +02:00
mrT23
8594c93186
improve tweaks 2024-02-26 12:05:29 +02:00
mrT23
85cdf05ca8
review formatting 2024-02-26 09:36:16 +02:00
mrT23
7c9a389abf
review formatting 2024-02-26 09:27:13 +02:00
mrT23
18472492bc
s 2024-02-26 09:14:12 +02:00
mrT23
5f9969f30c
base_url 2024-02-25 17:22:35 +02:00
Ori Kotek
2dfddd8cea
Fix a bug 2024-02-25 17:13:35 +02:00
Ori Kotek
bc88e0492f
Fix a bug 2024-02-25 17:12:40 +02:00
mrT23
a15d4f7a94
base_url 2024-02-25 16:55:20 +02:00
mrT23
4258ce165b
Refactor link generation in github_provider.py to use get_pr_url method 2024-02-25 16:33:19 +02:00
mrT23
1275cf0123
adjustment 2024-02-25 16:23:44 +02:00
Ori Kotek
5ab69af5a7
Merge pull request #695 from Codium-ai/ok/analytics
Add support for analytics file
2024-02-25 11:17:09 +02:00
mrT23
dad3d3429f
artifact 2024-02-25 10:45:15 +02:00
mrT23
984a2888ae
Refactor logging statements for better readability and debugging 2024-02-25 10:04:04 +02:00
mrT23
8252b98bf5
Refactor logging statements for better readability and debugging 2024-02-25 10:01:53 +02:00
mrT23
34e421f79b
Refactor logging statements for better readability and debugging 2024-02-25 09:58:58 +02:00
mrT23
877796b539
Refactor logging statements for better readability and debugging 2024-02-25 09:46:07 +02:00
KennyDizi
3bcf085f61 Fix context 2024-02-24 17:00:58 +07:00
KennyDizi
f3a712683a Use constant in stead of hard code number for collapsible file list threadhold 2024-02-24 16:53:18 +07:00
Tal
51ce484bab
Update github_app.py 2024-02-24 09:40:15 +02:00
Ori Kotek
4d8c38e5e1
Change github app startup logic to support gunicorj 2024-02-23 18:29:35 +02:00
Ori Kotek
2f3171e422
Change github app startup logic to support gunicorj 2024-02-23 18:28:58 +02:00
Ori Kotek
b878f64793
add analytics support 2024-02-23 17:30:20 +02:00
Ori Kotek
4242e157ab
Merge remote-tracking branch 'origin/main' into ok/analytics 2024-02-23 17:16:43 +02:00
mrT23
85492f20fa
'debug' for request body 2024-02-22 18:13:42 +02:00
mrT23
8b76eb1014
fixed bugs with incremental review 2024-02-22 18:03:00 +02:00
mrT23
adc5709b29
Refactor github_app.py to improve handling of PR events and comments 2024-02-22 17:34:51 +02:00
mrT23
b884920ef2
Refactor github_app.py to improve handling of PR events and comments 2024-02-22 17:26:47 +02:00
Ori Kotek
4ebac16ff7
Add support for analytics file 2024-02-22 13:21:56 +02:00
Ori Kotek
e3dba12fea
Adds an option to ignore PR opens by regex matching 2024-02-22 12:14:04 +02:00
mrT23
4d0f691b64
repo_settings 2024-02-21 18:23:34 +02:00
Ori Kotek
048d90623f
Ignore comment not starting with a slash 2024-02-21 17:59:58 +02:00
mrT23
8ffdaf00c1
repo_settings 2024-02-21 17:18:54 +02:00
mrT23
fc7b267c9a
self.diff_files 2024-02-21 17:00:11 +02:00
mrT23
e291bd352e
protections 2024-02-21 16:46:57 +02:00
mrT23
f08ce53de3
Optimize PR commit retrieval and caching in GitHub provider and utils 2024-02-21 16:33:32 +02:00
mrT23
b1dfd905c4
text 2024-02-21 09:40:39 +02:00
mrT23
dd5386e07e
try-except 2024-02-21 09:27:40 +02:00
mrT23
275f0d6a05
Update GitLab configuration and documentation for webhook setup 2024-02-21 09:20:28 +02:00
mrT23
0e3417b4ab
webhook 2024-02-21 08:55:59 +02:00
mrT23
4a0b12c036
Refactor reaction handling in GitHub provider and update help text in PR tools 2024-02-20 08:06:33 +02:00
Tal
6eca495801
Merge pull request #666 from yochail/yochail/support_azure_devops_managed_identity
Add Az Devops managed identity support
2024-02-19 21:44:23 -08:00
mrT23
82ba285395
finalize 2024-02-19 21:44:00 +02:00
mrT23
2be0339a27
help improved 2024-02-19 21:42:13 +02:00
mrT23
8d6c6a35db
help improved 2024-02-19 21:10:20 +02:00
mrT23
34e89e45bd
help improved 2024-02-19 21:07:24 +02:00
mrT23
0f815876e5
bitbucket code suggestions 2024-02-19 19:46:57 +02:00
mrT23
d47a840179
bitbucket code suggestions 2024-02-19 19:43:31 +02:00
Yochai Lehman
3770704db7 reset commit 2024-02-19 08:35:45 -05:00
mrT23
36aa22bd18
Refactor PR help message and update related documentation 2024-02-19 08:30:45 +02:00
mrT23
28e8707c1b
Added PRHelpMessage to command execution in pr_agent.py 2024-02-18 13:16:07 +02:00
mrT23
687ece1e86
Added PRHelpMessage to command execution in pr_agent.py 2024-02-18 13:09:17 +02:00
mrT23
0515b80247
Added PRHelpMessage to command execution in pr_agent.py 2024-02-18 13:08:05 +02:00
mrT23
ed5856493c
Added PRHelpMessage to command execution in pr_agent.py 2024-02-18 13:06:57 +02:00
mrT23
e9382b18b6
Added PRHelpMessage to command execution in pr_agent.py 2024-02-18 12:01:16 +02:00
mrT23
688cb374f6
lint 2024-02-18 08:19:01 +02:00
Tal
7b15101051
Merge pull request #661 from Codium-ai/hl/ask_line
Hl/ask line
2024-02-17 22:08:55 -08:00
Tal
cd8a40c7a6
Merge pull request #665 from Codium-ai/tr/checks_readme
Update README and documentation with new CI Feedback tool
2024-02-17 22:04:59 -08:00
Tal
2b12042a85
Merge pull request #667 from Codium-ai/tr_ado
azure webhook
2024-02-17 22:01:57 -08:00
mrT23
c6cb0524b4
rstrip 2024-02-18 07:56:14 +02:00
mrT23
481a4fe7a1
revert 2024-02-17 19:43:34 +02:00
mrT23
de4af313ba
azure dev ops 2024-02-17 19:40:06 +02:00
yochail
b402bd5591
revert azuredevops_provider.py change 2024-02-17 08:36:26 -05:00
mrT23
cb3ebd9169
Update README and documentation with new CI Feedback tool 2024-02-16 20:40:45 +02:00
mrT23
c98e736e3b
added github action support 2024-02-16 14:49:01 +02:00
mrT23
40fbd55da4
added github action support 2024-02-16 12:58:55 +02:00
Hussam.lawen
3eef0a4ebd
fix line selection, don't support line deletions 2024-02-15 22:21:58 +02:00
Hussam.lawen
6712c0a7f8
remove unnecessary call 2024-02-15 21:43:25 +02:00
Hussam.lawen
cfe794947d
Gitlab /ask line works 2024-02-15 21:35:51 +02:00
Hussam.lawen
24dd57e5b7
clean 2024-02-15 17:14:06 +02:00
Hussam.lawen
fff52e9e26
Add ask line feature 2024-02-15 14:25:22 +02:00
Ori Kotek
433b8d24b8
Add logging context to command execution in pr_agent.py 2024-02-15 12:13:56 +02:00
mrT23
bd88c66717
Merge remote-tracking branch 'origin/main' 2024-02-15 08:45:25 +02:00
mrT23
d2ad8b1dbd
Refactor publish_persistent_comment method to include name parameter 2024-02-15 08:45:17 +02:00
yochail
1053fa84f6
rename azure_devops_server var 2024-02-13 22:27:07 -05:00
mrT23
54a989d30f
no html bitbucket 2024-02-13 18:37:48 +02:00
mrT23
480a890741
no html bitbucket 2024-02-13 18:33:22 +02:00
mrT23
2f327c26e8
auto approve 2024-02-13 11:21:59 +02:00
yochail
9ff62dce08
Add legacy url support 2024-02-12 18:40:06 -05:00
yochail
e8c2ec034d
Update azuredevops_server_webhook.py
fix returned HTTP status
2024-02-12 18:38:08 -05:00
yochail
bbd0d62c85
fix auto_describe key 2024-02-11 18:10:22 -05:00
yochail
8fa058ff7f
add azure devops pat to secret template config 2024-02-11 18:06:56 -05:00
yochail
34378384da
add get endpoint for container status 2024-02-11 17:59:02 -05:00
Yochai Lehman
95344c7083 fix basic auth 2024-02-11 17:42:06 -05:00
Yochai Lehman
bc38fad4db add support for auto events 2024-02-11 17:23:56 -05:00
Yochai Lehman
076d8e7187 fix PR code suggestions 2024-02-11 17:17:25 -05:00
Yochai Lehman
22d0c275d7 fix PR comments 2024-02-11 17:13:59 -05:00
Yochai Lehman
86d4a31eef add docs 2024-02-11 17:02:14 -05:00
Yochai Lehman
9a54be5414 add webhook support 2024-02-11 16:52:49 -05:00
Tal
ec2aab805d
Merge pull request #650 from yochail/yocail/support_azure_inline_comment
Support Azure Inline Comment
2024-02-11 10:54:10 -08:00
yochail
47060ddcac
fix PR comments
- added line position
- added try-catch per comment
2024-02-11 12:40:36 -05:00
Tal
60d6fecd37
Merge pull request #653 from Codium-ai/hl/loading_improve
add loading comment to /improve
2024-02-11 07:28:57 -08:00
Ori Kotek
8a677e07a2
Fix a typo 2024-02-11 16:39:38 +02:00
Ori Kotek
3f42bb6793
Add AI disclaimer fields to configuration.toml 2024-02-11 16:22:26 +02:00
Tal
159e2f7dd6
Merge pull request #654 from rajyan/rajyan-patch-2
add pull_request event triggers for github action
2024-02-11 06:08:48 -08:00
Yohta Kimura
67fde2c17e
add pull_request event triggers for github action
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
2024-02-11 21:21:20 +09:00
Hussam.lawen
0e08520c0c
match pr-pro 2024-02-11 13:21:59 +02:00
Hussam.lawen
6c500413f1
default behavior for bitbucket 2024-02-11 13:14:47 +02:00
Hussam.lawen
73d2b1565d
Implement edit comment 2024-02-11 12:31:30 +02:00
Hussam.lawen
a40643bbba
add return response 2024-02-11 12:20:06 +02:00
Hussam.lawen
d93a24bbf7
add loading comment to /improve 2024-02-11 12:14:25 +02:00
mrT23
c75413fac5
count_chars_without_html 2024-02-11 11:37:11 +02:00
mrT23
4e386153ea
insert_br_after_x_chars can already handle code 2024-02-11 11:32:16 +02:00
mrT23
7c9b65ba65
prompts 2024-02-11 08:05:09 +02:00
yochail
ba854c228b
Update azuredevops_provider.py 2024-02-10 22:36:01 -05:00
yochail
d8ea2731ea add support for azure inline commnets 2024-02-11 03:27:47 +00:00
mrT23
078e87139a
possible_issues 2024-02-09 21:34:07 +02:00
mrT23
bf11033349
possible_issues 2024-02-09 21:27:22 +02:00
mrT23
01fbebfc5e
relevant tests 2024-02-09 12:50:51 +02:00
mrT23
796e203c01
rstrip() 2024-02-09 11:45:12 +02:00
mrT23
6837e43114
help 2024-02-09 11:30:28 +02:00
mrT23
555151602f
rstrip() 2024-02-09 11:26:43 +02:00
mrT23
f74b35fb6f
Merge remote-tracking branch 'origin/main' into hl/pr_review_table 2024-02-09 11:05:13 +02:00
mrT23
f8e1bd3d4c
get_pr_url 2024-02-09 11:02:23 +02:00
Hussam.lawen
5af9e8e749
fix 2024-02-08 23:53:29 +02:00
Hussam.lawen
77e7463395
fix tests 2024-02-08 20:14:25 +02:00
mrT23
2e1462580f
s 2024-02-08 19:02:56 +02:00
mrT23
fa077dc516
formatting 2024-02-08 18:55:58 +02:00
Hussam.lawen
a3f4c44632
PR Review 2024-02-08 15:25:43 +02:00
Hussam.lawen
4447110118
small fix 2024-02-08 14:35:39 +02:00
Hussam.lawen
c2088b7752
Merge commit 'e4f177908b620e46740b03966fda9243473d979e' into hl/pr_review_table 2024-02-08 14:26:29 +02:00
Hussam.lawen
ddb89a7474
New PR Reviewer with Table view 2024-02-08 14:26:14 +02:00
mrT23
b077873c3d
parallel_calls 2024-02-07 08:00:16 +02:00
mrT23
a7ce2b11b4
parallel_calls 2024-02-07 08:00:01 +02:00
mrT23
1c9bd3e9a8
get_pr_url 2024-02-06 09:26:00 +02:00
mrT23
3e96812c5d
Merge remote-tracking branch 'origin/main' into tr/auto_approve 2024-02-06 09:10:00 +02:00
mrT23
b190b1879e
auto approval 2024-02-06 09:09:07 +02:00
Tal
4636c8a1fa
Merge pull request #634 from Codium-ai/tr/secret_provider
protections for 'get_secret_provider'
2024-02-05 21:46:17 -08:00
mrT23
c1c7b3b6da
fixed code 2024-02-05 13:00:57 +02:00
mrT23
2b6e8c3f09
minor change 2024-02-05 12:39:03 +02:00
mrT23
cce3c70369
- patch_extra_lines = 1
- describe is with turbo model (for larger context)
2024-02-05 12:03:30 +02:00
mrT23
32e8ba331a
insert_br_after_x_chars 2024-02-05 10:12:47 +02:00
mrT23
2ee329674f
insert_br_after_x_chars 2024-02-05 09:20:36 +02:00
mrT23
e104bd7a3f
large patch protection 2024-02-04 16:27:57 +02:00
mrT23
3e128869dc
large patch protection 2024-02-04 16:10:53 +02:00
mrT23
e1b0e4a40a
minor prompt changes 2024-02-04 14:24:55 +02:00
mrT23
d04d8b616a
moving the 'improve' command to turbo mode, with auto_extended=true 2024-02-01 09:46:04 +02:00
mrT23
9579be028d
protections for 'get_secret_provider' 2024-02-01 08:31:11 +02:00
mrT23
15c8fe94bb
feat: Improve patch formatting and handle empty data in pr_code_suggestions.py 2024-01-29 22:00:11 +02:00
mrT23
0d86779799
feat: Improve patch formatting and handle empty data in pr_code_suggestions.py 2024-01-29 21:52:54 +02:00
mrT23
6565556e01
feat: Add 'language' field to CodeSuggestion, FileDescription, and ReviewerPrompt models in settings files 2024-01-29 20:51:24 +02:00
mrT23
8d36e2e2f7
feat: Add new configuration options in pr_test section and update TEST.md documentation 2024-01-29 20:17:39 +02:00
mrT23
40a7ef9132
s 2024-01-29 11:42:32 +02:00
mrT23
042eab1641
s 2024-01-29 11:39:50 +02:00
mrT23
47af04d158
s 2024-01-28 20:26:58 +02:00
mrT23
98ce0a7036
s 2024-01-27 21:25:43 +02:00
mrT23
06dede29f2
feat: Update configuration and handling of GitHub Action settings 2024-01-27 21:15:23 +02:00
Hussam.lawen
07eaa59e78
small fixes 2024-01-25 11:07:43 +02:00
mrT23
4077c5556d
enable_review_labels_effort set to true by default 2024-01-24 19:49:43 +02:00
mrT23
d8465ea9f9
removed include_improved_code 2024-01-24 19:47:30 +02:00
mrT23
f4037e0dfa
feat: Add LanceDB support for similar_issue tool and refactor SOC2 compliance feature name 2024-01-24 19:40:58 +02:00
Hussam.lawen
60c0371854
highlight options 2024-01-23 18:13:08 +02:00
Hussam.lawen
139bbfc67a
update docs and usage guide 2024-01-23 17:58:55 +02:00
Hussam.lawen
968684b461
update default config for inline_file_summary to false 2024-01-22 10:25:34 +02:00
Hussam.lawen
8d513e078a
Add changes title of files and improve table style and alignments 2024-01-21 13:43:37 +02:00
Tal
2430a1a608
Merge pull request #594 from Codium-ai/tr/fallback_bad_review_comment
Enhanced Comment Verification and Fallback Mechanism for Inline Comment Publishing
2024-01-20 02:04:06 -08:00
mrT23
e54388d807
s 2024-01-20 11:59:45 +02:00
mrT23
d942bdb8bd
s 2024-01-20 11:56:17 +02:00
Tal
84d87aa870
Merge pull request #607 from Codium-ai/tr/edge_cases
feat: Improve error handling and code readability in pr_agent tools
2024-01-18 07:09:07 -08:00
mrT23
39891e4ab1
feat: Improve error handling and code readability in pr_agent tools 2024-01-18 17:01:25 +02:00
Sagi Medina
d7858efbbe
Merge pull request #581 from Codium-ai/sm/azure_devops
Enhancement of AzureDevopsProvider with new functionalities and refactoring
2024-01-18 16:28:28 +02:00
mrT23
fc5b00f4d3
s 2024-01-18 16:11:44 +02:00
Hussam.lawen
472646ddfd
Readme 2024-01-17 16:27:07 +02:00
mrT23
e4af0b22ad
s 2024-01-17 15:51:42 +02:00
mrT23
4e833c0c28
s 2024-01-17 15:43:01 +02:00
mrT23
e66bd7caa7
fallback to commitable 2024-01-17 11:18:30 +02:00
mrT23
58163e5129
improve usage guide 2024-01-17 09:50:48 +02:00
Hussam.lawen
d7e0aad527
small fixes 2024-01-16 09:41:31 +02:00
Hussam.lawen
31576b77ff
improve backticks 2024-01-15 19:07:41 +02:00
Hussam.lawen
ea39e8684f
works 2024-01-15 16:42:50 +02:00
Hussam.lawen
afefc15b9c
improve doce suggestions UI with difflib 2024-01-15 15:56:48 +02:00
Hussam.lawen
5e17ccaf86
add colaplsable 2024-01-15 15:17:57 +02:00
Hussam.lawen
9b1eb86d75
first iteration of improved UI for /improve --extended 2024-01-15 15:10:54 +02:00
mrT23
9f5c2e5f17
feat: Refactor comment verification in github_provider.py 2024-01-14 11:55:07 +02:00
mrT23
7377f4e4b2
feat: Refactor comment verification in github_provider.py 2024-01-14 11:49:51 +02:00
mrT23
d6f4c1638d
feat: Refactor comment verification in github_provider.py 2024-01-14 10:49:05 +02:00
zmeir
b9951fce62 Typo when parsing the suggestion part 2024-01-10 11:59:45 +02:00
Tal
609836bd6a
Merge pull request #587 from Codium-ai/tr/abbrevations
Enhancement: Improve PR-Agent Tool with Custom Labels, Extra Instructions, and Summarize Mode
2024-01-09 23:39:04 -08:00
mrT23
09ee0b64ba
feat: Refactor instructions and fields in pr_code_suggestions_prompts.toml 2024-01-10 09:37:05 +02:00
Tal
fb4746fd09
Merge pull request #584 from samanhappy/link
Fix link formatting for relevant_line
2024-01-09 23:22:55 -08:00
mrT23
729b5d11c9
feat: Refactor instructions and fields in pr_code_suggestions_prompts.toml 2024-01-09 22:56:25 +02:00
mrT23
fc502a6fd5
feat: Refactor instructions and fields in pr_code_suggestions_prompts.toml 2024-01-09 22:49:26 +02:00
mrT23
2b607dbd9a
feat: Refactor instructions and fields in pr_code_suggestions_prompts.toml 2024-01-09 22:32:09 +02:00
mrT23
9c6aabb0bb
feat: Add custom labels and extra instructions sections to help.py, summarize mode to pr_code_suggestions.py, and summarize mode condition to pr_code_suggestions_prompts.toml 2024-01-09 22:09:48 +02:00
mrT23
a42e57d09b
ask helper 2024-01-09 16:36:39 +02:00
mrT23
e56c443fd6
ask helper 2024-01-09 16:34:27 +02:00
mrT23
abc05e7711
ask helper 2024-01-09 16:25:23 +02:00
zmeir
19c14b940e Try fixing invalid inline comments 2024-01-09 09:54:29 +02:00
samanhappy
36f1cfb51f Enhancement: Update GitLab link generation to support self-managed GitLab server and different projects 2024-01-09 15:11:27 +08:00
samanhappy
0f2a4654a7 Fix link formatting for relevant_line 2024-01-09 14:56:18 +08:00
zmeir
28c5ad1d8b nit 2024-01-08 13:06:03 +02:00
zmeir
2bb5ae8c0d Remove redundant condition (status 422 already means the same) 2024-01-08 13:05:10 +02:00
zmeir
b0bffdec84 Refactor and add configuration toggle 2024-01-08 12:00:20 +02:00
mrT23
e0f4bc7ded
feat: Remove bot help text from github_polling.py 2024-01-08 11:45:01 +02:00
mrT23
e9a2a0a96f
s 2024-01-08 10:37:51 +02:00
mrT23
46a38473e4
Merge remote-tracking branch 'origin/main' into tr/unique_titles 2024-01-08 10:30:58 +02:00
mrT23
c9e55be275
s 2024-01-08 10:30:47 +02:00
mrT23
8bb2eb48af
s 2024-01-08 09:43:34 +02:00
mrT23
9cfb8ce475
s 2024-01-08 09:39:19 +02:00
mrT23
67cb133c52
s 2024-01-08 09:28:44 +02:00
mrT23
9c054bb80f
s 2024-01-08 09:18:46 +02:00
Sagi Medina
b776e5069c
feat: Refactor AzureDevopsProvider class in azuredevops_provider.py
- Reorder class methods and constructor for better readability
- Add error logging for failed operations
- Implement get_pr_description_full method
- Update get_pr_description method to always return full description
- Modify _parse_pr_url method to return workspace_slug, repo_slug, and pr_number
- Make _get_azure_devops_client a static method
- Add error handling in get_pr_id method
2024-01-08 09:15:34 +02:00
Sagi Medina
c8bca487e5
feat: Implement methods in AzureDevopsProvider for publishing code suggestions, labels, and removing comments 2024-01-08 08:59:12 +02:00
Tal
78fa61eac6
Merge branch 'main' into tr/user_description 2024-01-07 22:55:18 -08:00
mrT23
3ea08a6cf5
feat: Add debug logs to git_provider and pr_description modules 2024-01-07 19:57:49 +02:00
mrT23
3154ebbf9f
feat: Add debug logs to git_provider and pr_description modules 2024-01-07 19:56:05 +02:00
mrT23
a6bbd04efb
s 2024-01-07 17:02:18 +02:00
mrT23
578d15c6fc
usage guide 2024-01-07 16:38:08 +02:00
zmeir
22d17985a1 Less noisy fallback for publish_code_suggestions in case of invalid comments
As a first option, `publish_code_suggestions` will try to post all review comments in a single GitHub review. This is preferred because it will group all comments together in the GitHub UI under the same review, and will trigger just one notification for any viewers of the PR.

If just one of the comments is malformed, the entire API request will fail and none of the comments will be posted to the PR. In the current implementation, the fallback mechanism is to just post each comment separately with `try/except` and skip the invalid comments. This works, but potentially creates a lot of noise in the PR as each comment is posted as in a separate review, creating multiple notifications.

This suggested fallback is based on a similar idea, but without creating multiple review notifications. The it works is by iterating over the potential comments, and starting a PENDING review for the current comment. The review is not submitted and does not trigger a notification, but it is verified against the GitHub API, and so we can verify if the comment is valid. After checking all comments we then submit a single review with all the verified comments which is guaranteed to succeed.

The end result is having the exact same comments posted to the PR as with the current fallback method, but the downside is having twice as many API calls (for each comment we have 1 extra API call to delete the pending review).
2024-01-07 16:00:44 +02:00
mrT23
edcb666fbc
docs: Reorganize and enhance documentation for review and describe tools 2024-01-07 09:28:06 +02:00
mrT23
355ef8c476
feat: Update adaptive collapsible file list logic in pr_description.py 2024-01-06 10:36:36 +02:00
mrT23
22b7dd9f2d
s 2024-01-06 10:15:04 +02:00
mrT23
ac74fa8431
docs 2024-01-05 21:28:54 +02:00
mrT23
42704d5781
Merge remote-tracking branch 'origin/main' into tr/user_description 2024-01-05 17:03:30 +02:00
mrT23
3628786a61
feat: Clarify PRType label member usage in pr_description_prompts.toml 2024-01-05 17:03:14 +02:00
Tal
fe6b2065fb
Merge pull request #569 from zmeir/zmeir/enhance/auto_improve_extended_simple
Add toggle to automatically enable `/improve --extended`
2024-01-04 09:06:08 -08:00
Zohar Meir
c2b0891c0b
Simpler auto-extended toggle and keep the default as false 2024-01-04 18:53:45 +02:00
Tal
782f1ca1bd
Merge pull request #568 from Codium-ai/tr/user_description
Enhancement: Improved Extraction and Placement of User Descriptions in PRs
2024-01-04 08:35:34 -08:00
mrT23
6d18a0c843
feat: Improve user description extraction in git_provider.py 2024-01-04 18:34:00 +02:00
Tal
e6093cd768
Merge pull request #567 from zmeir/zmeir/enhance/support_azure_in_langchain_ai_handler
Add support for Azure OpenAI in LangChainOpenAIHandler
2024-01-04 08:22:01 -08:00
mrT23
1c2bb2ef3d
feat: Update user description extraction and placement in PR description 2024-01-04 18:05:28 +02:00
mrT23
7762bf59bf
feat: Update user description extraction and placement in PR description 2024-01-04 18:01:55 +02:00
mrT23
3e29848cd0
Merge remote-tracking branch 'origin/main' into tr/user_description
# Conflicts:
#	pr_agent/git_providers/git_provider.py
2024-01-04 17:49:10 +02:00
mrT23
c3b5aaf8cc
feat: Update user description extraction and placement in PR description 2024-01-04 17:46:24 +02:00
zmeir
ba3f22d81e Move logging to a central location for all AI Handlers 2024-01-04 16:22:22 +02:00
zmeir
ac7aaa0cd3 Add support for Azure OpenAI in LangChainOpenAIHandler 2024-01-04 16:22:22 +02:00
zmeir
1ade09eaa3 Fix failing /config command
All commands need the `ai_handler` argument. The PRConfig class was missing it in the `__init__` method and so it failed with this error:

```
File "/home/vcap/app/pr_agent/agent/pr_agent.py", line 76, in handle_request
    await command2class[action](pr_url, ai_handler=self.ai_handler, args=args).run()
TypeError: PRConfig.__init__() got an unexpected keyword argument 'ai_handler'
```
2024-01-04 14:49:34 +02:00
Tal
b7af45166a
Merge pull request #561 from zmeir/zmeir/fix/get_user_description
Fix `get_user_description`
2024-01-04 00:40:08 -08:00
mrT23
ed78bfd946
use_collapsible_file_list 2024-01-04 10:27:07 +02:00
mrT23
4204d78d7e
feat: Remove file walkthrough feature from PR agent 2024-01-04 09:59:44 +02:00
mrT23
3c2ed8bbf1
feat: Remove file walkthrough feature from PR agent 2024-01-04 09:42:15 +02:00
Zohar Meir
8d2da74380
Find user description in a case-insensitive way 2024-01-04 09:41:55 +02:00
Zohar Meir
39c1866121
Revert title() to capitalize() 2024-01-04 09:41:24 +02:00
zmeir
2f9fbbf0ac Prevent reducing the number of suggestions if already low enough 2024-01-03 16:43:39 +02:00
zmeir
0189e12fb1 Automatically enable improve extended mode for large PRs 2024-01-03 16:43:38 +02:00
zmeir
967494ce17 Refine the prompt for add_docs command
I found that without it, python docstrings are sometimes suggested above the function signature, instead of below.
2024-01-03 12:27:23 +02:00
zmeir
560d30dbb1 Fix get_user_description
The headers changed from "PR Type"/"PR Description"/etc to "Type"/"Description"/etc
2024-01-03 12:20:51 +02:00
Phill Zarfos
0bd2f045a3 feat: Fix typo 2024-01-02 08:11:31 -05:00
mrT23
7dfc306e7c
feat: Add SOC2 compliance review feature to PR agent 2024-01-01 20:15:36 +02:00