jupyterhub / gh-scoped-creds

Provide fine-grained push access to GitHub from a JupyterHub
BSD 3-Clause "New" or "Revised" License
25 stars 7 forks source link

Small documentation/message fixes #6

Closed fperez closed 2 years ago

fperez commented 2 years ago

Loving this, and I realized we can run it from the console/notebook even more conveniently than from the terminal :)

BTW - I'm thinking whether the entry point should be named something a little bit shorter/more convenient to type, say ghauth or github-auth or similar? It's going to be a daily command, and the current name is a bit of a mouthful to type.

I also went through the GH docs looking for a way to automate things a bit further with a button, but the device flow seems to require explicitly visiting the login URL by hand, and it can't be iframed. The only thing I see to improve the flow would be to add a %magic version that runs the same cmd, but produces a nice HTML display in the console/notebook with a button that, upon click, both copies the code into the clipboard and opens the new URL.

I'll play with that idea and will make a new PR if it works.