File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 29
29
"Created": "0001-01-01T00:00:00Z",
30
30
"Updated": "0001-01-01T00:00:00Z"
31
31
},
32
+ "Link": "https://api.github.com/repos/Codertocat/Hello-World/deployments/87972451",
32
33
"Target": "production",
33
34
"TargetURL": "",
34
35
"Task": "deploy"
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ type (
243
243
Description null.String `json:"description"`
244
244
Environment null.String `json:"environment"`
245
245
EnvironmentURL null.String `json:"environment_url"`
246
+ URL null.String `json:"url"`
246
247
Sha null.String `json:"sha"`
247
248
Ref null.String `json:"ref"`
248
249
Task null.String `json:"task"`
@@ -358,6 +359,7 @@ func convertPullRequestHook(src *pullRequestHook) *scm.PullRequestHook {
358
359
359
360
func convertDeploymentHook (src * deploymentHook ) * scm.DeployHook {
360
361
dst := & scm.DeployHook {
362
+ Link : src .Deployment .URL .String ,
361
363
Data : src .Deployment .Payload ,
362
364
Desc : src .Deployment .Description .String ,
363
365
Ref : scm.Reference {
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ type (
111
111
Target string
112
112
TargetURL string
113
113
Task string
114
+ Link string
114
115
}
115
116
116
117
// SecretFunc provides the Webhook parser with the
You can’t perform that action at this time.
0 commit comments