Fix nil pointer error on received check_run event (#331)
* Reproduce nil pointer error on received check_run event * Fix nil pointer error on received check_run event
This commit is contained in:
@@ -146,8 +146,8 @@ func (autoscaler *HorizontalRunnerAutoscalerGitHubWebhook) Handle(w http.Respons
|
||||
case *gogithub.CheckRunEvent:
|
||||
target, err = autoscaler.getScaleUpTarget(
|
||||
context.TODO(),
|
||||
*e.Repo.Name,
|
||||
*e.Org.Name,
|
||||
e.GetRepo().GetName(),
|
||||
e.GetOrg().GetLogin(), // empty string if the repo is not in an organization
|
||||
autoscaler.MatchCheckRunEvent(e),
|
||||
)
|
||||
case *gogithub.PingEvent:
|
||||
|
||||
Reference in New Issue
Block a user