mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-31 21:12:51 +09:00
feat: create task steps
This commit is contained in:
@ -189,9 +189,9 @@ func (s *Service) UpdateLog(
|
||||
}
|
||||
|
||||
func (s *Service) pickTask(ctx context.Context, runner *bots_model.Runner) (*runnerv1.Task, bool, error) {
|
||||
t, ok, err := bots_model.CreateTask(runner)
|
||||
t, ok, err := bots_model.CreateTaskForRunner(runner)
|
||||
if err != nil {
|
||||
return nil, false, fmt.Errorf("CreateTask: %w", err)
|
||||
return nil, false, fmt.Errorf("CreateTaskForRunner: %w", err)
|
||||
}
|
||||
if !ok {
|
||||
return nil, false, nil
|
||||
|
Reference in New Issue
Block a user