upsidr / merge-gatekeeper

Get better merge control
MIT License
85 stars 14 forks source link

Support GitHub Enterprise Instances #74

Open maxmoehl opened 5 months ago

maxmoehl commented 5 months ago

Currently this action does not supply a API URL to the GitHub client:

https://github.com/upsidr/merge-gatekeeper/blob/12e1af4ecc92572c30bda0afff86b78f4d6baac5/internal/github/github.go#L34-L38

According to the documentation this causes the client to default to the GitHub.com API. Within Actions the correct API URL for the instance is available as GITHUB_API_URL.

I'd be happy to provide a PR to fix this!