Commit graph

127 commits

Author SHA1 Message Date
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
Patryk Kowalski
918549a4fc Implementing 'is_supported' method 2023-07-25 12:35:39 +02:00
Patryk Kowalski
6170995665 replaced hardcoded main with actual target_branch name' 2023-07-24 16:59:07 +02:00
Patryk Kowalski (deepsense.ai)
ca42a54bc3
Update pr_agent/git_providers/local_git_provider.py
Co-authored-by: Ori Kotek <orikotek@gmail.com>
2023-07-24 16:47:05 +02:00
Patryk Kowalski (deepsense.ai)
c0610afe2a
Update pr_agent/git_providers/local_git_provider.py
Co-authored-by: Ori Kotek <orikotek@gmail.com>
2023-07-24 16:46:46 +02:00
Patryk Kowalski (deepsense.ai)
d4cbcc465c
Update pr_agent/git_providers/local_git_provider.py
Co-authored-by: Ori Kotek <orikotek@gmail.com>
2023-07-24 16:46:36 +02:00
Ori Kotek
2c03a67312
Add labels 2023-07-24 16:00:51 +03:00
Patryk Kowalski
8e6518f071 Added GitPython to requirements. Changed default review path (aesthetics) 2023-07-24 14:28:37 +02:00
Ori Kotek
c9c95d60d4
Implement gitlab webhook 2023-07-24 15:05:24 +03:00
Patryk Kowalski
02ecaa340f Local Git Provider Implementation 2023-07-24 12:49:57 +02:00
Ori Kotek
b9c25e487a
On /describe, preserve the current labels 2023-07-24 10:17:26 +03:00
zmeir
32358678e6 Reduce the number of GitHub API calls when pushing code suggestions 2023-07-23 16:59:08 +03:00
sambone
05f29cc406 Fix TypeError for GitlabProvider 2023-07-20 11:49:42 -05:00
Ori Kotek
63c4c7e584
Merge pull request #90 from zmeir/zmeir-output_progress
Add Option to Control Comment Publishing Progress
2023-07-20 18:48:20 +03:00
mrT23
3d5d517f2a
code suggestions 2023-07-19 20:57:14 +03:00
mrT23
a2eb2e4dac
Update pr_agent/git_providers/github_provider.py 2023-07-19 20:31:10 +03:00
mrT23
d89792d379
PR Type label 2023-07-19 20:25:54 +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
8038b6ab99
refactor and clean 2023-07-19 14:22:34 +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
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
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
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
Ori Kotek
e5259e2f5c
Small refactor 2023-07-18 10:17:09 +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
zmeir
24583b05f7 Publish GitHub review comments with single API call 2023-07-17 10:41:02 +03:00
Hussam Lawen
7884aa2348
Clean 2023-07-17 09:25:38 +03:00
Ori Kotek
c58e1f90e7
Merge branch 'main' into hl/gitlab_code_suggestion 2023-07-17 02:10:15 +03:00
Hussam.lawen
fc309f69b9
Support Code Suggestion in Gitlab 2023-07-17 01:44:40 +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
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
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
Hussam.lawen
da6828ad87
Inline suggestion refactor + Gitlab WORKS 2023-07-13 20:43:49 +03:00
mrT23
4e59693c76
diff_files 2023-07-13 18:26:35 +03:00
mrT23
4b4fda37a6
publish_description as abstract method 2023-07-13 18:04:28 +03:00
mrT23
0f73f5f906
set as title 2023-07-13 17:53:17 +03:00
mrT23
77a451ada0
inline_code_comments 2023-07-13 09:44:33 +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
salberts
365559405f Simplify gitlab project access 2023-07-08 11:46:41 +03:00
salberts
caff65613f docs 2023-07-07 16:36:56 +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
7ed12c2f8e refactor 2023-07-07 16:10:33 +03:00
Albert Achtenberg
ed8cf27b05 working example 2023-07-07 15:02:40 +03:00
Ori Kotek
b6333e7f20
Improve handling of tagging and Github app user interaction 2023-07-06 12:58:05 +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