-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pull requests in personal spaces in Bitbucket Server #1406
base: main
Are you sure you want to change the base?
Conversation
Related to Codium-ai#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/`.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@vishwamartur i think that's a reasonable suggestion. To make sure that somehow there is no conflict other than that, looks good
|
User description
Related to #1148
Update
_parse_pr_url
method inpr_agent/git_providers/bitbucket_server_provider.py
to handle URLs with/users/
./projects/
and/users/
in the URL path and process them accordingly.ValueError
if neither/projects/
nor/users/
is found in the URL.workspace_slug
to include a~
prefix if the URL contains/users/
.Add test case for URL with
/users/
intests/unittest/test_bitbucket_provider.py
./users/
.PR Type
Enhancement
Description
/users/
)/projects/
) and user-based (/users/
) paths~
prefix to workspace slug for personal space URLsChanges walkthrough 📝
bitbucket_server_provider.py
Enhanced PR URL parsing for personal spaces
pr_agent/git_providers/bitbucket_server_provider.py
/users/
path/projects/
and/users/
paths~
to workspace_slug when URL contains/users/
test_bitbucket_provider.py
Added tests for personal spaces URL parsing
tests/unittest/test_bitbucket_provider.py
/users/
path