Commit graph

618 commits

Author SHA1 Message Date
Yu Ishikawa
81dea65856 Format files by pre-commit run -a
Signed-off-by: Yu Ishikawa <yu-iskw@users.noreply.github.com>
2024-10-30 10:00:36 +09:00
mrT23
597f1c6f83
Add PRDescriptionHeader enum for consistent "Changes walkthrough" usage across modules 2024-10-28 08:12:56 +02:00
mrT23
b8cfcdbc12
Improve markdown header sanitization in PR help message tool 2024-10-27 14:58:21 +02:00
mrT23
3b47c75c32
Improve handling of empty markdown headers in PR help message tool and update prompt instructions in pr_help_prompts.toml 2024-10-25 12:27:59 +03:00
mrT23
2e34d7a05a
s 2024-10-24 22:05:25 +03:00
mrT23
204a0a7912
s 2024-10-24 22:03:44 +03:00
mrT23
9786499fa6
Refactor PR help message tool to use full documentation content for answering questions and update relevant section handling in prompts 2024-10-24 22:01:40 +03:00
mrT23
4f14742233
Refactor PR help message tool to use full documentation content for answering questions and update relevant section handling in prompts 2024-10-24 21:38:31 +03:00
mrT23
0b32b253ca
docs: update default setting for publish_labels to false and adjust related documentation 2024-10-21 17:56:15 +03:00
Hussam.lawen
0946da3810
support github enterprise 2024-10-14 14:31:34 +03:00
Hussam Lawen
d45a892fd2
Update pr_agent/tools/ticket_pr_compliance_check.py
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
2024-10-14 10:59:58 +03:00
Hussam.lawen
3a52122677
improve and combine regex 2024-10-14 10:30:07 +03:00
Hussam.lawen
eb804d0b34
clean 2024-10-14 10:08:36 +03:00
Hussam.lawen
22bf7af9ba
refactor regex 2024-10-14 08:44:01 +03:00
Hussam.lawen
840e8c4d6b
support more types of github ticket url / references 2024-10-13 22:41:33 +03:00
mrT23
05827d125b
fix: handle missing issue body and improve error logging in ticket compliance check 2024-10-13 08:19:14 +03:00
mrT23
74ee9a333e
fix: handle missing issue body and improve error logging in ticket compliance check 2024-10-13 08:15:04 +03:00
mrT23
76d95bb6d7
feat: add ticket compliance check
- Implement ticket compliance check logic in `utils.py` and `ticket_pr_compliance_check.py`
- Add functions to extract and cache PR tickets, and check ticket relevancy
2024-10-10 10:01:48 +03:00
mrT23
bccc2844b9
dual publishing mode 2024-10-01 08:32:29 +03:00
mrT23
da0bd84746
dual 2024-10-01 08:20:16 +03:00
mrT23
dfa4f22be2
feat: add dual publishing mode for PR code suggestions
- Introduced dual publishing mode to present high-scoring suggestions as both table entries and commitable PR comments.
- Updated documentation to include configuration options for dual publishing mode.
- Enhanced `pr_code_suggestions.py` to handle dual publishing logic and error handling.
- Modified `configuration.toml` to include `duel_publishing_score_threshold` setting.
2024-10-01 08:01:27 +03:00
mrT23
8bdebcb99f
Enable intro and chat text for PR code suggestions in configuration 2024-09-26 17:11:00 +03:00
mrT23
89f9cf5adc
Add intro and chat text options for PR code suggestions in configuration 2024-09-26 09:07:51 +03:00
mrT23
6f14f9c8e1
improve code suggestion prompt 2024-09-25 16:22:16 +03:00
mrT23
d5625db3c8
DocHelper 2024-09-22 16:16:59 +03:00
mrT23
d6b779eef8
DocHelper 2024-09-22 16:14:32 +03:00
mrT23
804cb9ec1d
DocHelper 2024-09-22 15:55:18 +03:00
mrT23
397963257d
DocHelper 2024-09-22 10:21:47 +03:00
mrT23
a3fd15bb92
Merge remote-tracking branch 'origin/main' into tr/help_fixes 2024-09-22 09:27:10 +03:00
mrT23
0198c61cf7
update docs 2024-09-22 09:00:56 +03:00
mrT23
20d8e76a7f
logs 2024-09-22 08:31:56 +03:00
mrT23
be8052251a
Update pr_help_prompts.toml and fix snippet indexing in pr_help_message.py 2024-09-22 08:13:23 +03:00
mrT23
ba08b13446
update PR-Agent usage instructions in pr_description.py 2024-09-21 21:10:51 +03:00
mrT23
8229d98842
docs pr help 2024-09-21 20:55:05 +03:00
mrT23
5c7b65810c
Refactor S3 file handling and update Dockerfile to include local Chroma DB file 2024-09-21 19:11:46 +03:00
mrT23
1e51acff22
get protection 2024-09-21 17:07:46 +03:00
mrT23
4b74506107
Add PR help message functionality and update dependencies
- Implement PRHelpMessage class to provide AI-powered assistance for pull requests.
- Add methods for similarity search using local, S3, and Pinecone databases.
- Update `requirements.txt` to include new dependencies for langchain and chromadb.
- Modify `configuration.toml` to include `force_local_db` setting for PR help.
- Update `aiohttp` and `openai` package versions.
2024-09-21 16:22:51 +03:00
mrT23
08319f8492
fixed azure remove comment bug 2024-09-19 12:54:26 +03:00
mrT23
cc0e432247
refactor logic 2024-09-13 22:17:24 +03:00
mrT23
c8e8ed89d2
feat: integrate Dynaconf for configuration management and enhance config display 2024-09-09 08:31:20 +03:00
mrT23
86103c65e8
pattern_back 2024-09-08 17:24:13 +03:00
mrT23
8706f643ef
enable ai_metadata 2024-09-08 16:26:26 +03:00
mrT23
9e063bf48a
fix: handle missing score in code suggestions and adjust indentation in pr_code_suggestions.py 2024-09-01 08:47:23 +03:00
Tal
5ac41dddd6
Merge pull request #1191 from AHancher2022/bugfix/fix-output-publishing-when-set-to-false
Fixing code suggestions being published when publish ouput is false
2024-08-31 16:35:09 +03:00
Tal
9df554ed1c
Merge pull request #1185 from jozefvodicka/patch-1
Update pr_update_changelog.py to include "[skip ci]" so pipeline is n…
2024-08-31 16:33:18 +03:00
=
1c51b5b762 Fixing code suggestions being published if there are no code suggestions when publish output is false 2024-08-30 09:12:22 -04:00
Jozef Vodicka
4203ee4ca8
Update pr_update_changelog.py to include "[skip ci]" so pipeline is not triggered 2024-08-28 12:08:39 +02:00
mhoecke1
d9571ee7cb checking for publish_output in the suggestions tool exception handler 2024-08-28 00:41:56 -04:00
mrT23
2591a5d6c1
patch_extension_skip_types
Add validation for latest_comment and cast suggestions_score_threshold to int
2024-08-20 12:11:34 +03:00
trung.dinh@zoi.tech
dc8a4be2d4 Add new line for a better visually 2024-08-18 20:38:00 +07:00
trung.dinh@zoi.tech
f9de8f283b Improve variable consistency in prompt rendering for pr generate labels flow 2024-08-18 20:30:10 +07:00
trung.dinh@zoi.tech
bd5c19ee05 Improve variable consistency in prompt rendering for pr description flow 2024-08-18 20:29:59 +07:00
mrT23
48cc2f6833
Limit comment body length and adjust logging levels in GitHub provider 2024-08-18 08:26:01 +03:00
mrT23
03b194c337
Add null and type checks for 'pr_files' in _prepare_file_labels method in pr_description.py 2024-08-18 08:21:32 +03:00
mrT23
a6f772c6d5
Refactor comment deletion method to 'remove_comment' in git providers and update references 2024-08-18 08:19:25 +03:00
mrT23
ba1ba98dec
Add logging for empty PR files and code suggestions status in pr_code_suggestions.py 2024-08-18 08:17:25 +03:00
mrT23
5954c7cec2
Add logging for empty PR files and update warning for empty diffs in pr_reviewer.py 2024-08-18 08:14:37 +03:00
mrT23
3456c8e039
Add 'original_suggestion' parameter to publish_inline_comment methods across git providers for enhanced inline comment handling 2024-08-16 08:58:51 +03:00
mrT23
8414e109c5
Update logging levels and add error handling for empty data in PR tools and providers 2024-08-14 08:02:34 +03:00
mrT23
38638bd1c4
relevant_lines_start > len(file_lines): 2024-08-13 12:59:51 +03:00
mrT23
26f3bd8900
Add error handling for out-of-range relevant_lines_start and missing head_file in pr_code_suggestions.py 2024-08-13 12:57:31 +03:00
mrT23
8038eaf876
Add error handling for missing required fields in file label dictionary in pr_description.py 2024-08-13 12:16:52 +03:00
mrT23
7f0e6aeb37
Add conditional checks for review label settings in set_review_labels method 2024-08-12 20:57:32 +03:00
mrT23
8a768aa7fd
Lower log level for missing code suggestions from error to warning 2024-08-12 18:41:24 +03:00
mrT23
e238a88824
Add tests for patch extension and update configuration for extra lines handling
- Added unit tests in `test_extend_patch.py` and `test_pr_generate_extended_diff.py` to verify patch extension functionality with extra lines.
- Updated `pr_processing.py` to include `patch_extra_lines_before` and `patch_extra_lines_after` settings.
- Modified `configuration.toml` to adjust `patch_extra_lines_before` to 4 and `max_context_tokens` to 16000.
- Enabled extra lines in `pr_code_suggestions.py`.
- Added new model `claude-3-5-sonnet` to `__init__.py`.
2024-08-11 09:21:34 +03:00
mrT23
e531245f4a
protections 2024-08-09 21:15:29 +03:00
mrT23
89e9413d75
logger message 2024-08-09 20:21:00 +03:00
mrT23
8a75d3101d
Enhance PR description handling and improve logging for invalid file extensions in Bitbucket provider 2024-08-07 16:32:36 +03:00
mrT23
cb10ceadd7
Escape HTML tags in suggestion summaries in pr_code_suggestions.py and update pr_code_suggestions_prompts.toml for backtick usage 2024-08-06 12:16:58 +03:00
mrT23
c2c69f2950
No code suggestions found for PR. 2024-07-28 09:32:54 +03:00
mrT23
ac247dbc2c
Add end-to-end tests for GitHub, GitLab, and Bitbucket apps; update temperature setting usage across tools 2024-07-27 17:19:32 +03:00
mrT23
5d6e1de157
review with links 2024-07-14 08:53:53 +03:00
mrT23
034ec8f53a
provider 2024-07-11 18:37:37 +03:00
mrT23
4b351cfe38
AzureDevopsProvider 2024-07-11 18:24:40 +03:00
mrT23
734a027702
azure fix 2024-07-11 18:21:21 +03:00
mrT23
f76f750757
best_practices 2024-07-09 07:49:30 +03:00
mrT23
5b594dadee
pr_types rstrip 2024-07-07 08:08:53 +03:00
mrT23
be18152446
refresh 2024-07-05 17:11:13 +03:00
mrT23
7fc41409d4
refresh 2024-07-05 16:51:35 +03:00
mrT23
f3c80891f8
sonnet-3.5 2024-07-04 12:23:36 +03:00
Tal
1f5c3a4c0f
Merge pull request #1020 from Codium-ai/tr/fallbacks
Tr/fallbacks
2024-07-04 12:12:39 +03:00
mrT23
e30c70d2ca
keys fallback 2024-07-03 20:29:17 +03:00
Hussam.lawen
23e6abcdce
new line 2024-07-03 17:09:50 +03:00
mrT23
0bac03496a
keys fallback 2024-07-03 17:06:27 +03:00
Hussam.lawen
a228ea8109
fix capitalize 2024-07-03 17:04:01 +03:00
Hussam.lawen
0c3940b6a7
persistent release notes 2024-07-03 16:38:13 +03:00
mrT23
3e265682a7
extend additional files 2024-07-03 08:32:37 +03:00
mrT23
92d040c80f
Merge remote-tracking branch 'origin/main' into tr/review_redesign 2024-07-03 07:54:26 +03:00
mrT23
f2cb70ea67
extend additional files 2024-06-30 18:38:06 +03:00
mrT23
3e6263e1cc
async calls 2024-06-30 17:33:48 +03:00
mrT23
df02cc1437
Merge remote-tracking branch 'origin/main' into tr/review_redesign
# Conflicts:
#	pr_agent/tools/pr_reviewer.py
2024-06-29 21:55:49 +03:00
Tal
6a5f43f8ce
Merge pull request #1005 from KennyDizi/main
Centralize PR Review Title Definition
2024-06-29 21:53:20 +03:00
mrT23
defe200817
review_v2 2024-06-29 13:08:34 +03:00
mrT23
4c444f5c9a
fixes 2024-06-28 08:09:52 +03:00
mrT23
e5aae0d14f
fixes 2024-06-28 08:04:35 +03:00
mrT23
15f854336a
s 2024-06-27 09:07:19 +03:00
KennyDizi
406dcd7b7b Improve code readability by adding a newline after enum definitions 2024-06-27 07:16:54 +07:00
KennyDizi
692904bb71 Use ReviewHeaderTitle in lieu of PrReviewTitle 2024-06-27 07:11:57 +07:00
KennyDizi
ba963149ac Fix extract PrReviewTitle member value 2024-06-27 07:10:57 +07:00
KennyDizi
7348d4144b Rename PrReviewTitle enum 2024-06-27 07:05:03 +07:00