Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c71a7896
Commit
c71a7896
authored
Mar 20, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test button functionality for project -> service -> gitlab ci
parent
9d060744
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/controllers/services_controller.rb
app/controllers/services_controller.rb
+1
-2
No files found.
app/controllers/services_controller.rb
View file @
c71a7896
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment