Skip to content
Snippets Groups Projects
Commit c71a7896 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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

parent 9d060744
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -26,8 +26,7 @@ class ServicesController < ProjectResourceController
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)
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