Skip to content

Generalize GitHub URI to allow GitHub Enterprise host #916

@lgonzalezsa

Description

@lgonzalezsa

Was trying to use nbdev_release_gh and was having fastcore.basics.HTTP401UnauthorizedError: HTTP Error 401: Unauthorized
Reviewing the code in https://github.com/fastai/nbdev/blob/master/nbs/17_release.ipynb
Specifically the cell:

#| export
GH_HOST = "https://api.github.com" 

Could be possible to include a parameter en settings.ini with the URI to use?
I have the option to run nbdev in our GitHub Enterprise then the GH_HOST is different.

PD: what could be the best way to reference a specific code line if using Jupyter Notebook? referencing the specific JSON line?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions