fix test button functionality for project -> service -> gitlab ci
This commit is contained in:
parent
9d06074409
commit
c71a7896b1
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue