If you use a repository hosted in a personal space in Bitbucket Server (e.g. https://bitbucket.company-server.url/users/username/repos/my-repo/pull-requests/1, you'll get:
ValueError: The provided URL 'https://bitbucket.company-server.url/users/username/repos/my-repo/pull-requests/1' does not appear to be a Bitbucket PR URL
A workaround/hack our team found was to modify the url from this:
If you use a repository hosted in a personal space in Bitbucket Server (e.g.
https://bitbucket.company-server.url/users/username/repos/my-repo/pull-requests/1
, you'll get:A workaround/hack our team found was to modify the url from this:
https://bitbucket.company-server.url/users/username/repos/my-repo/pull-requests/1
to this:
https://bitbucket.company-server.url/projects/~username/repos/my-repo/pull-requests/1
(i.e. Change
users
toprojects
and add a~
in front of the username)This works, but ideally the first URL should work too (i.e.
https://bitbucket.company-server.url/users/username/repos/my-repo/pull-requests/1
).Relevant sections of code: