Does this work with enterprise github?
amritb opened this issue · 5 comments
I am no expert on gh-actions - but I see you have this regex /^https:\/\/github.com\/([^/]+)\/([^/]+)\/(pull|tree)\/([^ ]+)$/;
at https://github.com/pascalgn/automerge-action/blob/main/lib/api.js#L9.
So is it supposed to work with github enterprise with different URLs?
At least it does not work with out GH Enterprise Server installation. So I would assume that it's not working with GHES in general (as the github.com API seems to be hard-coded).
Would be great if there would be an option to specify the used GH instance URL in this action. Alternatively it would make also sense to get this input from the checkout action, there would no need to specify the URL interactively.
We're using Octokit, which can be passed a baseUrl in the configuration: https://octokit.github.io/rest.js/v18
I don't have access to GH Enterprise, so feel free to create a PR for this! 👍
I'll take a stab at this, but my JS-foo is incredibly weak. Hope you don't mind some hand-holding!
Hi, how can I use with GitHub Enterprise? Thank you in advance!