Describe the enhancement
Currently most actions are written to only work with repos hosted on Github.com. As Github enterprise 2.22.0 has been released with github actions beta I was hoping to enable adding to the github context a host variable. This will enable actions using context from '@actions/github' to set up a gh client consistently without the action developer needing to know where the action is being used.
Code Snippet
I am assuming adding a line after here
|
this.runId = parseInt(process.env.GITHUB_RUN_ID as string, 10) |
:
this.host = process.env.GITHUB_HOST ?? "https://api.github.com" as string
Additional information