berkeley-dsep-infra / datahub

JupyterHubs for use by Berkeley enrolled students
https://docs.datahub.berkeley.edu
BSD 3-Clause "New" or "Revised" License
63 stars 39 forks source link

Public Health Hub Private Repo Authorization #2528

Closed geneh0 closed 3 years ago

geneh0 commented 3 years ago

Hi, I'm working on a course that will be using the Public Health Hub. How do I go about granting it access to pull from a private repo via nbgitpuller? I found this documentation for the main hub, but it doesn't seem to be able to pull from there.

balajialg commented 3 years ago

Hi @geneh0,

Did you complete all the steps outlined in the documentation and create a nbgitpuller link? If yes, Can you share the URL and also the snapshot of the error message that you are receiving? We will take a look and get back with our inputs.

geneh0 commented 3 years ago

Yes, I was able to get it to work with the main hub before, but when I changed the url to the public health hub I get the error below: image

The URL using the public health hub is https://publichealth.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fpatrickbradshaw%2FPH252_F2021_DataHub&urlpath=tree%2FPH252_F2021_DataHub%2F&branch=main

yuvipanda commented 3 years ago

Thanks for opening this and the details, @geneh0. We can add support for private repos to publichealth hub. When do you need this by?

geneh0 commented 3 years ago

Ideally by the start of the semester!

On Mon, Aug 16, 2021 at 8:29 AM Yuvi Panda < Yuvi Panda ( Yuvi Panda @.***> ) > wrote:

Thanks for opening this and the details, @geneh0 ( https://github.com/geneh0 ). We can add support for private repos to publichealth hub. When do you need this by?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub ( https://github.com/berkeley-dsep-infra/datahub/issues/2528#issuecomment-899603431 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AMR5BDUS3ZFEQGMSAGUX2R3T5EVFZANCNFSM5CAHF4EQ ). Triage notifications on the go with GitHub Mobile for iOS ( https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 ) or Android ( https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email ).

yuvipanda commented 3 years ago

@geneh0 I've deployed this now, give it a shot?

geneh0 commented 3 years ago

@yuvipanda How do I grant the hub access to the repo?

yuvipanda commented 3 years ago

@geneh0 I put the link for the GItHub app in the documentation

geneh0 commented 3 years ago

@yuvipanda Just pulled successfully! Thanks!