1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

fix: ghc assignment typo (#1729)

* fix: ghc assignment typo

* fixup server_url
This commit is contained in:
ChristopherHX 2023-04-13 16:09:29 +02:00 committed by GitHub
parent e71161acde
commit 2e9189a6e2
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ type GithubContext struct {
RetentionDays string `json:"retention_days"`
RunnerPerflog string `json:"runner_perflog"`
RunnerTrackingID string `json:"runner_tracking_id"`
ServerURL string `json:"server_url "`
ServerURL string `json:"server_url"`
APIURL string `json:"api_url"`
GraphQLURL string `json:"graphql_url"`
}

View file

@ -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