-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Bug description
when trying to run a prebuild in the dashboard , a bitbucket repo returns the error
"Error: Could not find a default branch in repository"
Steps to reproduce
press the "run preview" button and you get this error
Workspace affected
any bitbucket repo
Expected behavior
it should behave the same way as gitlab and github - ie run a prebuild
Example repository
No response
Anything else?
It looks like the Bitbucket API on a repo / branch does not return the information needed to check if the branch is the default.
the gitlab code is
return { host, owner, name, cloneUrl, description, avatarUrl, webUrl, defaultBranch };
the bitbucket code is
return { host, owner, name, cloneUrl, description, avatarUrl, webUrl };
There is an api call in BitBucket to obtain the default branch , but this is not implemented in the BitBucket provider code from gitpod.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status