Commit c71a7896 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

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