feat: parse runner from ctx

This commit is contained in:
Jason Song
2022-10-10 14:53:21 +08:00
parent 0993c40c4f
commit e21c07cc55
2 changed files with 40 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import (
"code.gitea.io/gitea/routers/api/bots/runner"
"code.gitea.io/gitea/routers/api/bots/scheduler/queue"
"gitea.com/gitea/proto-go/runner/v1/runnerv1connect"
)
@ -20,5 +21,6 @@ func RunnerRoute() (string, http.Handler) {
return runnerv1connect.NewRunnerServiceHandler(
runnerService,
compress1KB,
withRunner,
)
}