Skip to content

Bitbucket provider does not return isDefault  #7325

@jmls

Description

@jmls

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

image

press the "run preview" button and you get this error

image

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

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions