-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgh_post.json.erb
32 lines (32 loc) · 1.01 KB
/
gh_post.json.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"before": "<%= Digest::SHA1.hexdigest 'before' %>",
"repository": {
"url": "<%= site.gh_url %>",
"name": "<%= site.domain %>",
"description": "Sample sample",
"watchers": 1,
"forks": 0,
"private": 1,
"owner": {
"email": "info@teamcolab.com",
"name": "teamcolab"
}
},
"commits": [
{
"id": "<%= Digest::SHA1.hexdigest 'commit' %>",
"url": "<%= "#{site.gh_url}/commit/#{Digest::SHA1.hexdigest 'commit'}" %>",
"author": {
"email": "info@teamcolab.com",
"name": "teamcolab"
},
"message": "Sample post",
"timestamp": "2008-02-15T14:57:17-08:00"<% if not args[:add_file].blank? %>,
"added": ["<%= args[:add_file] %>"]<% end %><% if not args[:modify_file].blank? %>,
"modified": ["<%= args[:modify_file] %>"]<% end %><% if not args[:remove_file].blank? %>,
"removed": ["<%= args[:remove_file] %>"]<% end %>
}
],
"after": "<%= Digest::SHA1.hexdigest 'after' %>",
"ref": "refs/heads/<%= args[:ref] %>"
}