Skip to content

Conversation

some-natalie
Copy link

👋🏻 Hello! This PR should fix #63 and also add support for GitHub AE. These two products use a different API endpoint than GitHub.com, but the functionality of the API is the same here.

To solve this, the GITHUB_API_URL environment variable from the Actions runner is also picked up and shoved into the GitHub client. I used the NewEnterpriseClient function from go-github, which is a wrapper that specifies the API url in addition to the HTTP client (link). It still works exactly as expected for ALL github.com plans, as seen in my free-tier fork of this repo in the run here.

I've also got it working exactly as expected in GitHub Enterprise Server, as seen in the screenshot below. (side note - sorry for the screenshots, but I don't have anything publicly accessible to show off here)

Screen Shot 2022-03-07 at 9 32 03 AM

@some-natalie
Copy link
Author

@micnncim gentle bump on boring PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for GitHub Enterprise Server

1 participant