Commit graph

250 commits

Author SHA1 Message Date
mrT23
9478447141
extra_labels 2023-11-15 14:02:13 +02:00
Rhys Tyers
557ec72bfe Update documentation for Vertex AI 2023-11-15 10:27:48 +00:00
mrT23
0df0542958
prompt 2023-11-13 15:55:35 +02:00
Hussam.lawen
a5e5a82952
s 2023-11-13 13:49:16 +02:00
Hussam.lawen
ccbb62b50a
remove the "one or more" for custom labels 2023-11-13 13:47:06 +02:00
mrT23
a8dddd1999
prompt 2023-11-13 12:14:18 +02:00
mrT23
f5c6dd55b8
triple quote 2023-11-13 12:04:58 +02:00
mrT23
0e932af2e3
multi line 2023-11-13 12:01:08 +02:00
mrT23
e9891fc530
s1 2023-11-12 16:37:53 +02:00
mrT23
727eea2b62
s1 2023-11-12 15:00:06 +02:00
mrT23
14610d5375
persistent
s
2023-11-08 20:16:08 +02:00
mrT23
49725e92f2
s 2023-11-08 14:41:15 +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
Hussam.lawen
ff79776410
Keep user labels 2023-11-06 15:14:08 +02:00
Hussam.lawen
ec3f2fb485
Revert "generate labels keep user labels only"
This reverts commit 94a2a5e527.
2023-11-06 15:08:29 +02:00
Hussam.lawen
94a2a5e527
generate labels keep user labels only 2023-11-06 15:07:06 +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
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
7238c81f0c
fix prompt 2023-11-06 09:41:26 +02:00
mrT23
62412f8cd4
fix prompt 2023-11-06 09:38:39 +02:00
mrT23
5d2bdadb45
fix prompt 2023-11-06 09:33:10 +02:00
mrT23
06d030637c
fix prompt 2023-11-06 09:32:46 +02:00
zmeir
92071fcf1c Stack all incremental parameters 2023-11-06 09:13:04 +02:00
Hussam.lawen
3548b88463
type and labels 2023-11-05 15:48:39 +02:00
zmeir
c623c3baf4 Added new configurations to prevent too frequent incremental commits on push trigger 2023-11-02 12:24:54 +02:00
Hussam Lawen
3ddc7e79d1
Update pr_reviewer_prompts.toml 2023-11-02 11:45:34 +02:00
KennyDizi
29a8cf8357 fix typo for ollama 2023-10-31 20:38:27 +07: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
d772213cfc
fix labels 2023-10-29 08:58:12 +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
9e41f3780c
disable custom labels by default 2023-10-27 21:22:56 +03:00
Hussam.lawen
f53ec1d0cc
move enable custom labels to custom labels function 2023-10-27 21:12:58 +03:00
Hussam.lawen
a7cb59ca8b
small fix 2023-10-27 08:10:29 +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
Hussam Lawen
1b6fb3ea53
Merge pull request #385 from Codium-ai/hl/fix_add_docs_in_scripts
Add Blacklist for Non-Editable File Extensions in Documentation
2023-10-19 11:21:36 +03:00
mrT23
a2c3db463a
use_bullet_points 2023-10-19 10:45:42 +03:00
mrT23
21a1cc970e
- update readme
- minor prompts change
2023-10-19 09:16:20 +03:00
Hussam.lawen
3673924fe9
Add docs editable blacklist of file extensions like sql, yaml... 2023-10-17 18:50:39 +03:00
jamesrom
baa0e95227 Code comments for ignore.toml 2023-10-06 21:53:10 +11:00
jamesrom
e387086890 Add support for ignoring files
Add ignore.toml, configuration for ignoring files
Add file_filter.py, for matching files against glob/regex patterns
Update relevant code to use file filter
+Tests
2023-10-06 01:43:35 +11:00
mrT23
44239f1a79
Patch Extra Lines 2023-10-05 08:38:43 +03:00
mrT23
428e6382bd
prompts minor update 2023-10-05 08:17:37 +03:00
Hussam.lawen
e941fa9ec0
Add to user tools guide 2023-10-01 19:51:15 +03:00
Hussam.lawen
b2369c66d8
Merge commit '8d075b76ae081d0d38813f789478e4fa0f404cd8' into hl/add_docs
# Conflicts:
#	README.md
2023-10-01 13:55:50 +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
mrT23
e07412c098
prompt and readme updates 2023-10-01 09:00:58 +03:00
Stefan Petrushevski
cae0f627e2
Add lockb to bad extensions 2023-09-28 22:26:25 +02:00
Hussam.lawen
043d453cab
add doc placement before after 2023-09-28 22:44:15 +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
bb8a0f10f4
refine /add_docs 2023-09-28 20:11:18 +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
aa32024078
no comments 2023-09-25 16:58:08 +03:00
dulalbert
62746294e3
Correct typo in pr_reviewer_prompts.toml 2023-09-22 10:23:01 +08: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
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
b23a4c0535
Merge remote-tracking branch 'origin/main' into tr/issue_tool
# Conflicts:
#	requirements.txt
2023-09-07 12:30:16 +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
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
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
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
zmeir
c6c97ac98a Try to change the improve command prompt to prevent split lines range 2023-08-30 23:33:38 +03:00
mrT23
2dc2a45e4b
yaml 2023-08-28 09:48:43 +03: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