Commit c71a7896b1d5ac23785393b486d64902af56d33e
1 parent
9d060744
Exists in
master
and in
4 other branches
fix test button functionality for project -> service -> gitlab ci
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
app/controllers/services_controller.rb
... | ... | @@ -26,8 +26,7 @@ class ServicesController < ProjectResourceController |
26 | 26 | end |
27 | 27 | |
28 | 28 | def test |
29 | - commits = project.repository.commits(project.default_branch, nil, 3) | |
30 | - data = project.post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{project.default_branch}", current_user) | |
29 | + data = GitPushService.new.sample_data(project, current_user) | |
31 | 30 | |
32 | 31 | @service = project.gitlab_ci_service |
33 | 32 | @service.execute(data) | ... | ... |