Commit da75618b authored by Dylan Griffith's avatar Dylan Griffith

Make Ci::Runner#assign_to keep returning RunnerProject

parent 03ff1da2
......@@ -120,8 +120,9 @@ module Ci
raise ArgumentError, 'Transitioning a group runner to a project runner is not supported'
end
self.projects << project
runner_project = project.runner_projects.create(runner_id: self.id)
self.save!
runner_project
end
def display_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment