summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-07-21 10:32:42 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-07-21 10:32:42 +0300
commit9c8a1e651716212cf50a623d98e03b8dbdb2c64a (patch)
tree51fa6556d114c4dac06eaa566ccc96caa8994cf0
parent4261acda90ff4c61326d80cba026ae76e8551f8f (diff)
downloadgitlab-ce-9c8a1e651716212cf50a623d98e03b8dbdb2c64a.tar.gz
Fix system hook example
-rw-r--r--app/views/admin/hooks/_data_ex.html.erb45
1 files changed, 7 insertions, 38 deletions
diff --git a/app/views/admin/hooks/_data_ex.html.erb b/app/views/admin/hooks/_data_ex.html.erb
index 8d3de3f0bf2..875c20a708b 100644
--- a/app/views/admin/hooks/_data_ex.html.erb
+++ b/app/views/admin/hooks/_data_ex.html.erb
@@ -1,43 +1,12 @@
<% data_ex_str = <<eos
{
- :before => "95790bf891e76fee5e1747ab589903a6a1f80f22",
- :after => "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
- :ref => "refs/heads/master",
- :user_id => 4,
- :user_name => "John Smith",
- :repository => {
- :name => "Diaspora",
- :url => "localhost/diaspora",
- :description => "",
- :homepage => "localhost/diaspora",
- :private => true
- },
- :commits => [
- [0] {
- :id => "450d0de7532f8b663b9c5cce183b...",
- :message => "Update Catalan translation to e38cb41.",
- :timestamp => "2011-12-12T14:27:31+02:00",
- :url => "http://localhost/diaspora/commits/450d0de7532f...",
- :author => {
- :name => "Jordi Mallach",
- :email => "jordi@softcatala.org"
- }
- },
-
- ....
-
- [3] {
- :id => "da1560886d4f094c3e6c9ef40349...",
- :message => "fixed readme",
- :timestamp => "2012-01-03T23:36:29+02:00",
- :url => "http://localhost/diaspora/commits/da1560886d...",
- :author => {
- :name => "gitlab dev user",
- :email => "gitlabdev@dv6700.(none)"
- }
- }
- ],
- total_commits_count => 3
+ "created_at": "2012-07-21T07:30:54Z",
+ "event_name": "project_create",
+ "name": "StoreCloud",
+ "owner_email": "johnsmith@gmail.com",
+ "owner_name": "John Smith",
+ "path": "storecloud",
+ "project_id": 74
}
eos
%>