Pinyoo Thotaboot
f06ee951d7
Change raise runtime error
2025-05-26 11:36:49 +07:00
Pinyoo Thotaboot
a975b32376
Get empty content when exception
2025-05-26 11:26:16 +07:00
Pinyoo Thotaboot
162cc9d833
Fixed error propagation
2025-05-22 15:06:35 +07:00
Pinyoo Thotaboot
000f0ba93e
Fixed ensure SHA
2025-05-22 15:01:08 +07:00
Pinyoo Thotaboot
48c29c9ffa
Add null check
2025-05-22 14:59:29 +07:00
Pinyoo Thotaboot
930cd69909
Fixed conflicts
2025-05-22 14:54:26 +07:00
Tal
199b463eaa
Merge pull request #1798 from seohyun-lee/docs/usage-guide
...
Correct typos in documentation and log messages
2025-05-21 07:38:22 +03:00
Seohyun Lee
4679dce3af
refactor: Correct case typo of PR in log
2025-05-20 02:31:48 +09:00
Nikolay Gribanov
d67d07acc7
#1657 review fix 2
2025-05-16 20:30:17 +03:00
Nikolay Gribanov
12b1fe23da
#1657 review fix
2025-05-16 20:12:40 +03:00
Nikolay Gribanov
f857ea1f22
#1657 add gitea/forgejo support
2025-05-16 19:43:21 +03:00
Pinyoo Thotaboot
2d7636543c
Implement provider
2025-05-16 16:31:49 +07:00
Pinyoo Thotaboot
9ef0c451bf
Create provider module for
2025-05-16 16:30:10 +07:00
Sangmin Park
a3c9fbbf2c
revert try except
2025-05-15 19:40:40 +09:00
Sangmin Park
e55fd64bda
Remove unnecessary nested try-except block for cleaner code. Streamlined the import statement to remove an unused reference to get_git_provider.
2025-05-15 18:41:39 +09:00
Thomas De Keulenaer
954d61e5dc
Azure: refactor publish_code_suggestions() to use azure classes
2025-05-12 09:00:36 +02:00
Thomas De Keulenaer
24a90cab8e
Azure: handle inline /ask
2025-05-12 09:00:17 +02:00
Thomas De Keulenaer
67272700a6
Azure: handle line comments
2025-05-12 08:31:15 +02:00
Thomas De Keulenaer
3a07b55d0c
Azure: dont start threads as active because they block the pull request
2025-05-12 08:31:15 +02:00
Thomas De Keulenaer
c924affebc
Azure devops provider: add persistent comment
2025-05-12 08:31:15 +02:00
Thomas De Keulenaer
e516d66c1c
Azure: return Comment object when creating comment
2025-05-12 08:31:15 +02:00
Thomas De Keulenaer
df1d859e54
Azure devops: parse PR url starting from the end
2025-05-06 15:01:48 +02:00
yuli.kamakura
4ad43c48e5
Fix type hint for get_pr_description method and clean up whitespace
2025-04-28 17:59:09 +08:00
ofir-frd
dedad94a20
Fix code indentation in get_review_thread_comments method
2025-04-24 09:34:51 +03:00
ofir-frd
5d5b57255e
Merge pull request #1687 from benedict-lee/feat/add-conversation-history-on-line-question
...
Improvement: Enhance ask_line tool by adding PR review comment threads as context
2025-04-24 09:32:43 +03:00
Benedict Lee
c35942c12b
mprove get_review_thread_comments method implementation
...
Co-authored-by: ofir-frd <85901822+ofir-frd@users.noreply.github.com>
2025-04-24 11:23:16 +09:00
Benedict Lee
ddb94ec9b4
mprove get_review_thread_comments method implementation
...
Co-authored-by: ofir-frd <85901822+ofir-frd@users.noreply.github.com>
2025-04-24 11:22:43 +09:00
Benedict Lee
29d4fe510e
Improve get_review_thread_comments method implementation
...
Co-authored-by: ofir-frd <85901822+ofir-frd@users.noreply.github.com>
2025-04-24 11:21:49 +09:00
benedict.lee
a434d0af9b
Improve comment thread retrieval by using in_reply_to_id instead of line numbers
2025-04-21 16:28:42 +09:00
mrT23
8bdd11646c
Fix token assignment in Bitbucket provider authentication
2025-04-12 10:07:45 +03:00
Tal
a649e323d3
Merge pull request #1683 from wirelessr/feat/issue-1681
...
Support Bitbucket Basic Auth
2025-04-11 14:37:56 +03:00
Chunting Wu
7a32faf64f
Fix Bearer backward compatibility logic
2025-04-11 17:44:46 +08:00
Chunting Wu
5f2d4d400e
Extract repeated token retrieval logic into a helper function to reduce code duplication
2025-04-11 16:20:28 +08:00
ChunTing Wu
0cbf65dab6
Update pr_agent/git_providers/bitbucket_provider.py
...
Co-authored-by: Prateek <110811408+Prateikx@users.noreply.github.com>
2025-04-11 14:59:27 +08:00
ChunTing Wu
c0c307503f
Update pr_agent/git_providers/bitbucket_provider.py
...
Co-authored-by: Prateek <110811408+Prateikx@users.noreply.github.com>
2025-04-11 14:55:06 +08:00
benedict.lee
9c06b6b266
Apply PR review feedback: Code style and functionality improvements
2025-04-10 21:56:37 +09:00
benedict.lee
b53d2773a9
improve ask_line tool(add conversation history context)
2025-04-09 23:45:04 +09:00
mrT23
cdc354c33b
disable dynamic variables
2025-04-08 21:07:45 +03:00
CT Wu
ca95e876eb
Enhance Bitbucket provider functionality and update secret configuration template.
2025-04-08 17:52:52 +08:00
sharoneyal
14971c4f5f
Add support for documentation content exceeding token limits ( #1670 )
...
* - Add support for documentation content exceeding token limits via two phase operation:
1. Ask LLM to rank headings which are most likely to contain an answer to a user question
2. Provide the corresponding files for the LLM to search for an answer.
- Refactor of help_docs to make the code more readable
- For the purpose of getting canonical path: git providers to use default branch and not the PR's source branch.
- Refactor of token counting and making it clear on when an estimate factor will be used.
* Code review changes:
1. Correctly handle exception during retry_with_fallback_models (to allow fallback model to run in case of failure)
2. Better naming for default_branch in bitbucket cloud provider
2025-04-03 11:51:26 +03:00
mrT23
02d9aed7fe
Fix GitLab provider to use default branch instead of target branch for repo settings
2025-03-29 19:39:56 +03:00
Eyal Sharon
e422f50cfe
Fix for bug in get_canonical_url_parts when a new issue created, without git url provided.
2025-03-27 17:29:02 +02:00
Eyal Sharon
255e1d0fc1
Missing class member
2025-03-26 14:29:50 +02:00
Eyal Sharon
7117e9fe0e
Github Provider: Support publishing a comment on a non pr issue
2025-03-26 13:36:37 +02:00
Eyal Sharon
605eef64e7
Generate git url correctly in case invoked from both user and GitHub app contexts
2025-03-25 12:08:00 +02:00
Eyal Sharon
b161672218
Remove redundant abstractmethod for _prepare_clone_url_with_token
2025-03-24 15:56:45 +02:00
Eyal Sharon
fb324d106c
Remove non implemented method _prepare_clone_url_with_token from providers which don't support it and instead, issue a warning in base class.
2025-03-24 14:06:06 +02:00
Eyal Sharon
a4387b5829
Fix more /improve suggestions
2025-03-24 11:19:23 +02:00
Eyal Sharon
477ebf4926
Code recommendations from /improve
2025-03-24 10:54:50 +02:00
Eyal Sharon
e14fc7e02d
Fix missing self.bearer_token for bitbucket related providers
2025-03-24 10:21:23 +02:00
Eyal Sharon
1bd65934df
Merge origin/main into es/help_docs
2025-03-23 20:04:58 +02:00
Eyal Sharon
dd80276f3f
Support cloning repo
...
Support forcing accurate token calculation (claude)
Help docs: Add desired branch in case of user supplied git repo, with default set to "main"
Better documentation for getting canonical url parts
2025-03-23 09:55:58 +02:00
cdornano
e925f31ac0
Update azuredevops_provider.py
...
Will make qodo agent comments "Active" by default, and not "ByDesign" which is renders to "unknown" on Azure DevOps PRs. With this, PR authors are obliged to treat the PR comment of the qodo agent before Merging. This will help companies in analysing the impact of qodo agent on their PR, as every comment needs to be treated as either "Resolved" "Won't fix" "Close"
2025-03-21 12:57:03 +00:00
Eyal Sharon
5e7e353670
Added help_docs feature.
2025-03-20 23:48:01 +02:00
mrT23
9a9acef0e8
fix: handle empty commits and errors in GitLab provider's get_latest_commit_url
2025-02-26 21:24:53 +02:00
Hussam.lawen
0a4c02c8b3
feat: enhance Azure DevOps integration with improved error handling and PR commands
2025-02-26 16:40:46 +02:00
Hussam Lawen
d91245a9d3
Update pr_agent/git_providers/github_provider.py
...
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-20 20:12:49 +02:00
Hussam Lawen
bfdaac0a05
Update pr_agent/git_providers/github_provider.py
...
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-20 20:11:25 +02:00
Wonchae Lee
56978d9793
Update pr_agent/git_providers/github_provider.py
...
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-20 12:32:29 -05:00
Wonchae Lee
6433e827f4
Update pr_agent/git_providers/github_provider.py
...
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-20 12:32:22 -05:00
Wonchae Lee
c0e78ba522
Update pr_agent/git_providers/github_provider.py
...
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-20 12:32:14 -05:00
Wonchae Lee
45d776a1f7
Update pr_agent/git_providers/github_provider.py
...
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-20 12:32:06 -05:00
Wonchae Lee
6e19e77e5e
Update pr_agent/git_providers/github_provider.py
...
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2025-02-20 12:31:25 -05:00
WonOfAKind
0f63d8685f
Added sub-issue fetching to enhance PR analysis
2025-02-12 19:40:36 -05:00
mrT23
24bf875db6
fix: handle GitHub permission errors when editing comments
2025-02-03 07:51:44 +02:00
Griffin Anspach
664f1938c9
Remove false log that file was modified, but no patch found for bitbucket server
2025-01-20 14:56:10 -05:00
polacekpavel
fe6540275c
fix(local_git): add interface method stubs for local git provider compatibility
2025-01-15 18:19:36 +01:00
med8bra
bd611bc1c2
fix(azure-provider): handle renamed files as new files
...
This fixes a bug when azure-provider tries to fetch original content of a renamed file and fails since the file doesn't exist in base yet.
Also handles case when `diff_type` includes multiple actions as `edit, rename`.
This can be improved to fetch the actual old content using the old path before renaming, but IMO for azure devops since its dying anyway, this fix should be enough.
2025-01-13 22:22:13 +01:00
Tal
8819293770
Merge pull request #1406 from vishwamartur/support-personal-spaces
...
Support pull requests in personal spaces in Bitbucket Server
2025-01-01 09:26:29 +02:00
mrT23
95d0fafa75
refactor: optimize file content loading and improve rate limit handling
2024-12-29 11:25:33 +02:00
Vishwanath Martur
4688b20284
Support pull requests in personal spaces in Bitbucket Server
...
Related to #1148
Update `_parse_pr_url` method in `pr_agent/git_providers/bitbucket_server_provider.py` to handle URLs with `/users/`.
* Add logic to check for both `/projects/` and `/users/` in the URL path and process them accordingly.
* Modify the method to raise a `ValueError` if neither `/projects/` nor `/users/` is found in the URL.
* Update the `workspace_slug` to include a `~` prefix if the URL contains `/users/`.
Add test case for URL with `/users/` in `tests/unittest/test_bitbucket_provider.py`.
* Ensure the new test case verifies the correct parsing of URLs with `/users/`.
2024-12-22 00:42:11 +05:30
mrT23
7e8361b5fd
feat: enhance code review output with collapsible code snippets and variable links
2024-12-19 20:30:56 +02:00
Trung Dinh
e3d779c30d
Fix typo model_weak
2024-12-08 22:09:48 +07:00
Trung Dinh
3c31048afc
Update model in git provider
2024-12-08 22:00:37 +07:00
Patrick Decat
a825aec5f3
Add publish_output_progress config support to AzureDevOps, BitBucket and Gitlab providers
2024-11-28 17:15:24 +01:00
mrT23
f08b20c667
Improve logging and error handling in Azure DevOps provider for code suggestions
2024-11-21 13:37:48 +02:00
mrT23
eb0c959ca9
Add validation for committable comments within PR hunks in GitHub provider
2024-11-20 17:28:13 +02:00
mrT23
741a70ad9d
Add detailed diff code generation for GitLab suggestions and improve comment formatting
2024-11-20 17:26:36 +02:00
mrT23
22ee03981e
Add diff code generation for Bitbucket code suggestions and improve logging
2024-11-20 17:25:10 +02:00
mrT23
2f4545dc15
Refactor byte decoding in Bitbucket server provider using decode_if_bytes function
2024-11-12 08:26:33 +02:00
mrT23
cbd490b3d7
use a more modern version
2024-11-12 08:23:11 +02:00
mrT23
065777040f
Improve PR file content retrieval and logging verbosity handling
2024-11-12 08:06:02 +02:00
Tal
5c5a3e267c
Merge branch 'main' into introduce-pre-commit
2024-11-08 09:54:21 +02:00
mrT23
2f5e8472b9
Add PRDescriptionHeader enum for consistent "Changes walkthrough" usage across modules
2024-10-30 08:48:08 +02:00
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
27abe48a34
feat: import Range utility in GitHubProvider for enhanced functionality
2024-10-14 09:43:58 +03:00
mrT23
8fe504a7ec
feat: import Range utility in GitHubProvider for enhanced functionality
2024-10-14 09:40:57 +03:00
mrT23
f6ba49819a
feat: enhance GitHubProvider with improved error handling and URL parsing
...
- Add traceback logging for exceptions in diff file retrieval
- Improve URL parsing to handle '/api/v3' paths and validate GitHub URLs
- Modify `publish_comment` to return None for temporary comments
- Update constructor to accept an optional GitHub client parameter
2024-10-14 09:18:06 +03:00
Cory Ball
a476e85fa7
bug-fix_azuredevops-new-file
2024-10-08 01:13:44 -05:00
mrT23
e2b5489495
feat: add error handling for invalid repo settings configuration
...
- Implement error handling for invalid TOML configurations in repo settings.
- Log warnings and send comments to PRs when configuration errors occur.
- Introduce `handle_configurations_errors` function to manage error reporting.
- Ensure compatibility with different markdown formats for error messages.
2024-10-07 09:13:17 +03:00
yzongyue
ce8e637800
get_line_link compatible with old gitlab versions
2024-09-15 14:56:08 +08:00
eddielu
29028d43cf
Set azure devops default status to ByDesign
2024-09-13 18:01:08 -07:00
Tal
3ea691e70a
Merge pull request #1216 from Codium-ai/tr/azure_parsing
...
fix: improve Azure DevOps PR URL parsing and add unit tests
2024-09-12 09:09:24 +03:00
mrT23
01ba6fe63d
feat: enhance error handling and logging, update AI metadata terminology
...
- Improved error handling and logging in `pr_processing.py` and `github_polling.py` to provide more detailed error information.
- Updated AI metadata terminology from "AI-generated file summary" to "AI-generated changes summary" across multiple files for consistency.
- Added a placeholder method `publish_file_comments` in `azuredevops_provider.py`.
- Refined logging messages in `azuredevops_provider.py` for better clarity.
2024-09-10 17:44:26 +03:00
mrT23
e444da8378
fix: improve Azure DevOps PR URL parsing and add unit tests
2024-09-10 08:19:22 +03:00
mrT23
1a9638cf87
bug fix: remove unused get_pr_description method from Azure DevOps provider
2024-09-09 16:25:34 +03:00
mrT23
8706f643ef
enable ai_metadata
2024-09-08 16:26:26 +03:00
mrT23
d01cfe443c
avoid_full_files
2024-09-07 11:44:24 +03:00
Tal
d4d9a7f8b4
Merge pull request #1172 from MaxHoecker/bugfix/bb-2-way-diff-fix
...
Bugfix/bb 2 way diff fix
2024-09-03 16:24:42 +03:00