[Techdocs] Own Hosted Bitbucket follow-up #4233 (Issues during test)
See original GitHub issueExpected Behavior
Reading branch from bitbucket server
Current Behavior
Failed to retrieve default branch from https://<mybitbucket-host.com>/rest/api/1.0/projects/PRJ/repos/me-repo-1/default-branch, 404 Not Found
Possible Solution
https://github.com/backstage/backstage/blob/master/packages/integration/src/bitbucket/core.ts#L37
fixing
const branchUrl = isHosted
? `${config.apiBaseUrl}/repositories/${project}/${repoName}`
: `${config.apiBaseUrl}/projects/${project}/repos/${repoName}/default-branch`;
to
const branchUrl = isHosted
? `${config.apiBaseUrl}/repositories/${project}/${repoName}`
: `${config.apiBaseUrl}/projects/${project}/repos/${repoName}/branches/default`;
Steps to Reproduce
Same as in #4233
Context
Your Environment
Atlassian Bitbucket v5.11.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (21 by maintainers)
Top Results From Across the Web
Troubleshooting steps for Bitbucket Server Code Search
Check the status of Search server · Check that Search server is starting with the atlbitbucket user · Check the username/password for Search ......
Read more >Bitbucket code review: Merge with confidence
Merge with confidence. List conditions for reviewers to check off before approving, so pull requests are consistently vetted before they are merged.
Read more >Bitbucket Overview
Cloud Server Data center
Git repository hosting Cloud Server Data center
Branch permissions Cloud Server Data center
Jira Software integration Cloud Server Data center
Read more >Bitbucket | Git solution for teams using Jira
Bitbucket Cloud is a Git-based code and CI/CD tool optimized for teams using Jira.
Read more >Bitbucket Integrations
Identify and remediate cloud security issues with Bridgecrew's Bitbucket Cloud ... test, deploy flows and notifications to support your team's unique way of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@regicsolutions Hey! @kaparwan has a PR up to support both https://github.com/backstage/backstage/pull/4347 !
Hi @Himanshu.
Sure , I will open PR.
I think we can default to current version and fallback to old, yes. ( And we can see how many such changes exist across these versions. There shouldn’t be many. )
– Sent from iPhone