Commit graph

324 commits

Author SHA1 Message Date
zmeir
0189e12fb1 Automatically enable improve extended mode for large PRs 2024-01-03 16:43:38 +02:00
mrT23
7dfc306e7c
feat: Add SOC2 compliance review feature to PR agent 2024-01-01 20:15:36 +02:00
KennyDizi
fce52a66ff feat: Update enable_help_text flag explaination 2023-12-27 10:22:43 +07:00
KennyDizi
dff31ff8f5 feat: Fix typo 2023-12-27 10:17:56 +07:00
KennyDizi
31168cd7de Get PR review enable help text from setting 2023-12-27 10:12:41 +07:00
mrT23
b1ce29e27a
global configuration 2023-12-26 16:45:39 +02:00
PrashantDixit-dev
26cb85c4f5 default pinecone 2023-12-25 14:50:15 +05:30
PrashantDixit-dev
1632696c2f Merge branch 'main' of github.com:PrashantDixit0/pr-agent 2023-12-25 00:41:28 +05:30
PrashantDixit-dev
d8d954bb0f lancedb integration 2023-12-25 00:38:24 +05:30
mrT23
08e9a91021
Merge pull request #547 from Codium-ai/tr/readme_update
Readme for PR-Agent-Pro
2023-12-24 06:30:04 -08:00
mrT23
0c4d451d9a
readme 2023-12-24 16:18:20 +02:00
mrT23
5c49ff216a
feat: Update inline comment creation in git providers and improve code suggestion handling
- Update `create_inline_comment` method in various git providers to include `absolute_position` parameter
- Remove `create_inline_comment` method from providers that do not support inline comments
- Enhance `find_line_number_of_relevant_line_in_file` function to handle absolute position
- Modify `pr_code_suggestions.py` to handle improved code inclusion in suggestions
- Add `include_improved_code` configuration option in `configuration.toml` and update documentation accordingly
2023-12-24 09:44:08 +02:00
Ori Kotek
ccb116922f
Merge pull request #529 from lukefx/bitbucket_webhook_improvements
feat: Improved server, security and commands
2023-12-20 17:27:06 +02:00
Luca Simone
7a5acb29ac feat: Improved server, security and commands
Signed-off-by: Luca Simone <info@lucasimone.info>
2023-12-17 17:38:27 +01:00
mrT23
81da328ae3
feat: Add automatic tool configuration for Bitbucket app in bitbucket_app.py and configuration.toml, update Usage.md 2023-12-12 08:06:20 +02:00
mrT23
cf3401536a
feat: Remove 'Refactoring' label from custom labels and update related descriptions 2023-12-05 07:48:21 +02:00
Hussam.lawen
d2a129fe30
Add labeling files 2023-12-04 18:22:35 +02:00
mrT23
586785ffde
feat: Add pr_url attribute to git providers and final update message in PR description 2023-12-03 10:46:02 +02:00
mrT23
f96d4924e7
feat: Add line link generation in git providers and refactor code suggestions generation 2023-11-26 11:57:45 +02:00
Ori Kotek
613ccb4c34
Add support for base_url in GitHub SDK 2023-11-21 16:48:36 +02:00
mrT23
762a6981e1
extra_labels 2023-11-15 14:12:59 +02:00
mrT23
9478447141
extra_labels 2023-11-15 14:02:13 +02:00
mrT23
14610d5375
persistent
s
2023-11-08 20:16:08 +02:00
mrT23
094f641fb5
code 2023-11-07 14:38:37 +02:00
mrT23
a35a75eb34
get_max_tokens + added 'gpt-4-1106-preview' 2023-11-07 14:28:41 +02:00
mrT23
e352c98ce8
Merge pull request #431 from Codium-ai/hl/type_vs_labels
Refactoring PR Labels Handling and Display
2023-11-06 02:10:38 -08:00
Hussam.lawen
e96b03da57
add configuration enable_pr_type 2023-11-06 11:58:26 +02:00
zmeir
92071fcf1c Stack all incremental parameters 2023-11-06 09:13:04 +02:00
zmeir
c623c3baf4 Added new configurations to prevent too frequent incremental commits on push trigger 2023-11-02 12:24:54 +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
Hussam Lawen
4dffabf397
Merge pull request #396 from Codium-ai/hl/custom_labels
Implement Custom Labels for PRs
2023-10-28 01:37:54 +03:00
Hussam.lawen
f53ec1d0cc
move enable custom labels to custom labels function 2023-10-27 21:12:58 +03:00
Hussam.lawen
0cf27e5fee
custom labels disabled by default 2023-10-27 07:54:59 +03:00
Hussam.lawen
f3bdbfc103
Add /generate_labels function + fix issues 2023-10-26 23:28:33 +03:00
zmeir
6541575a0e Refactor to use pull_request synchronize event 2023-10-26 16:49:54 +03:00
zmeir
02570ea797 Remove previous review comment on push event 2023-10-26 16:46:54 +03:00
zmeir
65bb70a1dd Added support for automatic review on push event
The new feature can be enabled via the new configuration `github_app.handle_push_event`. To avoid any unwanted side-effects, the current default of this configuration is set to `false`.

The high level flow (assuming the configuration is enabled):
1. receive push event from GitHub
2. extract branch and commits from event
3. find PR url for branch (currently does not support PRs from forks)
4. perform configured commands (e.g. `/describe`, `/review -i`)

The push event flow is guarded by a backlog queue so that multiple push events on the same branch won't trigger multiple duplicate runs of the PR-Agent commands.
Example timeline:
1. push 1 - start handling event
2. push 2 - waiting to be handled while push 1 event is still running
3. push 3 - event is dropped since handling it and handling push 2 is the same, so it is redundant
4. push 1 finished being handled
5. push 2 awakens from wait and continues handling (potentially reviewing the commits of both push 2 and push 3)

All of these options are configurable and can be enabled/disabled as per the user's desire.

Additional minor changes in this PR:
1. Created `DefaultDictWithTimeout` utility class to avoid too much boilerplate code in managing caches for outdated triggers.
2. Guard against running increment review when there are no new commits.
3. Minor styling changes for incremented review text.
2023-10-25 11:15:23 +03:00
Hussam.lawen
1a89c7eadf
refactor + add description options 2023-10-24 22:28:57 +03:00
Krystal Boozel
f9e4c2b098
Update configuration.toml 2023-10-23 21:34:12 -04:00
Hussam.lawen
fa24413201
Custom Labels 2023-10-23 16:29:33 +03:00
mrT23
a2c3db463a
use_bullet_points 2023-10-19 10:45:42 +03:00
mrT23
44239f1a79
Patch Extra Lines 2023-10-05 08:38:43 +03:00
Hussam.lawen
e941fa9ec0
Add to user tools guide 2023-10-01 19:51:15 +03:00
Hussam.lawen
ab5ac8ffa8
rename vars + Add to README.md 2023-10-01 13:52:00 +03:00
Hussam.lawen
ccc7f1e10a
rename vars 2023-10-01 13:07:08 +03:00
Hussam.lawen
cd3527f7d4
add configurable docstring style 2023-09-28 20:58:37 +03:00
Hussam.lawen
4accddcaa7
revert verbosity 2023-09-28 20:12:36 +03:00
Hussam.lawen
c3cbaaf09e
Initial add docs 2023-09-27 16:48:17 +03:00
mrT23
34ed598c20
yaml 2023-09-25 18:30:20 +03:00
mrT23
8f81c18647
auto commands in github action 2023-09-25 18:01:32 +03:00
mrT23
ea91a38541
Estimated effort to review 2023-09-17 16:31:58 +03:00
mrT23
caaee4e43d
Estimated time to review 2023-09-15 17:09:58 +03:00
mrT23
084256b923
fixed config 2023-09-14 08:23:34 +03:00
mrT23
99f17666c5
merge 2023-09-14 08:20:36 +03:00
mrT23
b94e3521d1
Merge remote-tracking branch 'origin/main' into markers
# Conflicts:
#	pr_agent/tools/pr_description.py
2023-09-14 07:46:30 +03:00
Ori Kotek
b7a2551cab
Support issue comments in GitHub Actions 2023-09-12 16:46:02 +03:00
mrT23
d40285e4d3
Merge branch 'main' into tr/litellm_debugger 2023-09-10 13:40:35 +03:00
mrT23
6382b8a68b
LITELLM_TOKEN 2023-09-10 13:28:56 +03:00
mrT23
892dbe458e
litellm client 2023-09-09 17:35:45 +03: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
8962c9cf8a
stable 2023-09-06 09:43:23 +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
Krrish Dholakia
ca50724952 adding details on calling azure 2023-09-05 15:19:56 -07:00
Nikolay Telepenin
4a54532b6a Set github provider by default
- merge README.md
2023-09-05 09:09:35 +01:00
Tim Perkins
746140b26e Add support for markers in description 2023-09-04 12:11:39 -04:00
Nikolay Telepenin
eeea38dab3 Gerrit support 2023-09-01 14:31:34 +01:00
Ori Kotek
5079daa4ad
Bitbucket server, WIP 2023-08-24 16:33:51 +03: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
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
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
04be1573d5
improved review 2023-08-22 20:10:36 +03:00
Zohar Meir
a9a7a55f02
Remove redundant toggle 2023-08-22 18:28:43 +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
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
zmeir
82fb611a26 Add options to keep original user title 2023-08-22 10:32:58 +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
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
Tim Perkins
631fb93b28 Implement Automatic Review Configuration for GitHub app 2023-08-16 16:24:30 -04:00
Ori Kotek
e0f295659d
A less hacky way 2023-08-09 12:17:54 +03:00
Ori Kotek
8f751f7371
Default timeout for AI is now 180s, configurable 2023-08-07 13:26:28 +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
zmeir
dd14423b07 Add /config command to list the possible configuration settings 2023-08-02 16:42:54 +03:00
Ori Kotek
450f410e3c
Support repo-specific configuration file 2023-08-01 17:22:03 +03:00
mrT23
3daf94954a
update_settings_from_args 2023-07-30 11:43:44 +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
mrT23
413e5f6d77
general 2023-07-26 20:37:38 +03:00
mrT23
884317c4f7
stable 2023-07-26 20:03:22 +03:00
mrT23
7531ccd31f
stable 2023-07-26 16:29:42 +03:00
mrT23
e3846a480e
s 2023-07-26 09:21:31 +03:00
idavidov
f6036e936e + settings.github.ratelimit_retries setup in configuration.toml 2023-07-25 15:23:40 +03:00
Patryk Kowalski
02ecaa340f Local Git Provider Implementation 2023-07-24 12:49:57 +02:00
Ori Kotek
02a1d8dbfc
Add support for fallback models 2023-07-23 16:16:36 +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
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
mrT23
577f24d107
Merge pull request #89 from zmeir/zmeir-review_score
Add Score Review Feature
2023-07-19 17:07:05 +03:00
zmeir
e17dd66dce Disable score review by default 2023-07-19 11:00:28 +03:00
mrT23
ccddbeccad
num_code_suggestions=0 for review 2023-07-19 09:34:17 +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
mrT23
4c29ff2db1
Merge remote-tracking branch 'origin/tr/agent_logic' into tr/agent_logic
# Conflicts:
#	pr_agent/tools/pr_description.py
2023-07-18 08:06:47 +03:00
mrT23
5fbaa4366f
publish_output instead publish_review 2023-07-18 08:05:42 +03:00
mrT23
aee08ebbfe
Merge branch 'main' into tr/agent_logic 2023-07-18 08:04:47 +03:00
mrT23
f8f415eb75
stable 2023-07-17 15:49:29 +03:00
mrT23
8f3520807c
minor fixes
minor fixes
2023-07-17 08:42:18 +03:00
mrT23
f4de3d2899
pr_information_from_user_prompts 2023-07-16 19:36:20 +03:00
mrT23
4f4989af8c
full code suggestions
full code suggestions
2023-07-16 09:01:57 +03:00
mrT23
77a451ada0
inline_code_comments 2023-07-13 09:44:33 +03:00
Hussam Lawen
e2faf117c5
Update gitlab config 2023-07-12 18:02:28 +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
Ori Kotek
6eacf4791d
Merge remote-tracking branch 'origin/main' into feature/gitlab_provider 2023-07-11 15:49:06 +03:00
mrT23
301622216f
Focused PR update 2023-07-11 08:50:28 +03:00
salberts
fb4badd160 changes 2023-07-08 12:14:32 +03:00
salberts
9695d96799 Simplify project identification 2023-07-08 11:49:11 +03:00
salberts
d4adcb3c22 Configurable polling interval 2023-07-08 10:26:41 +03:00
salberts
75167c2700 add polling 2023-07-08 08:52:11 +03:00
Ori Kotek
4b4d91dfe9
Initial commit - PR-Agent OSS release 2023-07-06 00:21:08 +03:00