Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Adding Github Host to context to enable writing actions for github enterprise #576

Closed
adam-bratin opened this issue Sep 16, 2020 · 0 comments · Fixed by #794
Closed
Labels
enhancement New feature or request github

Comments

@adam-bratin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request github
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants