Skip to content

Commit 2a616ab

Browse files
feat: add new field of commit link for HC webhooks (#331)
1 parent e91781e commit 2a616ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scm/driver/harness/webhook.go

+2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ type (
172172
hookCommit struct {
173173
Sha string `json:"sha"`
174174
Message string `json:"message"`
175+
URL string `json:"url"`
175176
Author struct {
176177
Identity struct {
177178
Name string `json:"name"`
@@ -272,6 +273,7 @@ func convertHookCommit(c hookCommit) scm.Commit {
272273
Name: c.Committer.Identity.Name,
273274
Email: c.Committer.Identity.Email,
274275
},
276+
Link: c.URL,
275277
}
276278
}
277279

0 commit comments

Comments
 (0)