fix: ghc assignment typo (#1729)
* fix: ghc assignment typo * fixup server_url
This commit is contained in:
parent
d70b225e85
commit
97749a27b9
2 changed files with 3 additions and 3 deletions
|
@ -646,10 +646,10 @@ func (rc *RunContext) getGithubContext(ctx context.Context) *model.GithubContext
|
|||
ghc.ServerURL = rc.Config.Env["GITHUB_SERVER_URL"]
|
||||
}
|
||||
if rc.Config.Env["GITHUB_API_URL"] != "" {
|
||||
ghc.ServerURL = rc.Config.Env["GITHUB_API_URL"]
|
||||
ghc.APIURL = rc.Config.Env["GITHUB_API_URL"]
|
||||
}
|
||||
if rc.Config.Env["GITHUB_GRAPHQL_URL"] != "" {
|
||||
ghc.ServerURL = rc.Config.Env["GITHUB_GRAPHQL_URL"]
|
||||
ghc.GraphQLURL = rc.Config.Env["GITHUB_GRAPHQL_URL"]
|
||||
}
|
||||
|
||||
return ghc
|
||||
|
|
Loading…
Reference in a new issue