File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ type status struct {
242
242
}
243
243
244
244
type deployStatus struct {
245
- ID int `json:"id"`
245
+ ID int64 `json:"id"`
246
246
Environment string `json:"environment"`
247
247
EnvironmentURL string `json:"environment_url"`
248
248
State string `json:"state"`
Original file line number Diff line number Diff line change 3
3
"foo": "bar"
4
4
},
5
5
"Desc": "this is a description",
6
+ "Number": 87972451,
6
7
"Ref": {
7
8
"Name": "master",
8
9
"Path": "refs/heads/master",
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ type (
239
239
// github deployment webhook payload
240
240
deploymentHook struct {
241
241
Deployment struct {
242
+ ID int64 `json:"id"`
242
243
Creator user `json:"creator"`
243
244
Description null.String `json:"description"`
244
245
Environment null.String `json:"environment"`
@@ -359,8 +360,9 @@ func convertPullRequestHook(src *pullRequestHook) *scm.PullRequestHook {
359
360
360
361
func convertDeploymentHook (src * deploymentHook ) * scm.DeployHook {
361
362
dst := & scm.DeployHook {
362
- Data : src .Deployment .Payload ,
363
- Desc : src .Deployment .Description .String ,
363
+ Number : src .Deployment .ID ,
364
+ Data : src .Deployment .Payload ,
365
+ Desc : src .Deployment .Description .String ,
364
366
Ref : scm.Reference {
365
367
Name : src .Deployment .Ref .String ,
366
368
Path : src .Deployment .Ref .String ,
Original file line number Diff line number Diff line change 89
89
90
90
// DeployStatus represents a deployment status.
91
91
DeployStatus struct {
92
- Number int
92
+ Number int64
93
93
State State
94
94
Desc string
95
95
Target string
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ type (
105
105
DeployHook struct {
106
106
Data interface {}
107
107
Desc string
108
+ Number int64
108
109
Ref Reference
109
110
Repo Repository
110
111
Sender User
You can’t perform that action at this time.
0 commit comments