Luca Simone
eae30c32a2
fix: Use checked exception for ValueError
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-16 10:58:35 +01:00
Luca Simone
3fae5cbd8d
feat: Added BitBucket Server
...
Signed-off-by: Luca Simone <info@lucasimone.info>
2023-11-15 15:47:44 +01:00
mrT23
c4899a6c54
bitbucket
2023-11-15 12:11:02 +02:00
mrT23
24d82e65cb
gitlab
2023-11-15 09:45:10 +02:00
mrT23
2567a6cf27
gitlab
2023-11-15 09:40:45 +02:00
mrT23
94cb6b9795
more feedback
2023-11-15 09:06:26 +02:00
Zohar Meir
7d89b82967
Fix get_user_description in case pr_description.enable_pr_type=false
...
Fixes an issue when getting the user description after a PR-Agent description was already generated, in case the configuration setting `pr_description.enable_pr_type` was `false`.
2023-11-13 14:41:14 +02:00
mrT23
737792d83c
publish_persistent_comment
2023-11-09 15:24:55 +02:00
mrT23
7e5889061c
publish_persistent_comment
2023-11-09 15:20:31 +02:00
mrT23
755e04cf65
bitbucket finally works
2023-11-08 20:41:55 +02:00
mrT23
44d6c95714
response
2023-11-08 20:38:18 +02:00
mrT23
14610d5375
persistent
...
s
2023-11-08 20:16:08 +02:00
mrT23
a1e32d8331
s
2023-11-08 14:36:59 +02:00
mrT23
0293412a42
s
2023-11-08 14:31:08 +02:00
mrT23
10ec0a1812
s
2023-11-08 14:21:03 +02:00
mrT23
69b68b78f5
s
2023-11-08 14:17:59 +02:00
mrT23
39e5102a2e
fix added files
2023-11-08 12:47:18 +02:00
mrT23
4c484f8e86
Merge pull request #423 from zmeir/zmeir-external-incremental_review_thresholds
...
Implementing Thresholds for Incremental PR Reviews
2023-11-06 01:07:01 -08:00
mrT23
e37daf6987
link to change
2023-11-06 08:27:34 +02:00
mrT23
8fc663911f
fixe bitbucket get_repo_settings bug
2023-11-06 08:15:43 +02:00
Ori Kotek
fe3527de3c
Add exception handling for applying repo settings failure
2023-11-03 12:23:49 +02:00
Ori Kotek
c0b3c76884
Merge remote-tracking branch 'origin/main' into ok/bitbucket_fix
2023-11-02 15:27:11 +02:00
Ori Kotek
e1370a8385
Update publish_inline_comments in bitbucket_provider.py to use 'position' instead of 'start_line'
2023-11-02 15:24:47 +02:00
zmeir
c623c3baf4
Added new configurations to prevent too frequent incremental commits on push trigger
2023-11-02 12:24:54 +02:00
Zohar Meir
15573e2286
Fix error in get_main_pr_languages when the diff is empty
...
This can happen for example when you have one commit add a line to a file and the next commit deletes that line. Then if those are the only 2 commits in the PR the diff will be empty.
2023-11-02 10:10:54 +02:00
Ori Kotek
73bb70fef4
Update get_repo_settings in bitbucket_provider.py to fetch file via API request
2023-10-30 18:36:46 +02:00
Ori Kotek
4bda9dfe04
Update get_repo_settings to decode file from target branch in gitlab_provider.py
2023-10-30 17:01:49 +02:00
Ori Kotek
e74bb80668
Refactor get_repo_settings method in gitlab_provider.py to decode file contents
2023-10-30 16:45:47 +02:00
Ori Kotek
61d3e1ebf4
Merge pull request #394 from zmeir/zmeir-external-push_trigger
...
Added support for automatic review on push event
2023-10-29 13:04:33 +02:00
mrT23
638db96311
github action now also uses .pr_agent.toml
2023-10-28 13:34:32 +03:00
zmeir
414f2b6767
Fix incremental review if there are no new commits (would have performed a full review instead)
2023-10-26 16:49:55 +03:00
zmeir
02570ea797
Remove previous review comment on push event
2023-10-26 16:46:54 +03:00
Hussam Lawen
88ca501c0c
Merge pull request #377 from zmeir/zmeir-review_incremental_detect_header
...
Get previous incremental review
2023-10-18 00:30:42 +03:00
Marius Anderie
e6f1e0520a
remove azure.com url restriction
2023-10-16 20:38:14 +02:00
Zohar Meir
d8de89ae33
Get previous incremental review
...
When getting the last commit in `/review -i` consider also the last __incremental__ review, not just the last __full__ review
Full disclosure I'm not really sure the `/review -i` feature work very well - I might be wrong but it seemed like the actual review in fact addressed all the changes in the PR, and not just the ones from the last review (even though it adds a link to the commit of the last review).
I think the commit list gathered in `/review -i` doesn't propagate the actual list the reviewer uses. Again, I might be wrong, just took a brief glance at it.
2023-10-16 16:37:10 +03:00
Ori Kotek
c324d88be3
Refactor logging system to use custom logger across the codebase
2023-10-16 14:56:00 +03:00
Ori Kotek
e7258e732b
Refactor repo-specific settings application into a utility function, fix merge bug
2023-10-14 01:39:05 +03:00
mrT23
da98fd712f
note
2023-10-08 16:58:22 +03:00
mrT23
e6548f4fe1
simpler solution
2023-10-08 16:57:22 +03:00
mrT23
1b3fb49f9c
publish each suggestion seperatly only on gitlab
2023-10-08 16:50:25 +03:00
mrT23
2945c36899
source_branch
2023-10-05 18:21:52 +03:00
mrT23
72eecbbf61
add line number
2023-10-05 17:59:08 +03:00
mrT23
989c56220b
add line number
2023-10-05 17:48:36 +03:00
mrT23
088f256415
stable
2023-10-05 17:03:10 +03:00
Brian Pham
589d329a3c
Add error logs for troubleshooting
2023-10-02 05:37:27 +00:00
Brian Pham
4479c5f11b
Azure Devops: Set file content as empty string when error
2023-10-01 16:22:37 +00:00
BrianPham
32a8b0e9bc
Ignore change item with gitObjectType == 'tree'
2023-10-01 07:34:01 +00:00
mrT23
4c72cfbff4
auto tools in github action
2023-09-25 18:56:10 +03:00
Phill Zarfos
9167c20512
added unit tests
2023-09-23 10:41:53 -04:00
Phill Zarfos
a7fb5d98b1
add get_pr_id() to CodeCommitProvider
2023-09-23 08:08:46 -04:00
mrT23
3e07fe618f
pr_id gitlab
2023-09-21 21:35:00 +03:00
mrT23
be54fb5bf8
pr_id
2023-09-21 21:29:41 +03:00
mrT23
4fbe7d14b5
protection for no language
2023-09-17 16:41:53 +03:00
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
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
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
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
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
Nikolay Telepenin
53ce609266
Msg is mandatory field for the request
2023-09-04 15:50:36 +01: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
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
92e23ff260
Fix #254
2023-08-30 23:05:41 +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
d3c7dcc407
AZURE_DEVOPS_AVAILABLE
2023-08-28 20:21:29 +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
sarbjitgrewal
39522abc03
fix conflicts
2023-08-28 11:21:47 +05:30
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
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
Phill Zarfos
d31b66b656
initial implementation of CodeCommit
2023-08-22 17:15:11 -04: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
mrT23
9157fa670e
-> bool
2023-08-22 16:32:22 +03:00
zmeir
09ef809080
Added comments explaining the logic behind get_user_description
2023-08-22 10:04:21 +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
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
idavidov
9770f4709a
few more changes suggested by AI implemented
2023-08-19 16:26:15 +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
Phill Zarfos
164b340c29
Merge branch 'main' into fix/bitbucket_get_repo_settings
2023-08-14 08:30:14 -04: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
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
Ori Kotek
e0f295659d
A less hacky way
2023-08-09 12:17:54 +03:00
mrT23
fe75e3f2ec
yaml
...
yaml
2023-08-09 12:15:52 +03:00
Zohar Meir
164ed77d72
Attempt to fix bug in create_inline_comment
2023-08-07 17:09:50 +03:00
Ori Kotek
886139c6b5
Support adding / removing reaction from comments in GitHub different servers
2023-08-07 16:18:08 +03:00
mrT23
fed0ea349a
find_line_number_of_relevant_line_in_file
...
find_line_number_of_relevant_line_in_file
2023-08-06 08:13:07 +03:00
mrT23
0e3dbbd0f2
fix major bug in gitlab
2023-08-03 22:51:38 +03:00
mrT23
7a57db5d88
load_large_diff is done once
2023-08-03 22:14:05 +03:00
mrT23
c92648cbd5
caching
2023-08-03 21:38:18 +03:00
Ori Kotek
e12874b696
Support repo-specific configuration file
2023-08-01 17:44:08 +03:00
Ori Kotek
696e2bd6ff
Support repo-specific configuration file
2023-08-01 17:27:25 +03:00
Ori Kotek
450f410e3c
Support repo-specific configuration file
2023-08-01 17:22:03 +03:00
Ori Kotek
c5a79ceedd
Merge remote-tracking branch 'origin/main' into ok/settings_refactor
2023-08-01 16:01:04 +03:00
mrT23
dfb73c963a
get_commit_messages for gitlab
2023-08-01 15:30:14 +03:00
mrT23
8c0370a166
Commit messages in pr-description
2023-08-01 15:15:59 +03:00
Ori Kotek
d7b77764c3
Support context aware settings (for each incoming request), support override of settings, refactor CLI to use pr_agent.py
2023-08-01 14:43:26 +03:00
mrT23
6fde87b3bd
Merge pull request #152 from Codium-ai/tr/gitlab_fixes
...
Improvements and Error Handling for GitLab Provider
2023-07-28 11:40:53 +03:00
Ori Kotek
63a703c000
Handle marketplace hook
2023-07-28 11:30:51 +03:00
mrT23
4664d91844
bug fixes in gitlab code suggestion
2023-07-28 11:24:14 +03:00
Ori Kotek
1a8fce1505
Updated handling of installation id
2023-07-28 02:44:28 +03:00
Ori Kotek
42388b1f8d
Merge pull request #146 from idavidov/idsvidov/gitlabpaginator_fix
...
Fix for GitLab Paginator in GitLab Provider
2023-07-28 02:01:04 +03:00
Ori Kotek
0167003bbc
handle no diffs
2023-07-28 01:59:10 +03:00
idavidov
99ed9b22a1
latest documentation suggest get_all not all
...
https://python-gitlab.readthedocs.io/en/stable/api-usage.html#pagination
2023-07-27 15:39:19 +03:00
idavidov
eee6d51b40
issue #145
...
get all diffs in merge request and not only gitlab default 20
2023-07-27 14:41:36 +03:00
Ori Kotek
a50e137bba
Merge pull request #133 from idavidov/idavidov/github-ratelimit-message
...
Handling GitHub API Rate Limit Exceeded Exception
2023-07-27 14:22:11 +03:00
Patryk Kowalski
3b19827ae2
Add validation for repository path
2023-07-26 15:29:09 +02:00
Patryk Kowalski
ea6e1811c1
Fixed PR title - should be feature branch name, not target branch name
2023-07-26 14:15:50 +02:00
Ori Kotek
8ae5faca53
Fix cyclic dependency
2023-07-25 16:52:18 +03:00
idavidov
1229fba346
+ settings.github.ratelimit_retries setup in configuration.toml
2023-07-25 16:37:13 +03:00
Ori Kotek
36ab12c486
Merge pull request #136 from Codium-ai/ok/handle_sub_group
...
Handle subgroup in GitLab merge request URL parsing
2023-07-25 16:15:35 +03:00
Ori Kotek
0254e3d04a
Merge pull request #128 from patryk-kowalski-ds/deepsense.ai/local-git-provider
...
Add Local Git Provider Support
2023-07-25 16:15:02 +03:00
Ori Kotek
10a07e497d
Handle sub group in gitlab MR URLs
2023-07-25 15:15:51 +03:00
idavidov
b6f6c903a0
moved @retry to github_provider.py and fetch number of retries from settings
2023-07-25 15:12:02 +03:00
Patryk Kowalski
0815e2024c
- Replaced two dot diff with three dot diff. Cleaned up obsolete code linked to double dot diff.
...
- Moved target_branch_existence assertion to _prepare_repo method
- Renamed branch_name -> target_branch_name
- Simplified get_files method
2023-07-25 13:07:21 +02:00
Ori Kotek
d23daf880f
Change gitlab API to use oauth_token instead of PAT (PAT shuold work as well)
2023-07-25 13:58:48 +03:00