Commit 9c8a1e651716212cf50a623d98e03b8dbdb2c64a

Authored by randx
1 parent 4261acda

Fix system hook example

Showing 1 changed file with 7 additions and 38 deletions   Show diff stats
app/views/admin/hooks/_data_ex.html.erb
1 1 <% data_ex_str = <<eos
2 2 {
3   - :before => "95790bf891e76fee5e1747ab589903a6a1f80f22",
4   - :after => "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
5   - :ref => "refs/heads/master",
6   - :user_id => 4,
7   - :user_name => "John Smith",
8   - :repository => {
9   - :name => "Diaspora",
10   - :url => "localhost/diaspora",
11   - :description => "",
12   - :homepage => "localhost/diaspora",
13   - :private => true
14   - },
15   - :commits => [
16   - [0] {
17   - :id => "450d0de7532f8b663b9c5cce183b...",
18   - :message => "Update Catalan translation to e38cb41.",
19   - :timestamp => "2011-12-12T14:27:31+02:00",
20   - :url => "http://localhost/diaspora/commits/450d0de7532f...",
21   - :author => {
22   - :name => "Jordi Mallach",
23   - :email => "jordi@softcatala.org"
24   - }
25   - },
26   -
27   - ....
28   -
29   - [3] {
30   - :id => "da1560886d4f094c3e6c9ef40349...",
31   - :message => "fixed readme",
32   - :timestamp => "2012-01-03T23:36:29+02:00",
33   - :url => "http://localhost/diaspora/commits/da1560886d...",
34   - :author => {
35   - :name => "gitlab dev user",
36   - :email => "gitlabdev@dv6700.(none)"
37   - }
38   - }
39   - ],
40   - total_commits_count => 3
  3 + "created_at": "2012-07-21T07:30:54Z",
  4 + "event_name": "project_create",
  5 + "name": "StoreCloud",
  6 + "owner_email": "johnsmith@gmail.com",
  7 + "owner_name": "John Smith",
  8 + "path": "storecloud",
  9 + "project_id": 74
41 10 }
42 11 eos
43 12 %>
... ...