Ori Kotek
8ae5faca53
Fix cyclic dependency
2023-07-25 16:52:18 +03:00
Ori Kotek
28d6adf62a
Quick fix for github action
2023-07-25 16:41:29 +03:00
idavidov
1229fba346
+ settings.github.ratelimit_retries setup in configuration.toml
2023-07-25 16:37:13 +03:00
Ori Kotek
59a59ebf66
Quick fix for github action
2023-07-25 16:36:58 +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
idavidov
f6036e936e
+ settings.github.ratelimit_retries setup in configuration.toml
2023-07-25 15:23:40 +03:00
Ori Kotek
10a07e497d
Handle sub group in gitlab MR URLs
2023-07-25 15:15:51 +03:00
idavidov
3b334805ee
still need GithubException.RateLimitExceededException in pr_processing.py for correct exception catch
2023-07-25 15:14:56 +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
idavidov
55637a5620
added retry decorator similar to used in ai_handler following @okotek suggestion
2023-07-25 14:42:54 +03:00
idavidov
404cc0a00e
small change to show message and fail
2023-07-25 14:20:20 +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
idavidov
d1a8a610e9
Revert "show how much time until rate limit reset"
...
This reverts commit 8f482cd41a .
2023-07-25 13:38:55 +03:00
Patryk Kowalski
918549a4fc
Implementing 'is_supported' method
2023-07-25 12:35:39 +02:00
Ilya Davidov
8f482cd41a
show how much time until rate limit reset
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-25 13:23:19 +03:00
idavidov
34096059ff
quick and dirty response for github API ratelimit, until some smart solution will be implemented
2023-07-25 13:05:56 +03:00
mrT23
2dfbfec8c2
refactor
2023-07-24 19:48:24 +03: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
adb3f17258
Merge pull request #131 from Codium-ai/ok/gitlab_webook
...
GitLab Webhook Integration and Provider Enhancements
2023-07-24 16:01:17 +03: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
mrT23
cca809e91c
run_action
2023-07-24 12:45:24 +03:00
mrT23
57ff46ecc1
stable
2023-07-24 12:41:00 +03:00
mrT23
3819d52eb0
Merge remote-tracking branch 'origin/tr/code_enhancment' into tr/code_enhancment
2023-07-24 12:15:17 +03:00
mrT23
3072325d2c
PRDescription
2023-07-24 12:14:53 +03:00
Ori Kotek
abca2fdcb7
Merge remote-tracking branch 'origin/main' into tr/code_enhancment
2023-07-24 12:04:54 +03:00
mrT23
4d84f76948
_get_prediction
2023-07-24 11:31:35 +03:00
Ori Kotek
b9c25e487a
On /describe, preserve the current labels
2023-07-24 10:17:26 +03:00
mrT23
1bf27c38a7
_prepare_pr_answer
2023-07-24 09:15:45 +03:00
salberts
cd8bbbf889
bugfix
2023-07-24 00:58:21 +03:00
Ori Kotek
cd51bef7f7
Merge pull request #119 from zmeir/zmeir-code_suggestions_single_api_call
...
Optimize Code Suggestions API Calls
2023-07-23 17:30:37 +03:00
Ori Kotek
32151e3d9a
Temporarily remove gitlab polling server until a rewrite is ready
2023-07-23 17:04:41 +03:00
zmeir
32358678e6
Reduce the number of GitHub API calls when pushing code suggestions
2023-07-23 16:59:08 +03:00
Ori Kotek
1e97236a15
Add support for fallback models
2023-07-23 16:39:25 +03:00
Ori Kotek
02a1d8dbfc
Add support for fallback models
2023-07-23 16:16:36 +03:00
mrT23
f4a226b0f7
Merge pull request #113 from Codium-ai/tr/cli_refactor
...
Refactoring CLI Commands Handling
2023-07-23 08:37:26 +03:00
mrT23
f5e2838fc3
refactor
2023-07-21 22:12:51 +03:00
mrT23
bbdfd2c3d4
Merge pull request #108 from patryk-kowalski-ds/deepsense.ai/configurable-language-extensions
...
Configurable Language Extensions
2023-07-21 21:47:52 +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
Patryk Kowalski
79cb94b4c2
Add use_extra_bad_extensions to configuration.toml
2023-07-20 15:41:03 +02:00
Patryk Kowalski
a71a12791b
Move hard-coded language configurations to a configuration file.
...
Load this configuration file in the config loader.
2023-07-20 15:37:42 +02:00
Ori Kotek
2e246869d0
Retry on rate limit error on OpenAI calls
2023-07-20 15:02:34 +03:00
Ori Kotek
2f9546e144
Retry on rate limit error on OpenAI calls
2023-07-20 15:01:12 +03:00
mrT23
cd0438005b
Merge pull request #101 from Codium-ai/tr/docstring
...
Adding Docstrings to Python Files
2023-07-20 11:53:17 +03:00
Hussam.lawen
6cd38a37cd
fix question cli
2023-07-20 11:10:34 +03:00
mrT23
12e51bb6aa
Merge remote-tracking branch 'origin/main' into tr/docstring
2023-07-20 10:54:53 +03:00
mrT23
e2a4cd6b03
docstring
2023-07-20 10:51:21 +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
Ori Kotek
df25a3ede2
typo
2023-07-19 18:22:26 +03:00
Ori Kotek
4c36fb4df2
args bug
2023-07-19 18:18:18 +03:00
Ori Kotek
67c61e0ac8
Update help
2023-07-19 17:27:12 +03:00
Ori Kotek
0985db4e36
Update help
2023-07-19 17:20:26 +03:00
Ori Kotek
ee2c00abeb
split(" ") -> split()
2023-07-19 17:14:55 +03:00
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