Skip to content
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

The "Open this repository on GitLab button" is always trying to open the file in the "master" branch #3

Open
beenje opened this issue Aug 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@beenje
Copy link
Collaborator

beenje commented Aug 2, 2023

Description

The "master" branch is hard-coded when using the "Open this repository on GitLab" button:

if (resource.repository) {
url = URLExt.join(
url,
resource.repository,
'tree',
'master',
resource.path
);

The button should use the repository default branch instead.

Note that when browsing a repository, the default branch is now retrieved via the API (see dd985a3) but this isn't used for the toolbar button yet.

@beenje beenje added the bug Something isn't working label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant