Skip to content

Commit 599d25c

Browse files
get sha of tag in gitea
1 parent b318186 commit 599d25c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scm/driver/gitea/webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ type (
139139
createHook struct {
140140
Ref string `json:"ref"`
141141
RefType string `json:"ref_type"`
142+
Sha string `json:"sha"`
142143
DefaultBranch string `json:"default_branch"`
143144
Repository repository `json:"repository"`
144145
Sender user `json:"sender"`
@@ -172,6 +173,7 @@ func convertTagHook(dst *createHook, action scm.Action) *scm.TagHook {
172173
Action: action,
173174
Ref: scm.Reference{
174175
Name: dst.Ref,
176+
Sha: dst.Sha,
175177
},
176178
Repo: *convertRepository(&dst.Repository),
177179
Sender: *convertUser(&dst.Sender),

0 commit comments

Comments
 (0)