Skip to content
Snippets Groups Projects
Commit 5f887344 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Prefer Runner#assign_to instead of creating directly

parent 121c6322
No related branches found
No related tags found
3 merge requests!4734!4093 is giving me 502,!4641Prefer Runner#assign_to instead of creating directly,!4093Make it possible to lock runner on a specific project
Pipeline #
Loading
Loading
@@ -96,7 +96,7 @@ module API
 
runner = get_runner(params[:runner_id])
authenticate_enable_runner!(runner)
Ci::RunnerProject.create(runner: runner, project: user_project)
runner.assign_to(user_project)
 
present runner, with: Entities::Runner
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment