pr-size-labeler icon indicating copy to clipboard operation
pr-size-labeler copied to clipboard

Github API url is not necessary

Open erodewald opened this issue 4 years ago • 2 comments

By default, GitHub and its variants include an GITHUB_API_URL environment variable, so the addition of github_api_url just increased code complexity, reduced maintainability, and actually reduced flexibility since it assumes https://. The latter meant I was not able to simply pass in $GITHUB_API_URL, because it became an invalid url (e.g., https://https://my-enterprise.url.com/api/v3).

erodewald avatar Jul 15 '21 19:07 erodewald

actually, if i keep the github_api_url: 'api.github.com' that comes from the example, it does not label my prs at all. it only worked after i omitted the line. it took me quite a while to figure it out 😄

cscleison avatar Apr 19 '22 15:04 cscleison

actually, if i keep the github_api_url: 'api.github.com' that comes from the example, it does not label my prs at all. it only worked after i omitted the line. it took me quite a while to figure it out 😄

Nice!

rubeeengm avatar Aug 23 '23 06:08 rubeeengm

There were two potential issues:

  1. the readme example excluded the http:// which would break if copied
  2. github enterprise accounts have to set a value, which shouldn't be required

Both have seen been addressed by #57 and #62 respectively.

johnlk avatar Apr 16 '24 22:04 johnlk