mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 13:00:10 +02:00
feat: create task steps
This commit is contained in:
1 parent
699f5c5a06
commit
6df53243aa
5 files changed
+48
-8
No files matched your search
@@ -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