Repository navigation
fix: delete Bitbucket Server comments - #3376
IsmaelMartinez merged 1 commit into
Conversation
PR Summary by QodoDelete Bitbucket Server comments through provider API
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Recently edited comments stay undeleted
|
IsmaelMartinez
left a comment
There was a problem hiding this comment.
Thanks for wiring remove_comment to delete_pull_request_comment with the version parameter, plus the two tests. Deletion holds; a 404 is logged and swallowed like the GitHub and GitLab providers, and both tests go red on revert. Approving.
For the record, not an ask: publish_comment(is_temporary=True) returns None on this provider and temp_comments stays empty, so no tool reaches remove_comment yet. Showing the progress comment on Bitbucket Server is the natural follow-up now that deletion exists.
Summary
Implement comment deletion for the Bitbucket Server provider.
The provider now validates the comment ID and version, calls the Bitbucket Server client deletion API, and reports failures instead of silently doing nothing.
Tests
PYTHONPATH=. pytest tests/unittest/test_bitbucket_provider.py -q --color=noruff check pr_agent/git_providers/bitbucket_server_provider.py tests/unittest/test_bitbucket_provider.pypre-commit run --files pr_agent/git_providers/bitbucket_server_provider.py tests/unittest/test_bitbucket_provider.pyThe focused test suite passed with 98 tests.
Fixes #3375