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

Add GitLab support #658

Merged
merged 3 commits into from Jun 19, 2022
Merged

Add GitLab support #658

merged 3 commits into from Jun 19, 2022

Conversation

ainmosni
Copy link
Contributor

Add the possibility to add plugins from gitlab. Resolves #657.

Add the possibility to add plugins from gitlab. Resolves jorgebucaran#657.
Even though this did work, it's not correct. This makes the URL fully
correct.
@jorgebucaran jorgebucaran self-requested a review January 30, 2021 12:52
@jorgebucaran jorgebucaran added the enhancement New feature or request label Jan 30, 2021
README.md Outdated
Comment on lines 34 to 39
To install a plugin from GitLab, prefix `gitlab.com/`.

```console
fisher install gitlab.com/ainmosni/fish-aws
```

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ainmosni If you can turn this into one sentence and put it after a > (we don't need the example), then I'd be happy to include this in the README.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I'll think a bit more about it.

Make it a bit less verbose.
@jorgebucaran jorgebucaran changed the title Add GitLab support. Add GitLab support Mar 3, 2021
if string match -q 'gitlab.com/*' \$name[1]
set bare (string replace 'gitlab.com/' '' \$name[1])
set repo (string split '/' \$bare)
set url https://gitlab.com/{\$bare}/-/archive/{\$name[2]}/{\$repo[2]}-{\$name[2]}.tar.gz

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't work with project in sub-group on Gitlab.
Like gitlab.com/config/fish/abc.git project.

You must change it to

set url https://gitlab.com/{\$bare}/-/archive/{\$name[2]}/{\$repo[-1]}-{\$name[2]}.tar.gz

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching this bug. 💯

@jorgebucaran jorgebucaran mentioned this pull request Oct 21, 2021
@tennox
Copy link

tennox commented Jun 19, 2022

I'd really like to have this, did your thinking bring something up? 😋

@jorgebucaran jorgebucaran merged commit daddbad into jorgebucaran:main Jun 19, 2022
@jorgebucaran
Copy link
Owner

Available in 4.3.5. Thank you, @ainmosni. 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gitlab support
4 participants