|
30 | 30 | .pull-right |
31 | 31 | = link_to 'Test Hook', test_project_web_hook_path(@project, hook), class: "btn btn-small btn-grouped" |
32 | 32 | = link_to 'Remove', project_web_hook_path(@project, hook), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove btn-small btn-grouped" |
| 33 | + |
| 34 | +%h4 Web Hook data example |
| 35 | + |
| 36 | +:erb |
| 37 | + <pre> |
| 38 | + <code> |
| 39 | + { |
| 40 | + "build_id": 2, |
| 41 | + "build_status": "failed", |
| 42 | + "build_started_at": "2014-05-05T18:01:02.563Z", |
| 43 | + "build_finished_at": "2014-05-05T18:01:07.611Z", |
| 44 | + "project_id": 1, |
| 45 | + "project_name": "Brightbox \/ Brightbox Cli", |
| 46 | + "gitlab_url": "http:\/\/localhost:3000\/brightbox\/brightbox-cli", |
| 47 | + "ref": "master", |
| 48 | + "sha": "a26cf5de9ed9827746d4970872376b10d9325f40", |
| 49 | + "before_sha": "34f57f6ba3ed0c21c5e361bbb041c3591411176c", |
| 50 | + "push_data": { |
| 51 | + "before": "34f57f6ba3ed0c21c5e361bbb041c3591411176c", |
| 52 | + "after": "a26cf5de9ed9827746d4970872376b10d9325f40", |
| 53 | + "ref": "refs\/heads\/master", |
| 54 | + "user_id": 1, |
| 55 | + "user_name": "Administrator", |
| 56 | + "project_id": 5, |
| 57 | + "repository": { |
| 58 | + "name": "Brightbox Cli", |
| 59 | + "url": "dzaporozhets@localhost:brightbox\/brightbox-cli.git", |
| 60 | + "description": "Voluptatibus quae error consectetur voluptas dolores vel excepturi possimus.", |
| 61 | + "homepage": "http:\/\/localhost:3000\/brightbox\/brightbox-cli" |
| 62 | + }, |
| 63 | + "commits": [ |
| 64 | + { |
| 65 | + "id": "a26cf5de9ed9827746d4970872376b10d9325f40", |
| 66 | + "message": "Release v1.2.2", |
| 67 | + "timestamp": "2014-04-22T16:46:42+03:00", |
| 68 | + "url": "http:\/\/localhost:3000\/brightbox\/brightbox-cli\/commit\/a26cf5de9ed9827746d4970872376b10d9325f40", |
| 69 | + "author": { |
| 70 | + "name": "Paul Thornthwaite", |
| 71 | + |
| 72 | + } |
| 73 | + }, |
| 74 | + { |
| 75 | + "id": "34f57f6ba3ed0c21c5e361bbb041c3591411176c", |
| 76 | + "message": "Fix server user data update\n\nIncorrect condition was being used so Base64 encoding option was having\nopposite effect from desired.", |
| 77 | + "timestamp": "2014-04-11T18:17:26+03:00", |
| 78 | + "url": "http:\/\/localhost:3000\/brightbox\/brightbox-cli\/commit\/34f57f6ba3ed0c21c5e361bbb041c3591411176c", |
| 79 | + "author": { |
| 80 | + "name": "Paul Thornthwaite", |
| 81 | + |
| 82 | + } |
| 83 | + } |
| 84 | + ], |
| 85 | + "total_commits_count": 2, |
| 86 | + } |
| 87 | + } |
| 88 | + </code> |
| 89 | + </pre> |
0 commit comments