Commit graph

559 commits

Author SHA1 Message Date
mrT23
9c0656c296
graphic adjustments 2023-09-13 08:16:23 +03:00
mrT23
ee3874f0aa
Merge pull request #297 from Codium-ai/tr/fix_tests
Enhancing Logging in pr_similar_issue.py
2023-09-13 07:27:50 +03:00
Ori Kotek
b7a2551cab
Support issue comments in GitHub Actions 2023-09-12 16:46:02 +03:00
Ori Kotek
21feb92b75
Support issue comments in GitHub Actions 2023-09-12 16:41:12 +03:00
Ori Kotek
2f6178306f
Fix a bug in GitHub Actions 2023-09-12 13:28:35 +03:00
sarbjitgrewal
caee7cbf50 add bitbucket access token 2023-09-12 11:20:38 +05:30
mrT23
901eda2f10
logs 2023-09-12 07:57:21 +03:00
mrT23
d7f43d6ee0
gfm_supported 2023-09-12 07:43:15 +03:00
sarbjitgrewal
9bd5140ea4 update access token 2023-09-11 16:33:45 +05:30
sarbjitgrewal
12bd9e8b42 add bitbucket pipeline 2023-09-11 16:08:23 +05:30
Ori Kotek
98d0835c48
Merge remote-tracking branch 'origin/main' into fix_bitbucket_publish_description 2023-09-10 14:08:17 +03:00
Ori Kotek
2aef9dfe55
Merge remote-tracking branch 'origin/main' into fix_bitbucket_publish_description 2023-09-10 14:06:54 +03:00
Ori Kotek
115b513c9b
Remove 'bitbucket' explicit dependency anywhere that's not in bitbucket_provider.py 2023-09-10 14:06:13 +03:00
mrT23
d40285e4d3
Merge branch 'main' into tr/litellm_debugger 2023-09-10 13:40:35 +03:00
mrT23
517658fb37
Merge pull request #282 from Codium-ai/tr/issue_tool
Adding Similar Issue Tool and Pinecone Integration
2023-09-10 13:39:34 +03:00
mrT23
6382b8a68b
LITELLM_TOKEN 2023-09-10 13:28:56 +03:00
mrT23
e371b217ec
Merge remote-tracking branch 'origin/main' into tr/litellm_debugger 2023-09-10 13:27:19 +03:00
mrT23
892dbe458e
litellm client 2023-09-09 17:35:45 +03:00
Krrish Dholakia
1b098aea13 adding documentation on how to call local hf models 2023-09-08 09:59:44 -07:00
mrT23
e90c9e5853
Merge pull request #287 from cloudlinux/gerrit
[gerrit] Added support project's config file: `.pr_agent.toml`
2023-09-07 19:06:32 +03:00
Nikolay Telepenin
e4f28b157f Added support project's config file: .pr_agent.toml
+ removed markdown/html formatting from the review due to gerrit does not support it
2023-09-07 13:13:07 +01:00
mrT23
b23a4c0535
Merge remote-tracking branch 'origin/main' into tr/issue_tool
# Conflicts:
#	requirements.txt
2023-09-07 12:30:16 +03:00
mrT23
145b5db458
added 'publish_description_as_comment' support 2023-09-07 12:10:33 +03:00
mrT23
8af8fd8e5d
github action 2023-09-06 17:43:43 +03:00
mrT23
8962c9cf8a
stable 2023-09-06 09:43:23 +03:00
mrT23
bc95cf5b8e
stable 2023-09-06 09:12:25 +03:00
mrT23
dcd8196b94
Merge remote-tracking branch 'origin/main' into tr/issue_tool
# Conflicts:
#	pr_agent/settings/configuration.toml
2023-09-06 08:43:41 +03:00
mrT23
901c1dc3f0
issue tool 2023-09-06 08:43:01 +03:00
sarbjitgrewal
adb9964823 Merge branch 'main' of https://github.com/Codium-ai/pr-agent into fix_bitbucket_publish_description 2023-09-06 09:32:43 +05:30
sarbjitgrewal
335877c4a7 fix publish description for bitbucket 2023-09-06 09:26:23 +05:30
Krrish Dholakia
5da6a0147c showing how to use huggingface models 2023-09-05 16:23:22 -07:00
Krrish Dholakia
ca50724952 adding details on calling azure 2023-09-05 15:19:56 -07:00
Ori Kotek
1443df7227
Merge remote-tracking branch 'origin/main' into ok/gitlab_webhook 2023-09-05 18:15:51 +03:00
Nikolay Telepenin
4a54532b6a Set github provider by default
- merge README.md
2023-09-05 09:09:35 +01:00
Nikolay Telepenin
0dbe64e401 Merge branch 'main' into gerrit 2023-09-05 09:04:32 +01:00
mrT23
c0b23e1091
Merge remote-tracking branch 'origin/main' into tr/issue_tool
# Conflicts:
#	pr_agent/algo/utils.py
2023-09-05 08:05:33 +03:00
sarbjitgrewal
704c169181 Merge branch 'main' of https://github.com/Codium-ai/pr-agent into fix_bitbucket_improve_issue 2023-09-05 10:00:07 +05:30
Tim Perkins
746140b26e Add support for markers in description 2023-09-04 12:11:39 -04:00
Nikolay Telepenin
53ce609266 Msg is mandatory field for the request 2023-09-04 15:50:36 +01:00
Ori Kotek
140760c517
Add Gitlab webhook secret 2023-09-04 16:39:31 +03:00
Ori Kotek
56e9493f7a
Add Gitlab webhook secret 2023-09-04 15:29:21 +03:00
Phill Zarfos
ae3d7067d3 implemented 'improve' command for CodeCommit 2023-09-03 09:22:08 -04:00
Phill Zarfos
0203086aac removed duplicate swift statement 2023-09-02 15:39:57 -04:00
Nikolay Telepenin
ae98cfe17b Return status of upload suggestion to the gerrit 2023-09-01 14:56:16 +01:00
Nikolay Telepenin
35a6eb2e52 Add unique patch to according to multiple execution of publish_code_suggestions 2023-09-01 14:51:29 +01:00
Nikolay Telepenin
8b477c694c Fix after rebase on main branch 2023-09-01 14:41:56 +01:00
Nikolay Telepenin
1254ad1727 Gerrit:
- support reflect/answer
2023-09-01 14:31:35 +01:00
Nikolay Telepenin
eeea38dab3 Gerrit support 2023-09-01 14:31:34 +01:00
mrT23
de39595522
Merge pull request #252 from zmeir/zmeir-try_to_fix_split_line_ranges
Try to refine the prompt to prevent split line ranges that give bad suggestions
2023-08-31 20:36:33 +03:00
Ori Kotek
4c6595148b
Add Gitlab webhook secret 2023-08-31 17:03:58 +03:00
Ori Kotek
02e0f958e7
Add Gitlab webhook secret 2023-08-31 14:56:45 +03:00
sarbjitgrewal
970a7896e9 Merge branch 'main' of https://github.com/Codium-ai/pr-agent into fix_bitbucket_improve_issue 2023-08-31 13:35:32 +05:30
zmeir
c6c97ac98a Try to change the improve command prompt to prevent split lines range 2023-08-30 23:33:38 +03:00
zmeir
92e23ff260 Fix #254 2023-08-30 23:05:41 +03:00
mrT23
85130c0d30
Merge pull request #255 from pzarfos/issue_138_codecommit_describe
Enhancement of AWS CodeCommit support in PR-Agent
2023-08-30 20:30:50 +03:00
Ori Kotek
d64b1f80da
Allow overriding GitHub app default action by using repo local file 2023-08-30 12:12:09 +03:00
Phill Zarfos
f26264daf1 added describe command to CodeCommit 2023-08-29 17:59:52 -04:00
sarbjitgrewal
2aaa722102 Merge branch 'main' of https://github.com/Codium-ai/pr-agent into fix_bitbucket_improve_issue 2023-08-29 09:49:19 +05:30
mrT23
f14c5d296a
Merge pull request #251 from zmeir/zmeir-fix_azure_api
Fixed incorrect usage for Azure OpenAI API
2023-08-28 20:52:04 +03:00
mrT23
d3c7dcc407
AZURE_DEVOPS_AVAILABLE 2023-08-28 20:21:29 +03:00
mrT23
f5dd7207dc
Merge remote-tracking branch 'origin/main' into tr/prompts_yaml 2023-08-28 20:19:22 +03:00
mrT23
e5e10d5ec5
Merge pull request #241 from szecsip/feature_azure_devops
Add Azure DevOps provider with basic functionality
2023-08-28 17:03:05 +03:00
zmeir
314d13e25f Fixed incorrect usage for Azure OpenAI API 2023-08-28 16:13:26 +03:00
mrT23
2dc2a45e4b
yaml 2023-08-28 09:48:43 +03:00
sarbjitgrewal
39522abc03 fix conflicts 2023-08-28 11:21:47 +05:30
Ori Kotek
9e878d0d9a
Bitbucket server 2023-08-27 10:11:46 +03:00
sarbjitgrewal
0e42634da4 add publish_labels and get_labels functions 2023-08-25 10:15:30 +05:30
Péter Szécsi
b94ed61219
Merge branch 'main' into feature_azure_devops 2023-08-24 16:41:33 +00:00
szecsip
ceaff2a269 fix exception printing 2023-08-24 16:35:34 +00:00
szecsip
12167bc3a1 fix imports 2023-08-24 16:34:20 +00:00
Ori Kotek
355abfc39a
Bitbucket server, WIP 2023-08-24 18:35:41 +03:00
szecsip
c163d47a63 fix imports 2023-08-24 15:22:14 +00:00
szecsip
5d529a71ad some minor changes in Azure DevOps git provider 2023-08-24 15:20:00 +00:00
Ori Kotek
5079daa4ad
Bitbucket server, WIP 2023-08-24 16:33:51 +03:00
sarbjitgrewal
f0dc485305 Merge branch 'main' of https://github.com/Codium-ai/pr-agent into fix_bitbucket_improve_issue 2023-08-24 16:14:29 +05:30
sarbjitgrewal
db6bf41051 update readme 2023-08-24 15:56:20 +05:30
Ori Kotek
123741faf3
Bitbucket server, WIP 2023-08-24 12:10:13 +03:00
sarbjitgrewal
67ff50583a fix improve, update_changelog and review inline comment 2023-08-24 11:52:20 +05:30
szecsip
01d1cf98f4 init Azure DevOps git provider 2023-08-23 16:01:10 +00:00
szecsip
52ba2793cd modify get_main_pr_language to handle azuredevops provided language format 2023-08-23 15:59:49 +00:00
mrT23
fd39c64bed
Merge pull request #233 from zmeir/zmeir-automatic_github_app_options
Support custom deployments for github_app.py and add more options for automatic review actions
2023-08-23 09:20:46 +03:00
mrT23
16150e9c84
update litellm 2023-08-23 09:19:15 +03:00
mrT23
6599cbc7f2
Merge remote-tracking branch 'origin/main' into tr/tweaks_and_improvements 2023-08-23 09:17:53 +03:00
mrT23
53108a9b20
Merge branch 'main' into main 2023-08-23 09:16:00 +03:00
Phill Zarfos
d31b66b656 initial implementation of CodeCommit 2023-08-22 17:15:11 -04:00
zmeir
f17b4fcc9e Made the automatic describe command the least destructive 2023-08-22 21:14:03 +03:00
zmeir
5582a901ff Merge branch 'main' into zmeir-automatic_github_app_options 2023-08-22 21:09:23 +03:00
mrT23
412c86593d
fixed tests 2023-08-22 20:21:52 +03:00
mrT23
04be1573d5
improved review 2023-08-22 20:10:36 +03:00
Zohar Meir
3d771e28ce
Remove redundant None default in dict.get 2023-08-22 18:33:25 +03:00
Zohar Meir
a9a7a55f02
Remove redundant toggle 2023-08-22 18:28:43 +03:00
Zohar Meir
62fe1de12d
Remove redundant toggle 2023-08-22 18:28:06 +03:00
mrT23
635b243280
Merge pull request #223 from zmeir/zmeir-keep_original_pr_description
Enhancement: Retain Original User Description and Title in PRs
2023-08-22 16:47:16 +03:00
mrT23
cbe0a695d8
Merge pull request #229 from Codium-ai/tr/sequential_improve
Implementing Extended Improve Mode for More Thorough PR Reviews
2023-08-22 16:46:52 +03:00
zmeir
782c170883 Support custom deployments for github_app.py and add more options for automatic review actions 2023-08-22 16:46:03 +03:00
mrT23
9157fa670e
-> bool 2023-08-22 16:32:22 +03:00
mrT23
36e5e5a17e
update 2023-08-22 16:30:18 +03:00
mrT23
f4f040bf8d
publish each suggestion separably 2023-08-22 16:11:51 +03:00
zmeir
82fb611a26 Add options to keep original user title 2023-08-22 10:32:58 +03:00
zmeir
09ef809080 Added comments explaining the logic behind get_user_description 2023-08-22 10:04:21 +03:00
zmeir
2b22f712fb Renamed keep_user_description --> add_original_user_description 2023-08-22 09:55:56 +03:00
mrT23
b85679e5e4
improve --extend 2023-08-22 09:42:59 +03:00
Krrish Dholakia
dcad490513 adding huggingface inference support + litellm debugger 2023-08-21 15:31:51 -07:00
mrT23
fb9335f424
extended improve 2023-08-21 18:17:34 +03:00
zmeir
81c38f9646 Added type hints 2023-08-21 09:22:58 +03:00
Phill Zarfos
542bc9586a Remove duplicate get_repo_settings() in bitbucket_provider 2023-08-20 12:58:44 -04:00
zmeir
b3749d08e2 Set default configuration to false to allow users to opt-in 2023-08-20 19:00:56 +03:00
zmeir
31e91edebc Allow keeping the original user description 2023-08-20 18:59:40 +03:00
mrT23
6693aa3cbc
semi stable 2023-08-20 15:01:06 +03:00
Ori Kotek
fda98643c2
Merge pull request #217 from sarbjitsinghgrewal/fix_bitbucket_improve_issue
fix bitbucket improve issue
2023-08-20 14:42:15 +03:00
Ori Kotek
2bbb25d59c
Merge pull request #222 from Codium-ai/ok/fix_gitlab
Fix repo settings bug in Gitlab
2023-08-20 14:41:31 +03:00
Ori Kotek
08afeb9759
Merge pull request #219 from idavidov/idavidov/gitlab_bug
Fixing GitLab Inline Comment Diff Issue by Implementing Relevant Diff Selection
2023-08-20 14:40:32 +03:00
Ori Kotek
2d5b0fa37f
Fix repo settings bug in Gitlab 2023-08-20 14:39:05 +03:00
zmeir
c6f8d985c2 Safe parse key value in config override 2023-08-20 10:11:39 +03:00
idavidov
9770f4709a few more changes suggested by AI implemented 2023-08-19 16:26:15 +03:00
idavidov
35afe758e9 revert back conf 2023-08-19 16:16:16 +03:00
idavidov
50125ae57f various changes as outcomes from AI review 2023-08-19 16:12:48 +03:00
idavidov
6595c3e0c9 2 more /improve good suggestions 2023-08-19 15:47:45 +03:00
idavidov
fdd16f6c75 raize exception when no diffs in MR 2023-08-19 15:40:40 +03:00
idavidov
7b7e913195 to changes suggested by /improve with my small touch 2023-08-19 15:31:02 +03:00
idavidov
5477469a91 in order to have exact sha's we have to find correct diff for this change
otherwise gitlab web doesn't able show diff on page and return 500 or 400 errors based on different scenarios
2023-08-19 15:06:22 +03:00
sarbjitgrewal
dff4646920 fix bitbucket improve issue 2023-08-18 17:48:45 +05:30
Tim Perkins
631fb93b28 Implement Automatic Review Configuration for GitHub app 2023-08-16 16:24:30 -04:00
mrT23
dee1f168f8
Merge pull request #206 from pzarfos/fix/bitbucket_get_repo_settings
Implement get_repo_settings for BitbucketProvider
2023-08-16 18:54:36 +03:00
mrT23
bb18e32c56
Merge pull request #209 from tjwp/no-suggestions
Publish comment when improve has no suggestions
2023-08-16 18:53:39 +03:00
Tim Perkins
70286e9574
Make the message more modest 2023-08-15 08:35:57 -04:00
Tim Perkins
3f60d12a9a Publish comment when improve has no suggestions 2023-08-14 13:07:00 -04:00
Phill Zarfos
164b340c29 Merge branch 'main' into fix/bitbucket_get_repo_settings 2023-08-14 08:30:14 -04:00
Ori Kotek
4bb035ec0f
Merge pull request #208 from sarbjitsinghgrewal/fix_bitbucket_ask_issue
Fix bitbucket ask issue
2023-08-14 14:52:45 +03:00
Ori Kotek
23a79bc8fe
Merge pull request #183 from zmeir/zmeir-fallback_deployments
Support fallback deployments to accompany fallback models
2023-08-14 14:51:14 +03:00
sarbjitgrewal
cca951d787 fix bitbucket ask issue 2023-08-14 14:30:30 +05:30
Phill Zarfos
f82b9620af Implement get_repo_settings for BitbucketProvider 2023-08-13 18:25:11 -04:00
Péter Szécsi
524faadffb init AzureDevopsProvider 2023-08-13 23:00:45 +02:00
Péter Szécsi
82710c2d15 add AzureDevopsProvider to __init__.py 2023-08-13 22:56:50 +02:00
Zohar Meir
b7b650eb05
Remove extra blank line in help message 2023-08-13 11:32:02 +03:00
zmeir
6ca0655517 Extracted to helper functions 2023-08-13 11:03:10 +03:00
zmeir
edcf89a456 Improve comment 2023-08-13 10:56:16 +03:00
zmeir
7762a67250 Fail if not enough fallback deployments 2023-08-13 10:55:44 +03:00
zmeir
7049c73790 Merge branch 'main' into zmeir-fallback_deployments 2023-08-13 10:48:21 +03:00
mrT23
d3a5aea89e
update_changelog 2023-08-11 18:50:56 +03:00
mrT23
dd87df49f5
block scalar 2023-08-11 18:43:46 +03:00
mrT23
e85bcf3a17
Merge remote-tracking branch 'origin/tr/block_scalar' into tr/block_scalar 2023-08-11 18:38:06 +03:00
mrT23
abb754b16b
block scalar 2023-08-11 18:37:55 +03:00
mrT23
bb5878c99a
Merge branch 'main' into tr/block_scalar 2023-08-11 18:36:21 +03:00
mrT23
273a9e35d9
block scalar 2023-08-11 18:35:34 +03:00
Ori Kotek
17ed050ca7
Merge pull request #192 from coditamar/fix/minor_cli_and_requirements_fixes
Correcting CLI and README Descriptions and Fixing Requirements.txt
2023-08-10 02:18:13 +03:00
Ori Kotek
b206b1c5ff
Protect for empty description 2023-08-10 02:08:36 +03:00
Itamar Friedman
725ac9e85d fixing cli pr_url help description 2023-08-10 01:30:12 +03:00
mrT23
d38c5236dd
Merge pull request #187 from Codium-ai/ok/limit_description
Limiting Description and Commit Messages Length
2023-08-09 14:14:47 +03:00
mrT23
1b0b90e51d
block scalar 2023-08-09 14:11:58 +03:00