-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Switching to the new version of shared library has broken Bitbucket's "Ready to Merge" category #4191
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
Comments
Hi @jdgarcia , @gitkraken-jacobw , @axosoft-ramint Here (and maybe in other places) in the categorization method we require a PR to be in But here in Bitbucket (and maybe in other providers) we put the mergeable state to As a result, Bitbucket PRs can never be shown in Therefore, we need to do one of the following:
What option do you think is better? |
@sergeibbb We may want a client-side override on the categorization where we think is appropriate. Or we may want to see if we can get a pulse on a Bitbucket PR's mergeability from the other properties we do have access to, and maybe set mergeable state if we determine it from those other properties. I definitely suggest against assuming a PR is mergeable if its state is unknown as a general rule. So I would lean towards 2 but only in cases where we have enough context from other properties of the PR to determine that it is indeed mergeable, not as a default. |
Re client-side override It's not only GitLens's problem. GK.dev shows this PR incorrectly too. To me it's a sign that it should be fixed in the library: Does anybody mind if I go with n.2. "Set Bitbucket to Mergeable rather than to Unknown"? @jdgarcia , @gitkraken-jacobw , @axosoft-ramint ? |
Yeah, the more I think about it, the more it makes sense as a general rule. I think I'm more on the side of 2 now, with the assumption that if you couldn't actually merge, you would get an error from the provider anyway. |
seems to be caused by #4128
fixed in https://github.com/gitkraken/provider-apis-package-js/pull/231
the ticket is waiting for approval and for having a new library version shipped.
Description
It's

Bitbucket.org
Fixed in:
Verification steps
Have a PR that should appear in "Ready to merge":
Before the fix: it's in Other

After the fix: it's in Ready to merge
System info
GitLens Version
16.3.3 pre-release
VS Code Version
Version: 1.99.0-insider
Commit: 99c9c6c8eb0aef3fce659b0fac1ff3130c4e34a4
Date: 2025-03-28T21:28:51.696Z (2 days ago)
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0
Git Version
No response
Logs, Screenshots, Screen Captures, etc
No response
The text was updated successfully, but these errors were encountered: