popomore / github-labels

Add github labels automatically
177 stars 20 forks source link

Add pathPrefix option #23

Closed tim-hutchinson closed 7 years ago

tim-hutchinson commented 7 years ago

In the change to HTTPS, it looks like the pathPrefix option for the GitHub API client was changed to use the program host. Looking at the docs for that client, it looks like for public GitHub you leave that setting null, but for GitHub Enterprise it usually needs to be "/api/v3"

Rather than try to guess at the correct behavior, I added another command line flag for setting that prefix. No options provided still works for public GH, and this now works for our GitHub Enterprise installation which requires the "/api/v3" prefix.

popomore commented 7 years ago