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

Support for Gitlab repositories #16

Merged
merged 6 commits into from
Dec 15, 2023
Merged

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented Dec 11, 2023

This PR adds support for Gitlab repositories.

Fixes #14

CAUTION: this only support unauthenticated requests yet, therefore only public repositories can be fetched.

Changes

  • GitPuller class, an abstract class containing the shared logic (managing files and directories).
  • GithubPuller and GitlabPuller classes, extending GitPuller, specific to use the corresponding Rest API.

Test it

It can be tested from the documentation built in tests, e.g. using the following link:
https://litegitpuller--16.org.readthedocs.build/en/16/?repo=https%3A%2F%2Fgitlab.com%2Fbrichet1%2Ftesting-repo&urlpath=tree%2Ftesting-repo%2Fnotebooks%2Fsimple.ipynb&+branch=main&provider=gitlab

cc. @SylvainCorlay @nthiery

Copy link

Binder 👈 Launch a Binder on branch brichet/litegitpuller/gitlab

@brichet brichet added the enhancement New feature or request label Dec 11, 2023
@brichet brichet self-assigned this Dec 11, 2023
@brichet brichet changed the title Add support for Gitlab Support for Gitlab repositories Dec 11, 2023
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@martinRenou martinRenou merged commit ef363d2 into jupyterlite:main Dec 15, 2023
9 checks passed
@brichet brichet deleted the gitlab branch December 15, 2023 14:28
@nthiery
Copy link

nthiery commented Feb 16, 2024

I confirm that this works smoothly with our local gitlab instance. Thanks @brichet!

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.

Support for GitLab repositories
3 participants