Commit Graph

44 Commits

Author SHA1 Message Date
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
4b05a3e858 refactor: streamline hunk processing logic in git_patch_processing.py
- Simplified logic for handling new and old hunks to ensure consistent presentation of changes.
- Updated documentation in TOML files to reflect changes in hunk section handling and line number references.
2024-10-07 20:32:11 +03:00
3dd8050004 improve code suggestion prompt 2024-09-25 21:22:41 +03:00
cc0e432247 refactor logic 2024-09-13 22:17:24 +03:00
8706f643ef enable ai_metadata 2024-09-08 16:26:26 +03:00
5432469ef6 fix: ensure non-empty lines are processed correctly in git patch handling 2024-09-01 08:39:29 +03:00
c2f52539aa fix: handle deleted files in git patch processing and update section header logic 2024-08-27 09:31:31 +03:00
d467f5a7fd patch_extension_skip_types 2024-08-20 11:37:27 +03:00
2d5b060168 patch_extension_skip_types 2024-08-20 11:33:56 +03:00
660a60924e Add filename parameter and skip logic to extend_patch function in git_patch_processing.py 2024-08-20 11:23:37 +03:00
fc40ca9196 Refactor dynamic context handling in git patch processing and update configuration default 2024-08-19 08:38:26 +03:00
e9535ea164 Add dynamic context handling in git patch processing
- Introduce `allow_dynamic_context` and `max_extra_lines_before_dynamic_context` settings.
- Adjust context limits dynamically based on section headers.
- Add logging for dynamic context adjustments and section header findings.
2024-08-18 17:45:18 +03:00
5c4bc0a008 Add Bitbucket diff handling and improve error logging
- Implement `publish_file_comments` method placeholder
- Enhance `is_supported` method to include `publish_file_comments`
- Refactor diff splitting logic to handle Bitbucket-specific headers
- Improve error handling and logging for file content retrieval
- Add `get_pr_owner_id` method to retrieve PR owner ID
- Update `_get_pr_file_content` to fetch file content from remote link
- Fix variable name typo in `extend_patch` function in `git_patch_processing.py`
2024-08-12 09:48:26 +03:00
4c1c313031 Add missing newline in extended patch and remove trailing whitespace 2024-08-11 18:49:28 +03:00
12742ef499 Adjust patch extension logic to handle cases where extended size exceeds original file length 2024-08-11 15:48:58 +03:00
63e921a2c5 Adjust patch extension logic to handle cases where extended size exceeds original file length 2024-08-11 15:46:46 +03:00
a06670bc27 Fix incorrect logic for extending patch size beyond original file length 2024-08-11 15:20:27 +03:00
e85b75fe64 Refactor patch extension logic to handle cases with zero extra lines 2024-08-11 12:56:56 +03:00
df04a7e046 Add spaces to extra lines in patch extension for consistency 2024-08-11 12:32:26 +03:00
ed65493718 Handle edge cases for patch extension and update tests 2024-08-11 12:08:00 +03:00
61bdfd3b99 patch_extra_lines_before and patch_extra_lines_after 2024-08-10 21:55:51 +03:00
3420e6f30d patch improvements 2024-08-03 12:44:49 +03:00
6c2a14d557 fix: correct indentation in PR description preparation logic 2024-06-26 16:20:05 +03:00
4cd9626217 grammar 2024-05-22 21:47:49 +03:00
3eef0a4ebd fix line selection, don't support line deletions 2024-02-15 22:21:58 +02:00
fff52e9e26 Add ask line feature 2024-02-15 14:25:22 +02:00
2ee329674f insert_br_after_x_chars 2024-02-05 09:20:36 +02:00
0d86779799 feat: Improve patch formatting and handle empty data in pr_code_suggestions.py 2024-01-29 21:52:54 +02:00
69b68b78f5 s 2023-11-08 14:17:59 +02:00
c5bc4b44ff fix added files 2023-11-08 12:51:30 +02:00
39e5102a2e fix added files 2023-11-08 12:47:18 +02:00
c324d88be3 Refactor logging system to use custom logger across the codebase 2023-10-16 14:56:00 +03:00
992f51a019 protections 2023-09-20 15:59:35 +03:00
fcd9821d10 protections 2023-09-20 15:57:06 +03:00
f4f040bf8d publish each suggestion separably 2023-08-22 16:11:51 +03:00
fb9335f424 extended improve 2023-08-21 18:17:34 +03:00
0dec24aa37 edge case for hunks 2023-08-03 10:50:22 +03:00
d7b77764c3 Support context aware settings (for each incoming request), support override of settings, refactor CLI to use pr_agent.py 2023-08-01 14:43:26 +03:00
e2a4cd6b03 docstring 2023-07-20 10:51:21 +03:00
90f97b0226 Lint fixes 2023-07-18 11:34:57 +03:00
4f4989af8c full code suggestions
full code suggestions
2023-07-16 09:01:57 +03:00
da6828ad87 Inline suggestion refactor + Gitlab WORKS 2023-07-13 20:43:49 +03:00
795f6ab8d5 Add deleted files section and count their tokens 2023-07-06 12:21:27 +03:00
4b4d91dfe9 Initial commit - PR-Agent OSS release 2023-07-06 00:21:08 +03:00