Commit c71a7896 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

fix test button functionality for project -> service -> gitlab ci

parent 6f73a5ac2da5
......@@ -26,8 +26,7 @@ def update
end
def test
commits = project.repository.commits(project.default_branch, nil, 3)
data = project.post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{project.default_branch}", current_user)
data = GitPushService.new.sample_data(project, current_user)
@service = project.gitlab_ci_service
@service.execute(data)
......
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