Revert "feat: adding workflow_dispatch webhook event" (#879)

This reverts commit d36d47fe66.
This commit is contained in:
Callum Tait
2021-10-09 18:36:02 +01:00
committed by GitHub
parent d36d47fe66
commit 5805e39e1f
4 changed files with 3 additions and 67 deletions

View File

@@ -183,15 +183,6 @@ func (autoscaler *HorizontalRunnerAutoscalerGitHubWebhook) Handle(w http.Respons
"action", e.GetAction(),
)
}
case *gogithub.WorkflowDispatchEvent:
target, err = autoscaler.getScaleUpTarget(
context.TODO(),
log,
e.Repo.GetName(),
e.Repo.Owner.GetLogin(),
e.Repo.Owner.GetType(),
autoscaler.WorkflowDispatchEvent(e),
)
case *gogithub.WorkflowJobEvent:
if workflowJob := e.GetWorkflowJob(); workflowJob != nil {
log = log.WithValues(