aevea / commitsar

Tool to check that commits comply with conventional commit standard
https://commitsar.aevea.ee
MIT License
134 stars 19 forks source link

Pull request pipeline not working on GitHub Enterprise Server due to default GitHub API URL #513

Open mikael-andersson91 opened 1 year ago

mikael-andersson91 commented 1 year ago

I have been attempting to use the pull request pipeline on GitHub Actions for repositories hosted on our GitHub Enterprise Server Instance and I continuously get this error:

⨯ pipeline: pr-pipeline, error: GET https://api.github.com/repos/RPA-Global/ActionsExperiment/commits/17af711881ebf25800eb6ceeee75937c36346c8c/pulls: 401 Bad credentials []

image

Seems like an indication that a hard-coded default URL for the GitHub API (api.github.com) is used instead of the GITHUB_SERVER_URL environment variable or the github.api_url from the github context for the relevant GET requests to look at the pull request. Maybe one of these options could be used to make commitsar more flexible for various GitHub hosting options?

fallion commented 1 year ago

We've not had an enterprise usecase yet, should be an easy fix.

mikael-andersson91 commented 11 months ago

Just curious, have you had a chance to look into this further?