Gitee webhooks 数据格式

gitee webhook post 数据格式

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"ref": "refs/heads/master",
"before": "5221c062d****77ab015df22890b7bf13fbbd",
"after": "1cdcd819599c****289dbbec762452f006cb40",
"created": false,
"deleted": false,
"compare": "https://gitee.com/loser007/bbs****om/compare/5221c062df39****90b7bf13fbbd...1cdcd819599cbb4099289dbbec762452f006cb40",
"commits": [{
"id": "1cdcd819599cbb4******c762452f006cb40",
"tree_id": "db78f3594ec0****57ef731df0d860f14f2b2",
"distinct": true,
"message": "Update README.md",
"timestamp": "2018-02-05T23:46:46+08:00",
"url": "https://gitee.com/oschina/gitee/commit/1cdcd819599****9dbbec762452f006cb40",
"author": {
"time": "2018-02-05T23:46:46+08:00",
"id": 1,
"name": "robot",
"email": "robot@gitee.com",
"username": "robot",
"user_name": "robot",
"url": "https://gitee.com/robot"
},
"committer": {
"id": 1,
"name": "robot",
"email": "robot@gitee.com",
"username": "robot",
"user_name": "robot",
"url": "https://gitee.com/robot"
},
"added": null,
"removed": null,
"modified": ["README.md"]
}],
"head_commit": {
"id": "1cdcd819599cbb409****bec762452f006cb40",
"tree_id": "db78f3594ec0683****7ef731df0d860f14f2b2",
"distinct": true,
"message": "Update README.md",
"timestamp": "2018-02-05T23:46:46+08:00",
"url": "https://gitee.com/oschina/gitee/commit/1cdcd819599c****289dbbec762452f006cb40",
"author": {
"time": "2018-02-05T23:46:46+08:00",
"id": 1,
"name": "robot",
"email": "robot@gitee.com",
"username": "robot",
"user_name": "robot",
"url": "https://gitee.com/robot"
},
"committer": {
"id": 1,
"name": "robot",
"email": "robot@gitee.com",
"username": "robot",
"user_name": "robot",
"url": "https://gitee.com/robot"
},
"added": null,
"removed": null,
"modified": ["README.md"]
},
"total_commits_count": 1,
"commits_more_than_ten": false,
"repository": {
"id": 4856321,
"name": "bbs****om",
"path": "bbs****om",
"full_name": "d****en/bbs****om",
"owner": {
"id": 502161,
"name": "db****en",
"email": "501****441@gmail.com",
"username": "loser007",
"user_name": "loser007",
"url": "https://gitee.com/loser007",
"login": "loser007",
"avatar_url": "https://gitee.com/assets/no_portrait.png",
"html_url": "https://gitee.com/loser007",
"type": "User",
"site_admin": false
},
"private": true,
"html_url": "https://gitee.com/loser007/bbs****om",
"url": "https://gitee.com/loser007/bbs****om",
"description": "blog",
"fork": false,
"created_at": "2018-12-03T11:18:39+08:00",
"updated_at": "2018-12-03T16:08:25+08:00",
"pushed_at": "2018-12-03T16:08:25+08:00",
"git_url": "git://gitee.com/loser007/bbs****om.git",
"ssh_url": "git@gitee.com:loser007/bbs****om.git",
"clone_url": "https://gitee.com/loser007/bbs****om.git",
"svn_url": "svn://gitee.com/loser007/bbs****om",
"git_http_url": "https://gitee.com/loser007/bbs****om.git",
"git_ssh_url": "git@gitee.com:loser007/bbs****om.git",
"git_svn_url": "svn://gitee.com/loser007/bbs****om",
"homepage": null,
"stargazers_count": 0,
"watchers_count": 1,
"forks_count": 0,
"language": "NodeJS",
"has_issues": true,
"has_wiki": true,
"has_pages": true,
"license": null,
"open_issues_count": 0,
"default_branch": "master",
"namespace": "loser007",
"name_with_namespace": "d****en/bbs****om",
"path_with_namespace": "loser007/bbs****om"
},
"project": {
"id": 4856321,
"name": "bbs****om",
"path": "bbs****om",
"full_name": "d****en/bbs****om",
"owner": {
"id": 502161,
"name": "d****en",
"email": "501****441@gmail.com",
"username": "loser007",
"user_name": "loser007",
"url": "https://gitee.com/loser007",
"login": "loser007",
"avatar_url": "https://gitee.com/assets/no_portrait.png",
"html_url": "https://gitee.com/loser007",
"type": "User",
"site_admin": false
},
"private": true,
"html_url": "https://gitee.com/loser007/bbs****om",
"url": "https://gitee.com/loser007/bbs****om",
"description": "blog",
"fork": false,
"created_at": "2018-12-03T11:18:39+08:00",
"updated_at": "2018-12-03T16:08:25+08:00",
"pushed_at": "2018-12-03T16:08:25+08:00",
"git_url": "git://gitee.com/loser007/bbs****om.git",
"ssh_url": "git@gitee.com:loser007/bbs****om.git",
"clone_url": "https://gitee.com/loser007/bbs****om.git",
"svn_url": "svn://gitee.com/loser007/bbs****om",
"git_http_url": "https://gitee.com/loser007/bbs****om.git",
"git_ssh_url": "git@gitee.com:loser007/bbs****om.git",
"git_svn_url": "svn://gitee.com/loser007/bbs****om",
"homepage": null,
"stargazers_count": 0,
"watchers_count": 1,
"forks_count": 0,
"language": "NodeJS",
"has_issues": true,
"has_wiki": true,
"has_pages": true,
"license": null,
"open_issues_count": 0,
"default_branch": "master",
"namespace": "loser007",
"name_with_namespace": "d****en/bbs****om",
"path_with_namespace": "loser007/bbs****om"
},
"user_id": 1,
"user_name": "robot",
"user": {
"id": 1,
"name": "robot",
"email": "robot@gitee.com",
"username": "robot",
"user_name": "robot",
"url": "https://gitee.com/robot"
},
"pusher": {
"id": 1,
"name": "robot",
"email": "robot@gitee.com",
"username": "robot",
"user_name": "robot",
"url": "https://gitee.com/robot"
},
"sender": {
"login": "robot",
"avatar_url": "https://gitee.com/assets/favicon.ico",
"html_url": "https://gitee.com/robot",
"type": "User",
"site_admin": false,
"id": 1,
"name": "robot",
"email": "robot@gitee.com",
"username": "robot",
"user_name": "robot",
"url": "https://gitee.com/robot"
},
"enterprise": null,
"hook_name": "push_hooks",
"password": "5555"
}